问题
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. 
- Set the Available ValuesandDefault Valuesas follows :-
- In the Column Chart, add an expression in the Sortingproperty ofCategory 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