Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I need to create a new measure to apply the following logic, can anyone please help with with the correct DAX syntax please?
Count distinct cust_no where dept_no = 0
Solved! Go to Solution.
Hello @Anonymous
Please try the below code.
Total Count =
CALCULATE(
DISTINCTCOUNT(Table[cust_no]),
Table[dept_no] = 0
)
Hello @Anonymous
Please try the below code.
Total Count =
CALCULATE(
DISTINCTCOUNT(Table[cust_no]),
Table[dept_no] = 0
)
| User | Count |
|---|---|
| 57 | |
| 44 | |
| 32 | |
| 16 | |
| 14 |
| User | Count |
|---|---|
| 82 | |
| 66 | |
| 42 | |
| 27 | |
| 25 |