Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello community,
I have a table with these columns below and need to know how many unique employees per qty of hours.
Result should be: 3 employees with 189 hours (A, B, C) and 2 employees with 168 hours (D, E).
This is already a filtered table (by country). Field "hours" is a measure.
I tried Distinctcount with filter, countrows, etc.
THANKS!
Solved! Go to Solution.
Solution:
VAR _ctmax = CALCULATE(DISTINCTCOUNT('table1'[employee]),FILTER('table1','table1'[hours] = 189))
VAR _ctmin = CALCULATE(DISTINCTCOUNT('table1'[employee]),FILTER('table1','table1'[hours] = 168))
Solution:
VAR _ctmax = CALCULATE(DISTINCTCOUNT('table1'[employee]),FILTER('table1','table1'[hours] = 189))
VAR _ctmin = CALCULATE(DISTINCTCOUNT('table1'[employee]),FILTER('table1','table1'[hours] = 168))
User | Count |
---|---|
11 | |
9 | |
6 | |
5 | |
4 |