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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bdel
New Member

Time format legend

Hello,
I would like to create graphs that use a "Duration" column.
This column is in decimal format (for example, 01:00:00 = 0.04166...7).
I can use this to create graphs that calculate averages, sums, etc., which is perfect. However, I'd still like the legend of these graphs to display a readable format such as hh:mm:ss. I can't do it. For example, if the maximum of my graph is 01:30:00, the legend displays 0.06 (which is true, but unreadable).
I tried to change the format by adding a column in DAX = FORMAT(table[duration], "hh:mm:ss").
But when I use this column to make graphs, it doesn't work.
What can I do?
Thanks in advance for your help.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @bdel ,

According to your describe, I try to reproduce your problem.
I created a time column and set the format to decimal. Here's a screenshot of my test:

vheqmsft_0-1702634166903.png

1.Create a table visualization , use duration column and value column.

vheqmsft_1-1702634197622.png

2.Create a new calculate column using DAX

 

Column = TIMEVALUE(FORMAT('Table'[Duration],"hh:mm:ss"))

 

3.change type of column format

vheqmsft_2-1702634251655.png

4.Add the column into table visualization

5.Final output

vheqmsft_3-1702634268508.png

From my test, your DAX formula is right. If you still can't do it, please provide your documents and hide your personal information.
In order for you to solve the problem faster, you can refer to the following documentation

How to Get Your Question Answered Quickly - Microsoft Fabric Community

Best Regards,
Albert He

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @bdel ,

According to your describe, I try to reproduce your problem.
I created a time column and set the format to decimal. Here's a screenshot of my test:

vheqmsft_0-1702634166903.png

1.Create a table visualization , use duration column and value column.

vheqmsft_1-1702634197622.png

2.Create a new calculate column using DAX

 

Column = TIMEVALUE(FORMAT('Table'[Duration],"hh:mm:ss"))

 

3.change type of column format

vheqmsft_2-1702634251655.png

4.Add the column into table visualization

5.Final output

vheqmsft_3-1702634268508.png

From my test, your DAX formula is right. If you still can't do it, please provide your documents and hide your personal information.
In order for you to solve the problem faster, you can refer to the following documentation

How to Get Your Question Answered Quickly - Microsoft Fabric Community

Best Regards,
Albert He

 

gmsamborn
Super User
Super User

Hi @bdel 

 

I've run into this in the past and had to use a less than ideal solution.

 

I duplicated that column and formatted it as hh:mm:ss .  Then I used that as a tooltip whenever needed.

 

Initially the users hated it but they got used to it.  I would still like to find a better way but nothing has come up.



Proud to be a Super User!

daxformatter.com makes life EASIER!
bdel
New Member

Sorry, I posted the wrong message, here's the right one.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.