Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am trying to convert a column to time format. The minutes in the column REPLY_TIME_IN_CALENDAR_MINUTES are in data type Decimal Number.
The number I trying to convert is 4805 which should be 80h:5m:0s or 3d:8h:5m but I am getting everything correct except the days.
See image
Solved! Go to Solution.
Hi @Anonymous ,
Please, find the options below:
In case of calculated columns:
d:h:m =
VAR currentNum = 'T'[Minutes]
RETURN
INT(currentNum/1440) & ":" &
RIGHT("0" & INT(MOD(currentNum/60,24)),2) & ":" &
RIGHT("0" & INT(MOD(currentNum/1,60)),2)
hh:mm:ss =
VAR currentNum = 'T'[Minutes]
RETURN
RIGHT("0" & INT (currentNum/60),2) & ":" &
RIGHT("0" & INT(MOD(currentNum,60)),2) & ":" &
RIGHT("0" & INT(MOD(currentNum,1)),2)
If you need a measure, then replace
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Hi @Anonymous ,
Please, find the options below:
In case of calculated columns:
d:h:m =
VAR currentNum = 'T'[Minutes]
RETURN
INT(currentNum/1440) & ":" &
RIGHT("0" & INT(MOD(currentNum/60,24)),2) & ":" &
RIGHT("0" & INT(MOD(currentNum/1,60)),2)
hh:mm:ss =
VAR currentNum = 'T'[Minutes]
RETURN
RIGHT("0" & INT (currentNum/60),2) & ":" &
RIGHT("0" & INT(MOD(currentNum,60)),2) & ":" &
RIGHT("0" & INT(MOD(currentNum,1)),2)
If you need a measure, then replace
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
@ERD Is there a way to get a sum or an average of that measure? Since that is text I can't get a good measure by that.
@Anonymous ,
Work with minutes and then convert to the needed format.
E.g.: var avgMinutes = AVERAGE('number to time format'[Minutes])
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Brilliant!
Thanks!
@Anonymous , Try like
time([REPLY_TIME_IN_CALENDAR_MINUTES]/60, trunc(mod([REPLY_TIME_IN_CALENDAR_MINUTES],60),0), ([REPLY_TIME_IN_CALENDAR_MINUTES] -trunc([REPLY_TIME_IN_CALENDAR_MINUTES],0))*100/60)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
71 | |
38 | |
29 | |
28 |
User | Count |
---|---|
99 | |
88 | |
62 | |
42 | |
39 |