Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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:
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...)
How can I get the output? Please give me your suggestions and it is much appreciated.
Many thanks,
Praveen.
Solved! Go to Solution.
Hi @Anonymous
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.
If this helped you, please mark this post as an accepted solution and like to give KUDOS .
Regards,
Affan
Hi @Anonymous
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.
If this helped you, please mark this post as an accepted solution and like to give KUDOS .
Regards,
Affan
Fantastic!!! Thank you very much for your timely help. KUDOS.
User | Count |
---|---|
89 | |
70 | |
67 | |
53 | |
27 |