Forum Discussion
Count if DAX Help :)
- 3 years ago
so I assume that in the headcoun table each employee has only one assgigned location. The measure could look like this
Batch-In Count of employees = SUMX( BatchTable, CALCULATE( IF(SELECTEDVALUE(BatchTable[Location ID] = SELECTEDVALUE(HeadCountTable[Location ID],1,0) ) )But for my current understanding you would nee to creat the relation via the employee table because you want to check whether the employee batches withint the home location.
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
Hi Anonymous,
First questions which arises for me is: Does the table fHeadcount have an EmployeeID? What is the granularity of this table? Because it seems not right to creat a relation over the location ID.
Best regards
Michael