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!View all the Fabric Data Days sessions on demand. View schedule
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!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!