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.
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.