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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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)

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)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.