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. Got a case of the Mondays it seems.
I'm trying to get a calculated column in that returns if any row within an ID group has a specific value, to return an answer for the entire ID Group.
For example, source data
| ID | Value |
| 1 | A |
| 1 | B |
| 1 | A |
| 2 | A |
| 2 | A |
| 3 | B |
| 3 | B |
| 3 | B |
Expected outcome:
| ID | Value | Expected Outcome |
| 1 | A | Yes |
| 1 | B | Yes |
| 1 | A | Yes |
| 2 | A | No |
| 2 | A | No |
| 3 | B | Yes |
| 3 | B | Yes |
| 3 | B | Yes |
So if any row within ID group 1 has a B value at any point, then the new column will show Yes for all ID 1 rows. Otherwise return a No value for all.
Expecting something simple but the brain hasn't woken up fully it seems!
Solved! Go to Solution.
Please try the below.
Status =
var _count = CALCULATE(COUNTROWS('Table'),FILTER(ALLEXCEPT('Table','Table'[ID]),'Table'[Value] = "B"))
return IF(_count>0,"Yes","No")
Even the most fundamental Excel worksheet formula is enough to solve it,
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Please try the below.
Status =
var _count = CALCULATE(COUNTROWS('Table'),FILTER(ALLEXCEPT('Table','Table'[ID]),'Table'[Value] = "B"))
return IF(_count>0,"Yes","No")
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 |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |