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
DLROLLINGS
Helper I
Helper I

Sum Hours against a Constant

Hi,

New to Power Bi, bought myself a nice book to help but this is locked in my office and I am not currently able to get there so working blind with it. So far so good (even if I do say so myself).

Have a problem with multiplying a number against a set constant time. I am using the following:

 

Account Review Time = Hour([Accounts Checked]*(time(0,03,0)))+trunc(minute([Accounts Checked]*time(0,03,0))/60)&":"&mod(MINUTE([Accounts Checked]*time(0,03,0)),60)&":00"

 

This returns me a value of 0:42:00

 

Does the same in excel so I know the maths is correct but in excel I can change the format of the cell to [hh]:mm:ss and that gives me hours over 24. For reference, by coincidence the number of hours is a multiple of 24.

 

Any help much appreciated.

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @DLROLLINGS 

 

you might consider creating pbix file that will contain some sample data (remove the confidential info), upload the pbix to onedrive for business and share the link to the file. Please do not forget to describe the expected results based on this sample data.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Greg_Deckler
Super User
Super User

https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/td-p/793639

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks for this, trying to apply this to my formula but unsuccesfully.....very confused 😕

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.