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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.