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! Get ahead of the game and start preparing now! Learn more
I have two tables that look like the following. Table1:
Table2:
My aim is to have a measure that calculates the distinct count of PRN where the Course Status is 1. Without adding the PRN column to Table1, how could I go about doing this?
Thanks for your help!
Solved! Go to Solution.
@oliverblane , Try a measure like
Var _1 = summarize(filter(Table1, Table[Course Status] =1), Table1[ID])
return
calculate(DISTINCTCOUNT(Table2[PRN]), filter(Table2, Table2[ID] in _1))
@oliverblane , Try a measure like
Var _1 = summarize(filter(Table1, Table[Course Status] =1), Table1[ID])
return
calculate(DISTINCTCOUNT(Table2[PRN]), filter(Table2, Table2[ID] in _1))
Perfect, thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 123 | |
| 99 | |
| 67 | |
| 49 |