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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
How to sort Date Hierarchy Slicer?
I have year, QQYY and Index
I selected QQYY and sorted by the Custom Index
I then added year and QQYY to a slicer but it shows in ascending or descing order - but I want my custom sort order and I want to be able to update so shortly into 2025 I'll want to move 2025 to first position in the slicer
Thank,
w
Solved! Go to Solution.
@UncleLewis when you click the 3 dots on the slicer, you should be able to choose which field, as well as ascending and descending. The field you choose will sort by the custom index you have set using the 'sort by column' button. Make sure you do that for your Year column too if you want a custom order for years as well as quarters.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Thanks @AllisonKennedy ,
That is perfect!
I have a 10 year calendar
I listed all 10 years in a table and added and Index for the Sort Order I want
I then created a table for quarters (Q1'24,,,) and added an Index for that Sort Order
I added both "Sort Tables" my merging to my calendar table
I then sorted the calendar for year and quarter by the appropriate index
Now I have a slicer with 2024 at the top and 2025 (future years) at the bottom
Perfect!
Thanks,
-w
Thanks @AllisonKennedy ,
That is perfect!
I have a 10 year calendar
I listed all 10 years in a table and added and Index for the Sort Order I want
I then created a table for quarters (Q1'24,,,) and added an Index for that Sort Order
I added both "Sort Tables" my merging to my calendar table
I then sorted the calendar for year and quarter by the appropriate index
Now I have a slicer with 2024 at the top and 2025 (future years) at the bottom
Perfect!
Thanks,
-w
@UncleLewis You're very welcome. Thanks for updating us with the detailed steps for the solution. Can you mark the post as solved so others can easily reference it who might have similar issues? (Feel free to mark your post as the solution, or mark both posts as the solution).
Thanks!
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@UncleLewis when you click the 3 dots on the slicer, you should be able to choose which field, as well as ascending and descending. The field you choose will sort by the custom index you have set using the 'sort by column' button. Make sure you do that for your Year column too if you want a custom order for years as well as quarters.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |