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 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is 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.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 44 | |
| 32 | |
| 18 | |
| 17 | |
| 17 |