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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Super User
Super User

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
Super User
Super User

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

Top Solution Authors