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!
Hello,
I have a table with two columns, ID and Type, an ID can be associated with multiples Type, like this :
and I want to count IDs where Type = Yellow AND Purple, like this :
I'm a beginner in DAX and I don't know how to do..
Can someone help me please?
Solved! Go to Solution.
@RandomUserPby , Create a new measures =
yellow = countx(filter(Table, table[Type] = "Yellow") , Table[ID])
purpal = countx(filter(Table, table[Type] = "Purpal") , Table[ID])
both = countx(values(Table[ID]), if(not(isblank([yellow])) && not(isblank([purpal ])) , [ID], blank() ) )
Thanks you !!
@RandomUserPby , Create a new measures =
yellow = countx(filter(Table, table[Type] = "Yellow") , Table[ID])
purpal = countx(filter(Table, table[Type] = "Purpal") , Table[ID])
both = countx(values(Table[ID]), if(not(isblank([yellow])) && not(isblank([purpal ])) , [ID], blank() ) )
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 |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 107 | |
| 39 | |
| 33 | |
| 25 |