分组统计按日
想显示 星期一 星期二 三 四 。。。这样
要怎么写:
Dim b As New sqlCrossTableBuilder("统计表2","consume_report")
b.C
b.HGroups.AddDef("image_time",DateGroupEnum.hour,"时段")
b.VGroups.AddDef("image_time",DateGroupEnum.week,"{0}周")
b.VGroups.AddDef("image_time",DateGroupEnum.month,"{0}月")
b.VGroups.AddDef("image_time",DateGroupEnum.day,"{0}日")
b.Totals.AddDef("msg_id",AggregateEnum.Count,"人数")
b.filter = "mall_name = '晋江吾悦广场店' and image_time >= '2018-04-01' and image_time <= '2018-05-13'"
b.HorizontalTotal = True
b.VerticalTotal = True
b.Build()
MainTable = Tables("统计表2")
此主题相关图片如下:微信截图_20180516164018.png