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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi All
I have a table like this...
| user | course | status |
| U5676 | C2910 | active |
| U5676 | C2910 | completed |
| U5676 | C2938 | active |
| U5676 | C2930 | active |
| U5676 | C2985 | active |
| U5676 | C2915 | active |
How can I create a measure to calculate a distinct count on users in "active" courses, excluding rows where a user also has a row where the course has been marked as "completed"? I'm tring to exclude both rows in the count but just can't figure it out.
Expected result would be a distinct count of 4...
| user | course | status |
| U5676 | C2938 | active |
| U5676 | C2930 | active |
| U5676 | C2985 | active |
| U5676 | C2915 | active |
Many thanks
onedayover
Solved! Go to Solution.
Hi
I did create the below measure and put it in the Filter for the particular visual :
Appreciate your Kudos and please mark it as a solution if it helps you
Hi
I did create the below measure and put it in the Filter for the particular visual :
Appreciate your Kudos and please mark it as a solution if it helps you
| User | Count |
|---|---|
| 49 | |
| 37 | |
| 33 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 132 | |
| 99 | |
| 56 | |
| 37 | |
| 37 |