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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.