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.
TABLE_A,
COULMN_A <> CAT_1
COLUMN_B = CAT_2 or CAT_3
I want to create a measure where it counts the items the meets the criteria above. Where
Column A is not equal to Cat_1
AND
Column B is equal to Cat_2 or Cat_3
Thanks!
Solved! Go to Solution.
HI , @New_Folder
Based on your requirement, I've created some sample data and write a measure to help you achieve the needs, please check the steps:
This is my sample test data based on your requirement description:
You can create a measure like this:
Expected measure =
COUNTROWS(FILTER(ALLSELECTED(Table_A),AND('Table_A'[Column A]<>'Table_A'[Cat_1],'Table_A'[Column B]='Table_A'[Cat_2]||'Table_A'[Column B]='Table_A'[Cat_3])))
Then you can place it into a card chart like this:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
HI , @New_Folder
Based on your requirement, I've created some sample data and write a measure to help you achieve the needs, please check the steps:
This is my sample test data based on your requirement description:
You can create a measure like this:
Expected measure =
COUNTROWS(FILTER(ALLSELECTED(Table_A),AND('Table_A'[Column A]<>'Table_A'[Cat_1],'Table_A'[Column B]='Table_A'[Cat_2]||'Table_A'[Column B]='Table_A'[Cat_3])))
Then you can place it into a card chart like this:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
32 | |
27 | |
24 | |
20 | |
16 |
User | Count |
---|---|
55 | |
38 | |
26 | |
24 | |
21 |