Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
alexw94
Helper I
Helper I

How do i make a measure that will give me count of a specific value from a column in table?

So, I have table I created in my power query editor. I have a column that has values Red, Yellow, Blue & Green. I want to create a card visual that shows a quantity of how many times "Red" has appeared on my card visual.

 

The way I want to do this is by making a measure on Power BI that will give a count of that specific value ("Red"). 

 

What would the DAX formula for me to obtain this please?

2 REPLIES 2
yyzheng12
Helper I
Helper I

DAX:

Count_Red = calculate(countrows(table), table[column_color] = "Red")

 

Or you can make a card directly from the column and filter the values in the "Filter" pane.

tamerj1
Super User
Super User

Hi @alexw94 

Measure =
COUNTROWS ( FILTER ( 'Table', 'Table'[Value] = "Red" ) )

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.