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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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