Forum Discussion
Sorting Parameter in Paginated Reports
Hi, Can anyone tell me how to sorting a paramter in paginated report, display the data order by desc?
You would edit the dataset for the query that is populating the parameter to add the appropriate order by clause. If this dataset was autogenerated you might need to right click on the datasets folder and choose the "Show Hidden Datasets" option.
3 Replies
- d_gosbell
Super User
You would edit the dataset for the query that is populating the parameter to add the appropriate order by clause. If this dataset was autogenerated you might need to right click on the datasets folder and choose the "Show Hidden Datasets" option.
- AnonymousNot applicable
Thank you, I have found the Hidden Datasets, and there is no function as "Sorting" for ParameterValue, right?
I need to add the text "order by DESC" into the Query text {EVALUATE SELECTCOLUMNS () order by 'table'[item] DESC}
- d_gosbell
Super User
Anonymous wrote:
Thank you, I have found the Hidden Datasets, and there is no function as "Sorting" for ParameterValue, right?
I need to add the text "order by DESC" into the Query text {EVALUATE SELECTCOLUMNS () order by 'table'[item] DESC}
That is correct. To sort a dataset you need to add the ORDER BY clause to the query. There are no sort by options on datasets, these are only available on report groups when you are outputting data to the page. But it's still better to do the sort in the source query if you can.