我想为我的报告添加一个bool参数,其中选项一根据x轴的标签按升序对条形图进行排序,选项二根据条形图上的值按降序对条形图进行排序。如何做到这一点?
谢谢
最简单的方法是使用IF
If @Parameter = 1
begin
...SQL with sort ascending
end
else
Begin
... SQL with sort descending
End