Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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() ) )
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.