Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Morning everyone,
I'm looking to convert whole number into hh:mm without it converting into d:hh:mm when it exceeds 24hrs via DAX.
Any ideas?
TIA
Can you give a few examples? Is the whole number in units of days, hours, minutes, or something else?
Hi,
whole number in this case = seconds and require the formula to convert this into hours & minutes.
Try something like this:
Duration (hh:mm:ss) =
VAR _Seconds = Table1[Seconds]
VAR _Hours = INT ( _Seconds / 3600 )
VAR _Remainder = ( _Seconds - _Hours * 3600 ) / 3600 / 24
RETURN
FORMAT ( _Hours, "00:" ) & FORMAT ( _Remainder, "nn:ss" )
You can drop the ":ss" if you just want "hh:mm".
@Novice_92 Try this:
Duration =FORMAT(Table[ColumnName] / 60 / 24, "h:mm")
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.