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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to count rows from a binary category

Hello, 

I am trying to create a measure that aggregate the sla_ttr_passed =1 from a binary category.

It is possible to do that? 

Many thanks

Rocio

rocioaliaga_0-1619789157715.png

 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi @Anonymous  ,


You also could create measure by the following formula:

count1 = COUNTX(FILTER('Table',[sla_ttr_passed]=1),[sla_ttr_passed])

or

count2 = CALCULATE(COUNT([sla_ttr_passed]),'Table'[sla_ttr_passed]=1)

The final output is shown below:
v-yalanwu-msft_1-1620207118411.png

 

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi @Anonymous  ,


You also could create measure by the following formula:

count1 = COUNTX(FILTER('Table',[sla_ttr_passed]=1),[sla_ttr_passed])

or

count2 = CALCULATE(COUNT([sla_ttr_passed]),'Table'[sla_ttr_passed]=1)

The final output is shown below:
v-yalanwu-msft_1-1620207118411.png

 

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Check if one the three measure can work

countrows(filter(Table,[sla_ttr_passed]))

or

 

countrows(filter(Table,[sla_ttr_passed] =1))

 

or

 

countrows(filter(Table,[sla_ttr_passed] =true() ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors
Users online (4,893)