Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi All,
Does anyone know how to sort by day in date hierarchy ? I tried using sort by column but unable to get the result.
31st of last month should come first.
Hierarchy:-
Solved! Go to Solution.
Hi @Anonymous ,
You can't sort the day in the build-in date hierarchy. You need to create your own day column in the table: DAY([Date]) then use the function in the https://community.powerbi.com/t5/Desktop/Matrix-Column-Head-Order/td-p/71572 create a new index column. If you want to put it in a custom order, you can customize the index yourself. For example, you can create a conditional column in Query Editor.
And in the build-in date hierarchy. If you keep the month hierarchy the columns will what you want:
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @Anonymous ,
You can't sort the day in the build-in date hierarchy. You need to create your own day column in the table: DAY([Date]) then use the function in the https://community.powerbi.com/t5/Desktop/Matrix-Column-Head-Order/td-p/71572 create a new index column. If you want to put it in a custom order, you can customize the index yourself. For example, you can create a conditional column in Query Editor.
And in the build-in date hierarchy. If you keep the month hierarchy the columns will what you want:
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @Anonymous ,
If you move you DAY field under ROWS section, then you get a sort order to select like shown below:
But when you move DAY to COLUMN section, then unfortunately there is no option to sort your column values.
Thanks,
Pragati
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |