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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ronaldbalza2023
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:

 ronaldbalza2023_3-1683501837827.png
An ideal entity should be on both Advisory and Compliance Services, AND either one of the Industry. 
Thanks in advance 🙂
2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

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

 

Jihwan_Kim_0-1683515990353.png

 

 

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

 

    Microsoft MVP
 

 

   


      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.


   


     
        LinkedInVisit my LinkedIn page
     

   


   


     
        Outlook BookingSchedule a short Teams meeting to discuss your question

     

   


 


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 ()
        )

 ronaldbalza2023_0-1683522660587.png

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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