Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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() ) )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
69 | |
46 | |
39 | |
33 |
User | Count |
---|---|
163 | |
110 | |
61 | |
51 | |
40 |