Forum Discussion

Freeseman's avatar
Freeseman
Icon for Helper II rankHelper II
4 years ago
Solved

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...

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.

The result i am trying to acheive is like this:

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

  • Hi Freeseman ,

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

     

     

3 Replies

  • Hi Freeseman ,

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

     

     

    • Freeseman's avatar
      Freeseman
      Icon for Helper II rankHelper II

      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.

       

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

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