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! It's time to submit your entry. Live now!
Hi Team,
Can some one help me to know for below syntax in Power BI measure
Count column A values if column B contains value=XYZ and if column c contains value= ABC or PQR
Solved! Go to Solution.
Just add a NOT to that part:
Measure = CALCULATE(COUNT(Table1[ColA]), Table1[ColB] ="XYZ", NOT Table1[ColC] IN {"ABC", "PCR"} )
Please mark the question solved when done and consider giving kudos if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @Ramendra ,
Are the answer helpful for you? If yes, please kindly accept as solution. If you still need help, please share some sample data with us. Thanks.
Hi @Ramendra
Measure = CALCULATE(COUNT(Table1[ColA]), Table1[ColB] ="XYZ", Table1[ColC] IN {"ABC", "PCR"} )
Please mark the question solved when done and consider giving kudos if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @AlB ,
Thanks for help.
Can you please also let me know what to mention instead of "IN" for Table1[ColC] IN {"ABC", "PCR"} ) if I want to apply like below for same syntax.
Table1[ColC] is not equal to "ABC" or "PCR"
Just add a NOT to that part:
Measure = CALCULATE(COUNT(Table1[ColA]), Table1[ColB] ="XYZ", NOT Table1[ColC] IN {"ABC", "PCR"} )
Please mark the question solved when done and consider giving kudos if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @AlB ,
Thanks for help.
Can you please also let me know what to mention instead of "IN" if I want to apply like below for "Table1[ColC] IN {"ABC", "PCR"} )"
Table1[ColC] does not equal to "ABC" or "PCR"
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 45 | |
| 38 | |
| 26 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 120 | |
| 58 | |
| 38 | |
| 32 |