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

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.

Reply
Anonymous
Not applicable

Date hierarchy sorting by day in matrix visual

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.

 

chiragmuluk_0-1622028622717.png  

 

Hierarchy:-

chiragmuluk_1-1622028689073.png

 

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

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:

Capture3.PNG

 

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

 

View solution in original post

4 REPLIES 4
v-deddai1-msft
Community Support
Community Support

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:

Capture3.PNG

 

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

 

Anonymous
Not applicable

Thank you for your help @v-deddai1-msft 

Pragati11
Super User
Super User

Hi @Anonymous ,

 

If you move you DAY field under ROWS section, then you get a sort order to select like shown below:

Pragati11_0-1622029660992.png

But when you move DAY to COLUMN section, then unfortunately there is no option to sort your column values.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Thank you for your time @Pragati11  

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.