Dim ds As fxDataSource
Dim g As New GroupTableBuilder("统计表", DataTables("车辆超速数据表"))
g.Decimals = 2
g.Groups.AddDef("自编号","自编号")
g.Groups.AddDef("车牌号","牌照号")
g.Totals.AddDef("超速次数", AggregateEnum.Count, "全部超速_次数")
g.Totals.AddDef("持续秒数", AggregateEnum.Sum, "全部超速_时长")
g.Totals.AddDef("持续秒数", AggregateEnum.Average,"平均时长")
g.Groups.AddDef("最高限速","最高限速")
g.Totals.AddDef("最高速度", AggregateEnum.Max,"最高车速")
ds = g.BuildDataSource()
如上代码,统计出来的是"车辆超速数据表"里的所有数据,我现在只想统计筛选出来的数据,比如已近根据车牌号晒选出来的数据