Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Dear Power BI Experts,
I have the following "Time Gap" column display the duration in decimal format. I have took quite some time but couldn't figure out the solution.
How can I display the decimal number in time duration and display in visual chart? For example for 0.002777 it should display as 4mins in the visual chart.
Attached my sample dashboard for your reference:
https://drive.google.com/drive/folders/1Lkea9FOpyR8p6GNlxKpEM__j_Lz0X5kS?usp=sharing
Thank you for your time.
Best regards
Lin
Solved! Go to Solution.
You can leave your column as a decimal and use a measure expression like this in your tooltip to see the average formatted in hh:mm:ss.
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You can leave your column as a decimal and use a measure expression like this in your tooltip to see the average formatted in hh:mm:ss.
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi Pat,
Thanks for the solution! It works!
Just that is it possible for the tooltip value to appear on my bar instead of pointing on the bar to see the duration? For example 25:36 to swap with 0.02. So that we can look at the bar directly instead of pointing on it.
Appreciate a lot for your kind assistance!
Best regards
Lin
Even easier:
= Table.AddColumn(LastStep, "Minutes", each Duration.TotalMinutes(Duration.From([Time Gap])))
--Nate
You can add a column--let's say your last step name is LastStep. Add a new step, and in the formula bar, type:
= let day = each [Time Gap] in Table.AddColumn(LastStep, "Minutes", each Duration.TotalMinutes(#duration(day, 0,0,0)))
--Nate
@LinlookZDJ Couple of ways to approach this. You could convert this to minutes by doing the following:
INT([Time Gap] * 24 * 60)
You could also convert this to seconds:
INT([Time Gap] * 24 * 60 * 60)
and then use a custom format string ala Chelsie Eiden's Duration - Microsoft Power BI Community
Hi Greg,
Thanks for the prompt reply.
However, I have tried to use your DAX formula to create a measure but it was unable to detect my Time Gap column, is there anything I have missed out?
Best regards
Zhang DunJie
@LinlookZDJ Well if it is a measure, then you will need an aggregation like SUM, MAX or AVERAGE around your column reference.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.