Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Emilyyying
Frequent Visitor

Sorting Parameter in Paginated Reports

Hi, Can anyone tell me how to sorting a paramter in paginated report, display the data order by desc?

 

Emilyyying_1-1688022420943.png

 

1 ACCEPTED SOLUTION
d_gosbell
Super User
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.

View solution in original post

3 REPLIES 3
d_gosbell
Super User
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.

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}


@Emilyyying 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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.