Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 the countx(filter()) functions to the latter, but I am not sure how to make the count distinct while using countx. How would this be accomplished?
Solved! Go to Solution.
Total Employees = DISTINCTCOUNT ( Table[Employee] )
Total Employees (on Assignment X) =
CALCULATE (
[Total Employees],
FILTER ( Table, Table[Assignment] = "Assignment X" )
)
Hope this helps!
Total Employees = DISTINCTCOUNT ( Table[Employee] )
Total Employees (on Assignment X) =
CALCULATE (
[Total Employees],
FILTER ( Table, Table[Assignment] = "Assignment X" )
)
Hope this helps!
Yup, thanks!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |