cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
praveenkumarv Regular Visitor
Regular Visitor

Date Slicer Sorting

Hello All,

   Good Morning. I am having an issue of sorting the dates in my slicers. Please refer the below screenshot for understanding what kind of sorting is needed for me.

 

I wrote a conditional statement to sort, but it returned a different result which I don't want.

 

Sample file:

slicer sample pbix

 

My requirement is,

1. Months should be in Chronological order

2. Years should be in Ascending order (say 2009, 2010, 2011, 2012 and so on...)

 

1.JPG

 

How can I get the output? Please give me your suggestions and it is much appreciated.

 

Many thanks,

Praveen.

1 ACCEPTED SOLUTION

Accepted Solutions
affan Established Member
Established Member

Re: Date Slicer Sorting

Hi @praveenkumarv

 

You can add a calculated column in your date dimensions table as below.

 

YearMonthNum = Time_Dimension[Date].[Year]*100 +  Time_Dimension[Date].[MonthNo]

 

Then you can go to Modeling and sort the FiscalMonth Year on this new column.sort by fiscalyearnum.png

 

 

If this helped you, please mark this post as an accepted solution and like to give KUDOS .

 

Regards,

Affan

3 REPLIES 3
themistoklis New Contributor
New Contributor

Re: Date Slicer Sorting

@praveenkumarv

 

This link will probably help you

affan Established Member
Established Member

Re: Date Slicer Sorting

Hi @praveenkumarv

 

You can add a calculated column in your date dimensions table as below.

 

YearMonthNum = Time_Dimension[Date].[Year]*100 +  Time_Dimension[Date].[MonthNo]

 

Then you can go to Modeling and sort the FiscalMonth Year on this new column.sort by fiscalyearnum.png

 

 

If this helped you, please mark this post as an accepted solution and like to give KUDOS .

 

Regards,

Affan

praveenkumarv Regular Visitor
Regular Visitor

Re: Date Slicer Sorting

Fantastic!!! Thank you very much for your timely help. KUDOS.

Helpful resources

Announcements
Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 332 members 3,592 guests
Please welcome our newest community members: