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
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() ) )
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 |