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

View all the Fabric Data Days sessions on demand. View schedule

Reply
antonaccidavide
New Member

Reordering the hourly columns of the chart according to a personal order

Good morning everyone,
something that will probably be simple for many, but for me it is not.

I need to rearrange the order of the hourly columns of the graph according to a personal order, that is, given the 24 hours, I need to have an hourly graph that starts from 6pm and ends at 8am

I actually managed to reorder it via custom reorder columns, but then I don't have a correct reference in the X axis

This is a chart I created with python, again through power bi and it is as I would like it but using the standard power bi charts

antonaccidavide_0-1715256162794.png



antonaccidavide_1-1715256252364.png

This is how the Power BI chart appears to me, where I created a column that I used to reorder the columns, but I don't have a correct header on the X axis

How can I solve it?

2 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

@antonaccidavide Use a Sort By column on your original column of your correctly ordered column. Or you could just change the x-axis label



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

Anonymous
Not applicable

Hi @antonaccidavide 

 

I’d like to acknowledge the valuable input provided by the @Greg_Deckler . His initial idea was instrumental in guiding my approach. Here is the specific testing I did about "Sort By column" for your referrence:

 

My sample:

vxuxinyimsft_6-1715310348129.png

 

1. Create a order table as follow

vxuxinyimsft_0-1715309534355.png

 

2. Merge two tables

vxuxinyimsft_3-1715309654005.png

 

3. Expand the table

vxuxinyimsft_2-1715309632392.png

Close & Apply

 

4. Select the Time column and Sort By column

vxuxinyimsft_4-1715309868289.png

 

Output:

vxuxinyimsft_5-1715310264536.png

 

If this sample data is structurally different from the one you are using, please do not hesitate to mention it and I will modify it.

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @antonaccidavide 

 

I’d like to acknowledge the valuable input provided by the @Greg_Deckler . His initial idea was instrumental in guiding my approach. Here is the specific testing I did about "Sort By column" for your referrence:

 

My sample:

vxuxinyimsft_6-1715310348129.png

 

1. Create a order table as follow

vxuxinyimsft_0-1715309534355.png

 

2. Merge two tables

vxuxinyimsft_3-1715309654005.png

 

3. Expand the table

vxuxinyimsft_2-1715309632392.png

Close & Apply

 

4. Select the Time column and Sort By column

vxuxinyimsft_4-1715309868289.png

 

Output:

vxuxinyimsft_5-1715310264536.png

 

If this sample data is structurally different from the one you are using, please do not hesitate to mention it and I will modify it.

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@antonaccidavide Use a Sort By column on your original column of your correctly ordered column. Or you could just change the x-axis label



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors