The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.