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
RobKay12
Helper I
Helper I

Formula Needed

Hello,

 

I have the below chart, for example. I know I have 8 distinct inspection #s but what I want to calculate is how many of those 8 inspections have a "1" in the "Item Found" column. The answer should be 6.

 

RobKay12_0-1701275471697.png

Any help is appreciated.

 

Thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RobKay12 ,

Please try to create a measure with below dax formula:

Measure =
COUNTROWS (
    FILTER (
        SUMMARIZE ( ALL ( 'Table' ), 'Table'[inspection], 'Table'[item found] ),
        [item found] = 1
    )
)

vbinbinyumsft_0-1701421277483.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
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

3 REPLIES 3
Anonymous
Not applicable

Hi @RobKay12 ,

Please try to create a measure with below dax formula:

Measure =
COUNTROWS (
    FILTER (
        SUMMARIZE ( ALL ( 'Table' ), 'Table'[inspection], 'Table'[item found] ),
        [item found] = 1
    )
)

vbinbinyumsft_0-1701421277483.png

Please refer the attached .pbix file.

 

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

RobKay12
Helper I
Helper I

If that worked then it would give me a count of 7 not 6.

 

Anonymous
Not applicable

Hi there,

 

You could use a Power Automate to look into the column and with a condition count all the the ones that are not 0(zero).

 

Cheers,


Fernando

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