Forum Discussion
Convert Integer Measure to HH:MM format
Hi Anonymous,
Yes, there's no such custom SUM Hours format like Excel in Power BI. So to achiveve your requirement, we need to do some workarounds by using Power Query.
As in your scenario, we need to do the format first and then create a measure xyz to calculate the SUM. For the format, you can refer to following method:
Go to Edit Queries, add a custom column with Duration.TotalHours function which will return the total hours.
= Duration.TotalHours(Duration.From([Column1]))
After doing these format, then you can go back to Data Model and create the xyz measure to get the total SUM Hours.
Then for the last part as converting the number to HH:MM format. I'm afraid it cannot be achieved since there's no such corresponding format, and we are doing something like converting a number from SUM measure to Text.
Thanks,
Xi Jin.