Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello,
I need some help, I have data from a SQL that gives me total hours (up to 24), I have worked out some of hours by using measure,
Solved! Go to Solution.
Hi @micpete ,
One approach to do this is first converting everyting into minutes, then do the sum, then convert back into hours and minutes. Unfortunately working with durations in DAX is not as convenient as in PowerQuery.
Calcualted column:
TimeMinutes = [hours]*60+[minutes]
Measures:
TotalDuration = SUM(table[TimeMinutes])
TotalHours = INT(DIVIDE([TotalDuration],60))
TotalMinutes = [TotalDuration]-[TotalHours]*60
Kind regards,
Martin
Thank you @Martin_D for your prompt reply.
Hi @micpete ,
May I ask if you have tried the suggestions above? If the suggestion helped you, you might consider marking it as a solution. If the problem has not yet been solved, please feel free to ask us a question.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @micpete ,
One approach to do this is first converting everyting into minutes, then do the sum, then convert back into hours and minutes. Unfortunately working with durations in DAX is not as convenient as in PowerQuery.
Calcualted column:
TimeMinutes = [hours]*60+[minutes]
Measures:
TotalDuration = SUM(table[TimeMinutes])
TotalHours = INT(DIVIDE([TotalDuration],60))
TotalMinutes = [TotalDuration]-[TotalHours]*60
Kind regards,
Martin
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
8 | |
7 |