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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
lennox25
Post Patron
Post Patron

Help to create a measure counting only the '1's per column

Hi -  please can someone help me. I need to create a measure to only count the ones per column? e.g there would be 3 for Declined.

 

lennox25_0-1707309679176.png

 

1 ACCEPTED SOLUTION
eliasayyy
Memorable Member
Memorable Member

Hello, if you only want to count the "1" in declined, then just do the follwoing

COUNTROWS(FILTER(table, table[declined] = 1))

or 

CALCULATE(count(table[declined]), table[declined] = 1)

View solution in original post

2 REPLIES 2
lennox25
Post Patron
Post Patron

Perfect - Thank you!

eliasayyy
Memorable Member
Memorable Member

Hello, if you only want to count the "1" in declined, then just do the follwoing

COUNTROWS(FILTER(table, table[declined] = 1))

or 

CALCULATE(count(table[declined]), table[declined] = 1)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors