Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello
I am trying to create a measure that will distinct count based on more than one column. I want to count if 1). InProgram is = 1 AND 2) the program ID is distinct. I have included and example below.
Solved! Go to Solution.
Hello please try :
Count of students = CALCULATE(DISTINCTCOUNT(lmyers31[Student ID]),FILTER(lmyers31,lmyers31[InProgram] = 1))
And result:
if this helps, kindly accept as solution and a kudos is appreciated
This worked perfectly. Thank you so much!
Hi @Anonymous
please try the following measure
Active Students =
COUNTROWS (
CALCULATETABLE ( VALUES ( 'Table'[Student ID] ), 'Table'[InProgram] = 1 )
)
Hello please try :
Count of students = CALCULATE(DISTINCTCOUNT(lmyers31[Student ID]),FILTER(lmyers31,lmyers31[InProgram] = 1))
And result:
if this helps, kindly accept as solution and a kudos is appreciated
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 8 | |
| 8 | |
| 8 | |
| 8 |