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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Freeseman
Helper II
Helper II

Sort Date from 18:00 to 17:00

Hi All,

 

Is there a way to sort my date in 24h day from 18:00 start to 17:00 end and not from 00:00 to 23:00

So in other words like this...

Freeseman_1-1660049407457.png

I am trying to structure my X axis by hour but in a specific order. So by default Power BI would arrange my hours from 0 - 23

or it would kind of just mix them up as below.

Freeseman_0-1660049351800.png

The result i am trying to acheive is like this:

Freeseman_1-1660049407457.png

Please help me in the right direction to replicate the second visual

1 ACCEPTED SOLUTION
Payeras_BI
Super User
Super User

Hi @Freeseman ,

Create an additional column assigning the order you desire and then sort the Hour column by that column.

Payeras_BI_0-1660125976302.png

Payeras_BI_1-1660125998680.png

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

3 REPLIES 3
Freeseman
Helper II
Helper II

Okay the logic behind what you explained was helpful. @Payeras_BI Thank you. I have managed to do this using conditions.

 

Freeseman_0-1660129370672.png

 

Payeras_BI
Super User
Super User

Hi @Freeseman ,

Create an additional column assigning the order you desire and then sort the Hour column by that column.

Payeras_BI_0-1660125976302.png

Payeras_BI_1-1660125998680.png

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Thank you @Payeras_BI for reaching out with assistance. I am not sure how you did this. I have multiple rows with times and i want to do like you suggest to order but they dont match up.

 

Freeseman_0-1660126852063.png

How do i make a column to only look at hours 18pm to 17pm and arnage them like you mentioned.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors