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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
252Gilly
New Member

Count of Yes/No

I am loooking to write my first dax and would like to understand how I can take a column with Yes/No as the data and produce a maeasure that for example only counts and then totals the Yes function.

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @252Gilly 
You can use 
CALCULATE ( COUNTA ( 'Table'[Column] ), 'Table'[Column] = "Yes" )
Or you can slice by 'Table'[Column] in a table or matrix visual or even a slicer and use just

COUNTA ( 'Table'[Column] )

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @252Gilly 
You can use 
CALCULATE ( COUNTA ( 'Table'[Column] ), 'Table'[Column] = "Yes" )
Or you can slice by 'Table'[Column] in a table or matrix visual or even a slicer and use just

COUNTA ( 'Table'[Column] )

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.