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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
lennox25
Helper V
Helper V

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
Helper V
Helper V

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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