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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
amatulis
Helper I
Helper I

Hierarchical slicer Date Sort

Hello Community -

I have a hierarchical slicer on my report from my calendar table that should display 'Week Ending' and then underneath it, all the individual days.  

 

I cannot get the child items to sort properly and I am not sure if that is me, or just 'how it is'

I want the dates to be descending as the report will mainly be used to track most recent activity.  The weeks will properly align in descending order but the days underneath it still remain as Sunday through Saturday, ascending vs. descending.   This is sorting by Week.  (left hand picture)

 

If I sort by Day (right hand pic), then the days fix themselves but the weeks go in the reverse order and are ascending.  Am I doing something wrong?  

 

slicer.PNG

 

 

1 ACCEPTED SOLUTION

Hello, @amatulis

As mentioned @amitchandak , you can create a sort column.

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

Next, create a "New Date" column:

New Date = 'Calendar'[Date]

Have the new "date column" sort by column "Rank"

42.png

The result will be displayed as shown below:

43.png

See the attachment for more details.

Best regards
Community Support Team _ Eason
If this post helps,then consider Accepting it as the solution to help other members find it faster.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@amatulis , Try to use sort descending option and check

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

I have sorted every which way and they work properly for ascending but not descending.  

 

slicer order issue.png

Hello, @amatulis

As mentioned @amitchandak , you can create a sort column.

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

Next, create a "New Date" column:

New Date = 'Calendar'[Date]

Have the new "date column" sort by column "Rank"

42.png

The result will be displayed as shown below:

43.png

See the attachment for more details.

Best regards
Community Support Team _ Eason
If this post helps,then consider Accepting it as the solution to help other members find it faster.

@amatulis , now this is a solution. but that will change the order.

 

Create a rank on these asc and desc(The way you want) and mark then as sort column

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

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors