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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
RobKay12
Frequent Visitor

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
v-binbinyu-msft
Community Support
Community Support

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
v-binbinyu-msft
Community Support
Community Support

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
Frequent Visitor

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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