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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello
I just want to convert minutes (a measure of duration of appointments) to hours and minutes. I can calculate the hours but have problems with the minutes (in the same expression).
Can anyone tell me how to get the column hh:mm.
Thanks in advance!
Solved! Go to Solution.
Hi @boa ,
Here are the steps you can follow:
1. Create measure.
Measure =
var hourNo=INT([Sum duration]/60)
var minuteNO=MOD([Sum duration],60)
return
FORMAT(hourNo,"#00")&":"&FORMAT(minuteNO,"#00")
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @boa ,
Here are the steps you can follow:
1. Create measure.
Measure =
var hourNo=INT([Sum duration]/60)
var minuteNO=MOD([Sum duration],60)
return
FORMAT(hourNo,"#00")&":"&FORMAT(minuteNO,"#00")
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thank you, it works!
@boa,
See if you can adapt this solution:
https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!