Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, i´m doing a work hours report, for that calculation i need to use for each month a number of available hours
deppending of the month that is not in our system ( I have directly connected the report to our ERP) so i decided to create a measure for each month this Way:
"Available Hours January = 168 - [No Presence]"
So with this i get the Available hours from each employee for this month , but the total i get is not the total of all the employees selected, idividually is right, but the total is not.
I have the same problem with other calculation in the same table
To the result of this operation i have to substract Non Billed Hours ammount and Hours in Job Orders
I Get valid values for each employee, but the total get a number that is not the Summa of all of them.
Any Idea? I have tried a lot of things but nothing worked.
Many Thanks for your help
Solved! Go to Solution.
SUMX combined with SUMMARIZE usually solves those kinds of problems.
SUMX(SUMMARIZE('Table', 'Table'[Técnico], "Hours", 168 - [NO PRESENCIA]), [Hours])
It will calculate the availiable hours by group (in this case by "Técnico") and the sum the result.
SUMX combined with SUMMARIZE usually solves those kinds of problems.
SUMX(SUMMARIZE('Table', 'Table'[Técnico], "Hours", 168 - [NO PRESENCIA]), [Hours])
It will calculate the availiable hours by group (in this case by "Técnico") and the sum the result.
Many Many Thanks!!! it worked Perfect, you think i should do the same for the other column where i dont get the right Total?
Great to hear it worked 🙂 The same pattern should be usable for the other columns as well.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 11 | |
| 10 |