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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
lemaribdb
Frequent Visitor

2 fields slicer sort both levels

Hi!

I have a slicer with 2 fields, YEAR and YEAR_MONTH_NO, they come from separate calendar table. When I select to sort this slicer by YEAR -> Descending, the first level, years, are in descending order but the YEAR_MONTH_NO inside years is ascending. When I select to sort by YEAR_MONTH_NO, the year month inside the years are descending but then years itself are ascending. Two cases screenshoted. How to make them both descending? In data model the YEAR_MONTH_NO is sorted by other columnm (SORT_YEAR_MONTH_NO) and the year by "itself", nothing weird going on there. How to make them both descending?

lemaribdb_3-1709134311838.png

 

lemaribdb_1-1709134159832.png

lemaribdb_2-1709134285441.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @lemaribdb 
You need to create a column for descending sorting in the date table :

Ritaf1983_0-1709179922076.png

and use it for sorting month-year

Ritaf1983_1-1709180011633.png

Ritaf1983_2-1709180057098.png

 

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @lemaribdb 
You need to create a column for descending sorting in the date table :

Ritaf1983_0-1709179922076.png

and use it for sorting month-year

Ritaf1983_1-1709180011633.png

Ritaf1983_2-1709180057098.png

 

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Works like a charm, thanks!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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