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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 50 | |
| 41 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 124 | |
| 109 | |
| 47 | |
| 28 | |
| 27 |