Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Convert minutes to hours and add them up

Hello, I have a problem, I have a Power Bi colunmna that adds the minutes and hours of a sharepoint list, that column has the total minutes, but I need to convert these minutes to hours and minutes (HH:MM:SS) and that allows me to see the total of the sum of those values:

Here's the column:

mich3003_0-1715866858242.png

Here I tried to do the calculation by means of a measure, but it adds all the values and does not return the calculation correctly:

mich3003_1-1715866929320.png

For example, in the power bi it tells me that it is 13hr and 20min:

mich3003_5-1715867484713.png

But in the export of the list when doing the calculation it gives me 22hrs:

mich3003_4-1715867409573.png

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

I was able to solve it in the following way:

1. I took as a reference the same process I was doing in excel, adding the minutes and dividing by 60 to give me the value of the hours and minutes.

2. Create a measure to add up all the values:

mich3003_0-1715888772415.png

3. Then under another measure I created a variable that contains the measure I initially created, then I divided that variable into 60 (sum of minutes / 60) and then I used MOD to bring the remainder of the initial division, at the end I put the return to bring me the information:

mich3003_1-1715888932220.png

4. Finally, the power bi brings me the info in the right way.

mich3003_2-1715889199323.png

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

I was able to solve it in the following way:

1. I took as a reference the same process I was doing in excel, adding the minutes and dividing by 60 to give me the value of the hours and minutes.

2. Create a measure to add up all the values:

mich3003_0-1715888772415.png

3. Then under another measure I created a variable that contains the measure I initially created, then I divided that variable into 60 (sum of minutes / 60) and then I used MOD to bring the remainder of the initial division, at the end I put the return to bring me the information:

mich3003_1-1715888932220.png

4. Finally, the power bi brings me the info in the right way.

mich3003_2-1715889199323.png

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.