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.
Hey,
I have a visual table in PowerBI that looks something like this but with more data:
I want to count the number of rows for each company where Prime or Not Prime = "Prime"
I want this count measure to work with slicers/filters that will be added to the page e.g., If I select "Company A" in the slicer then the KPI for Prime should show a count of 1.
Thanks!
Solved! Go to Solution.
@Anonymous
Create a measure, then add the supplier column and the measure in a table visual.
measure = Calculate(count([supplier], filter(Table,Table[Prime or Not Prime] = "Prime"))
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous
Create a measure, then add the supplier column and the measure in a table visual.
measure = Calculate(count([supplier], filter(Table,Table[Prime or Not Prime] = "Prime"))
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
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.
| User | Count |
|---|---|
| 82 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |