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!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |