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.
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() ) )
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 |
---|---|
82 | |
42 | |
31 | |
27 | |
27 |