Forum Discussion
New_be
Helper V
2 years agoFailed to get correct total
Hi expert,
As per subject, I failed to get a correct total headcounts as in the image. To create matrix table visual, I created a measures to calculate the headcount:
Headcount =
CALCULATE(
MIN('Leavetable'[Headcount]),
ALLEXCEPT(Calendar, Calendar[YearMonth]),
ALLEXCEPT(EmpProfile, EmpProfile[Department])
)
Per department level (department coming from EmpProfile table), I got a correct value, but on the YearMonth level (coming from calendar table) to show the total from the sum of values in department level, I failed. Please show me a correct way to get the total per YearMonth in my case explained in the image attached.
Per department level (department coming from EmpProfile table), I got a correct value, but on the YearMonth level (coming from calendar table) to show the total from the sum of values in department level, I failed. Please show me a correct way to get the total per YearMonth in my case explained in the image attached.
Hi all,
Thank you for replying, at last I found the solution;
Here is the working measure:SUMX(VALUES(EmployeeProfile[Department]),CALCULATE(MIN('Leave table'[Headcount])))
2 Replies
- New_be
Helper V
Hi all,
Thank you for replying, at last I found the solution;
Here is the working measure:SUMX(VALUES(EmployeeProfile[Department]),CALCULATE(MIN('Leave table'[Headcount])))