cancel
Showing results for 
Search instead for 
Did you mean: 
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
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

Top Solution Authors