请教老师,下面代码形式,生成的占比是四舍五入的百分比,小数后无数字
比如,生成占比 应该是28.57% 统计表里显示的是29.00%
Dim b5 As New SQLGroupTableBuilder("统计表7","工作表")
b5.C onnectionName =
b5.Groups.AddDef("电压等级", "项目电压等级")
b5.Totals.AddExp("设计阶段_可研阶段","case when 设计阶段 Like '%可研%' then 1 else 0 end","参与设计阶段_可研")
b5.Totals.AddExp("设计阶段_初设阶段","case when 设计阶段 Like '%初设%' then 1 else 0 end","参与设计阶段_初设")
b5.Filter = "日期 >= '" & e.Form.Controls("DateTimePicker1").Value & "' And 日期 <= '" & e.Form.Controls("DateTimePicker2").Value
b5.GrandProportion = True
...
[此贴子已经被作者于2017/8/18 13:42:50编辑过]