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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sanctuarius
New Member

COUNT Formula with Multiple Criteria

Hi all,

 

I was hoping someone could assist me with a DAX query as I have fairly basic knowledge of it.

 

What would be the formula if I would like to COUNT number of rows if the conditions for the following columns are met: 

 

[assignment_group] = "Site Survey - Area C", "Site Survey - South Flank" and "Site Survey - Yandi"

[Site Survey - Rework] = "TRUE"

 

Untitled.jpg

 

Any help would be greatly appreciated. Thanks!

 

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @Sanctuarius ,

 

Please try this:-

measure_ =
COUNTROWS (
    FILTER (
        'table',
        'table'[assignment_group]
            IN { "Site Survey - Area C", "Site Survey - South Flank", "Site Survey - Yandi" }
            && 'table'[Site Survey - Rework] = "TRUE"
    )
)

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
Samarth_18
Community Champion
Community Champion

Hi @Sanctuarius ,

 

Please try this:-

measure_ =
COUNTROWS (
    FILTER (
        'table',
        'table'[assignment_group]
            IN { "Site Survey - Area C", "Site Survey - South Flank", "Site Survey - Yandi" }
            && 'table'[Site Survey - Rework] = "TRUE"
    )
)

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Hi @Samarth_18 ,

 

Thank you for your quick response.

 

Apologies if this is a stupid question as I'm new to all this, but do I have to create a New table for this DAX expression or this can be created with a New measure? What is the 'table' parameter?

 

Screenshot 2022-08-24 183316.jpg

@Sanctuarius , kindly replace table with your actual table name.

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Awesome! Thank you very much for your help! 😀👍

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.