Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

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