Report Services sort column chart

老子叫甜甜 提交于 2019-12-13 05:58:24

问题


I have a report containing a regular column chart that groups on product (column A) and the chart column values are the sums of the cost (column B). By default these are sorted alphabetically on the product string. I want it to sort the column values by default and then I would like to provide and option for the user to be able to switch between product name and column value. How do I do this?

Thanks


回答1:


You can use a Sort By report parameter of Text type.

  1. Set the Available Values and Default Values as follows :-

  1. In the Column Chart, add an expression in the Sorting property of Category Group

Assuming you have the column values column as ColumnValue and Product Name column as ProductName then the expression should be :-

=iif(Parameters!SortBy.Value = "ColumnValues",Sum(Fields!ColumnValue.Value),Fields!ProductName.Value)



来源:https://stackoverflow.com/questions/32247631/report-services-sort-column-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!