Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Continued Contributor
Continued Contributor

Dax Measure - Ideal Entity

Hi awesome community! Can anyone guide me on how to create a measure that satisfies the following conditions? I need to find an ideal entity that should fulfill the following criteria:

An ideal entity should be on both Advisory and Compliance Services, AND either one of the Industry. 
Thanks in advance 🙂
Super User
Super User


I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.





Count ID measure: = 
VAR _conditionone =
        FILTER (
                IN { "Advisory Services", "Compliance Services" }
                    && data[Boolean] = TRUE ()
VAR _conditiontwo =
        FILTER (
            data[Name] = "Industry"
                && data[Text]
                IN {
                "Building & Construction – Turnover less than XX",
                "Building & Construction – Turnover greater than XX"
VAR _result =
    UNION ( _conditionone, _conditiontwo )
    COUNTROWS ( DISTINCT ( _result ) )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.

Go to My LinkedIn Page

Hi @Jihwan_Kim, thank you for your efforts on this. The suggested DAX measure is close to what I need. However, the specific line of code caused an issue where it only returned either one of the services as true, instead of both being true together as needed. Sample below will count as 1 🙂 Thanks again for your time.

 IN { "Advisory Services", "Compliance Services" }
                    && data[Boolean] = TRUE ()



Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors