参考(默认统计重量):
WITH T AS ( --原查询SQL ) SELECT MONTH,ORANGIZATION,${if(len(统计类型)==0,"WEIGHT",统计类型)} AS COUNT_VALUE FROM T
下拉框数据字典设置:
动态显示图表系列或分类轴-https://help.finereport.com/doc-view-922.html
楼主:文档有详解,请查阅!
用注释的方法切换sql呀
${if(xxx="xxx","","/*")}
${if(xxx="xxx","","*/")}