Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
i want to get distinct count of student_id with a condition that if it id is there then it should display Yes and if no enrollemnt id then NO.
@Anonymous , Not sure what you want to do with yes or No. try like
fn1 = CALCULATE(DISTINCTCOUNT(student [Employeeid]),not(isblank(student[Enrolemntid])))
Hi @Anonymous ,
Your description doesn't sound right.
How can you display YES or NO for a count value?
Do you mean display distinct count value of Student ID if Enrollemtnt Id is not blank?
Please elaborate your query by sharing some sample data screenshots with the desired output.
Thanks,
Pragati
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Check out the July 2026 Power BI update to learn about new features.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 31 | |
| 30 | |
| 27 | |
| 24 | |
| 16 |
| User | Count |
|---|---|
| 54 | |
| 37 | |
| 27 | |
| 24 | |
| 20 |