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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
HugoJesus
Helper IV
Helper IV

Filter Pane Sort Values Inside

Hi everyone, 

 

I will be more objetive as possible, before create this message, I saw many Messages from other persons, but I've never found something like this.

 

Someone of my team, asked me to sort downward the values in the Filter Pane, this is different from sort the filters. 

 

Regards,

Hugo Jesus

1 ACCEPTED SOLUTION

Hi @HugoJesus

 

Create 3 calculated columns as below:

 

Year = YEAR('Table'[Date])
Rank = RANKX(SUMMARIZE('Table','Table'[Year]),'Table'[Year],,DESC)
_Year = 'Table'[Year]

 

Finally select column _year,go to menu bar>column tools>sort by:rank  :

Annotation 2020-06-01 171458.png

Then put the new column _Year in the filter pane and you will see:

Annotation 2020-06-01 171912.png

For the related .pbix file,pls click here.

 

 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@HugoJesus , you can create desc rank on year and mark that a sort column. then it will sort desc.

 

Year Rank = RANKX(ALL('Date'),'Date'[Year],,DESC,Dense)

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

Refer this file for the example of the month year desc sort on matrix column

https://www.dropbox.com/s/94zxohjgoaan28e/DescMonthSort.pbix?dl=0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Wonderful solution, thanks a lot Super User IV !

The solution you have presented ( 

Refer this file for the example of the month year desc sort on matrix column

https://www.dropbox.com/s/94zxohjgoaan28e/DescMonthSort.pbix?dl=0  ) is not working.

 

Still have the same issue, the dates in the Filter Pane for "Filters on this page" are upward and all i want is to have the values sorted downward.

 

If it's possible, you can send me the PBIX with the same example that i'm sending in the image below

 

image.png

 

 

 

HugoJesus
Helper IV
Helper IV

PowerBI Image 1.png

 

I want to sort Downward the filter tha is highlighted, instead of 2016 - 2020, change for 2020 - 2016, the most recent first.

 

This is possible to do ?

Hi @HugoJesus

 

Create 3 calculated columns as below:

 

Year = YEAR('Table'[Date])
Rank = RANKX(SUMMARIZE('Table','Table'[Year]),'Table'[Year],,DESC)
_Year = 'Table'[Year]

 

Finally select column _year,go to menu bar>column tools>sort by:rank  :

Annotation 2020-06-01 171458.png

Then put the new column _Year in the filter pane and you will see:

Annotation 2020-06-01 171912.png

For the related .pbix file,pls click here.

 

 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Hi Kelly,


I've did it like you said and "Voilá". Perfect, completely awesome, that's the idea.

 

I'll repeat to all reports that I've.

 

Thanks again,

 

Have a nice week. 🙂

 

Regards
Hugo Jesus

 

Below It's my example.

image.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.