Reply
skatofiaBAH
Helper II
Helper II
Partially syndicated - Outbound

Sort Month Year Slicer Descending

Hi All,

I have a 1-to-many join on a month table that filters my other 2 tables on month that contain my data. I'm trying to do a sort by column on my month table, but it's not changing the order of my slicer. Can anybody help with this? The messages on the forum I am reading are from like 5 years ago and the same features don't apply with what version Power BI is on now.

 

Thanks! 

1 ACCEPTED SOLUTION

Syndicated - Outbound

Hi, @skatofiaBAH 

As you said, you have a MonthReverse Column present, so I assumed some data for testing:

vfenlingmsft_0-1727419082161.png


You must make sure that the type of your MonthReverse Column is whole number:

vfenlingmsft_1-1727419119101.png

 


Then drag the Month field into Slicer's Fields panel:

vfenlingmsft_2-1727419155273.png

 


Then click on the Month field, find the Sort by column at the top and select the MonthReverse Column:

vfenlingmsft_3-1727419199877.png

 


This gives you the freedom to choose whether your Month column is ascending or descending based on the MonthReverse Column:

vfenlingmsft_4-1727419248522.png

 

vfenlingmsft_5-1727419281833.png

 

I've attached the pbix file for this little example below, hope it helps.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
nandic
Super User
Super User

Syndicated - Outbound

@skatofiaBAH , could you send screenshot of Month table and define which column is sorted by which column.
When you do sort by column step, there is no error message?
In that case, make sure that column that is used for sorting is numeric, not text.

Cheers,
Nemanja Andic

Syndicated - Outbound

Hi @nandic,

 

I'm sorting on the dimension table, which then sorts the fact tables I have the relationships set up with. My month column is converted to date type of "March 2021" date type. My month reverse column is numerical and I am trying to sort on that, but it doesn't change my date filter of "March 2021".

Syndicated - Outbound

Hi, @skatofiaBAH 

As you said, you have a MonthReverse Column present, so I assumed some data for testing:

vfenlingmsft_0-1727419082161.png


You must make sure that the type of your MonthReverse Column is whole number:

vfenlingmsft_1-1727419119101.png

 


Then drag the Month field into Slicer's Fields panel:

vfenlingmsft_2-1727419155273.png

 


Then click on the Month field, find the Sort by column at the top and select the MonthReverse Column:

vfenlingmsft_3-1727419199877.png

 


This gives you the freedom to choose whether your Month column is ascending or descending based on the MonthReverse Column:

vfenlingmsft_4-1727419248522.png

 

vfenlingmsft_5-1727419281833.png

 

I've attached the pbix file for this little example below, hope it helps.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Syndicated - Outbound

Hi @nandic,

 

This worked! Thank you! Is there a way to custom sort a slicer based on 2 particular values I want at the top and then the rest can be sorted alphabetically descending?

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)