MAPARRAY(RANGE(TODATE(CONCATENATE('2021-07','-01')),TODATE(DATEINMONTH(CONCATENATE('2021-07','-01'),-1))),FORMAT(ITEM,'yyyy-MM-dd'))
设置横向扩展
根据选择年月自动扩展当月每一天日期-https://help.fanruan.com/finereport/doc-view-1738.html
你sql里面写wehere time>'${start}' and time<'${end}' order by time 然后D1放时间字段time 向右扩展 然后D2D3根据自己的需求来 这样你就可以选择多天 时间控件加两个对应 start end 控件名