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
LostnFound
New Member

Count and Filtering TRUE and FALSE

Hello, I'm new to Power BI and I have a single table that shows products with their status in a number of columns as either TRUE or FALSE. I'm looking to count the number of products that are under Inspection, but not under Repair.  All products being repaired are by default also under inspection, but products that have been repaired but are waiting to be inpsected are what I am looking to count. In the table below I should get a result of 1. 

 

LostnFound_0-1653646465917.png

I've tried the following, but I'm getting a result of 12 - which is the number of repairs:

#Inpection = COUNTAX(FILTER(Stock_Daybook,Stock_Daybook[UnderRepair]=FALSE()),Stock_Daybook[UnderInspection]=TRUE())
 
Thanks for your help
1 ACCEPTED SOLUTION
Anonymous
Not applicable

hi @LostnFound 

 

Try this measure

#Inpection =
CALCULATE (
COUNTROWS ( 'Stock_Daybook' ),
AND (
Stock_Daybook[UnderRepair]
= FALSE (),
Stock_Daybook[UnderInspection]
= TRUE ()
)
)
 
If this post helps, Accept it as a solution.

View solution in original post

2 REPLIES 2
LostnFound
New Member

Thank you very much, this worked.

Anonymous
Not applicable

hi @LostnFound 

 

Try this measure

#Inpection =
CALCULATE (
COUNTROWS ( 'Stock_Daybook' ),
AND (
Stock_Daybook[UnderRepair]
= FALSE (),
Stock_Daybook[UnderInspection]
= TRUE ()
)
)
 
If this post helps, Accept it as a solution.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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