Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!
User | Count |
---|---|
123 | |
77 | |
62 | |
50 | |
49 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |