Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Distinct countx?

I have a dataset where I want to create two measures, one is the total count of employees and the other is the total count of employees who are on a particular assignment. I know would have to use th...
  • Sean's avatar
    9 years ago
    Total Employees = DISTINCTCOUNT ( Table[Employee] )

    Total Employees (on Assignment X) =
    CALCULATE (
        [Total Employees],
        FILTER ( Table, Table[Assignment] = "Assignment X" )
    )

    Hope this helps! :smileyhappy: