Forum Discussion

GlobalFever's avatar
GlobalFever
Icon for Advocate II rankAdvocate II
4 years ago
Solved

Time cannot be set to 24 hour format in Continuous X Axis

Hi,

 

I've got a column which is in "Time" data type.

It is used as X-axis in an Area Chart, continous.

What I've found is that in Desktop it is showing as 24 hour format whereas it will be showing AM/PM no matter how I configure the format in column tool. 

Actually the format function only works when I set this axis as categorical.

Could you please help me out? 

 

Screenshots in desktop:

The "Hour" column is set as h:nn in desktop:

 

Still showing AM/PM in the portal:

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi GlobalFever ,

     

    If it is not a table visual, it will indeed automatically become the twelve hour format.

     

    Here's the workaround, you can turn the time field to text.

    24hr = FORMAT([Time],"HH:mm:ss")

    Then you need to sort the 24hr column by the time column.

    Now you can get the time in 24-hour format.

     

    Best Regards,

    Stephen Tao

     

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

     

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi GlobalFever ,

     

    If it is not a table visual, it will indeed automatically become the twelve hour format.

     

    Here's the workaround, you can turn the time field to text.

    24hr = FORMAT([Time],"HH:mm:ss")

    Then you need to sort the 24hr column by the time column.

    Now you can get the time in 24-hour format.

     

    Best Regards,

    Stephen Tao

     

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