Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |