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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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.

 

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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