Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi All
Very new to power bi. I am trying to do a count, if formula where a student has a achievement categorie next to their name at least once, the formula will say yes no. for example:
| Name | Achievement Type | Count for Enrichment Type is more than once for culture |
| BOB | Enrichment - Culture | YES |
| BOB | Enrichment - Culture | YES |
| JENNY | Enrichment - Culture | YES |
| JENNY | Enrichment - Culture | YES |
basically a count then if more than 0 say yes.
Does anymore know how this can be done?
Solved! Go to Solution.
Oh Ok, try this then:
Count for Enrichment =
IF (
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER (
ALL ( 'Table' ),
'Table'[Name] = EARLIER ( 'Table'[Name] )
&& 'Table'[Achievement Type] = "Enrichment - Culture"
)
) > 1,
"Yes",
"No"
)
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Try to add a new column with DAX like this:
Count for Enrichment =
IF('Table'[Achievement Type]<>blank(),"Yes","No")
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Hi
thanks for the swift response - will this look at the students name also? So in english not a formular I need (best way for me to explain sorry!)
if "bob" has "enrichment - culture" more then 1 time, say "yes"
Hope that makes sense!
Oh Ok, try this then:
Count for Enrichment =
IF (
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER (
ALL ( 'Table' ),
'Table'[Name] = EARLIER ( 'Table'[Name] )
&& 'Table'[Achievement Type] = "Enrichment - Culture"
)
) > 1,
"Yes",
"No"
)
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |