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
nujkram
Regular Visitor

Formatting time by hour

Good day everyone, I have here a chart where the x axis represents the time by decimal (hour).(minute)

Is it possible to format it as time? Example 14.0 = 14:00 or 02:00PM

time-format.jpg

1 ACCEPTED SOLUTION
Birdjo
Resolver II
Resolver II

Hello @nujkram,

 

Here's how you can solve this very simply.

 

Firstly create a new column by concatenating ":00:00" to you the whole number representing the time.:

 

Time = CONCATENATE(Table1[NumTime]; ":00:00")

Then go to the modeling tab and change the data type to time,

then the format to 13:30 (HH:mm)

image.png

 

I hope this solves your issue!

View solution in original post

2 REPLIES 2
Birdjo
Resolver II
Resolver II

Hello @nujkram,

 

Here's how you can solve this very simply.

 

Firstly create a new column by concatenating ":00:00" to you the whole number representing the time.:

 

Time = CONCATENATE(Table1[NumTime]; ":00:00")

Then go to the modeling tab and change the data type to time,

then the format to 13:30 (HH:mm)

image.png

 

I hope this solves your issue!

Thank you @Birdjo, works perfectly!

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.