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

Don'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.

Reply
gsmyth377
Regular Visitor

Adding time and minutes

Hi Everyone - good morning, 

 

The Power Apps team has assigned me to create a report from their app. It has been imported from the dataverse. 

 

I need to add an hour column and a minute column to find the total hours and minutes spent on a project I am unaware of what DAX expression to implement. 

 

They are organised as below (or in attached image): 


gsmyth377_0-1662709832389.png

Does anyone also have any ideas on what visuals that could be created for this also? 

 

Thanks, 

 

Gareth

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gsmyth377 , You can create a measure like

 

Total time in minute  = sumx(Table, [Hour]*60+[Minute])

 

or

 

Total time in Hours = sumx(Table, [Hour]+[Minute]/60)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
gsmyth377
Regular Visitor

@amitchandak Hi mate this worked. 

 

I have tried to create a calculated column using this expression (this is for each individual record) :

Total Time Spent = [Hour]+[Minutes]/60

Technically this works however it comes up in a decimal format for example one of the records say 7.50 which would mean 7 hours and 30 minutes. 

 

gsmyth377_0-1662712767949.png

Do you know how I can convert this? 

 

Thanks, 

 

Gareth

 

amitchandak
Super User
Super User

@gsmyth377 , You can create a measure like

 

Total time in minute  = sumx(Table, [Hour]*60+[Minute])

 

or

 

Total time in Hours = sumx(Table, [Hour]+[Minute]/60)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.