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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 68 | |
| 66 | |
| 64 |