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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
GlobalFever
Advocate II
Advocate II

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:

Untitled.png

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

Untitled1.png

 

Still showing AM/PM in the portal:

Untitled2.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @GlobalFever ,

 

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

2.png

 

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.

vstephenmsft_5-1642757380950.png

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

vstephenmsft_6-1642757430780.png

 

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.

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @GlobalFever ,

 

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

2.png

 

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.

vstephenmsft_5-1642757380950.png

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

vstephenmsft_6-1642757430780.png

 

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.

 

That does not solve the problem if you're looking across a 24 hour time period. I work in the aviation field for the goverment and this has been a plaguing issue that would be great if it was solved. 

NOEL_ATM_0-1757508762281.png

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Hi Stephen,

 

Thanks for replying.

 

Yes by using text format time value, we can show them in 12h or 24h as we want.

But in this case the time value will be categorically,

which means the X axis must be showing every hour point, and the X axis gridlines will be lost.

 

Untitled.png

Have you figured out this problem? I have been having the same issue plague me for a couple years now. 

lbendlin
Super User
Super User

Is the locale of your browser set to en-us?

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.

Top Solution Authors