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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
SDigital
Frequent Visitor

Filtering help

Hello

 

So i'm doing some analysis on my company's clients and some of them have projects with multiple sectors within our company.

 

I want to filter my data to show clients who have projects with one particular sector.

 

Thanks in advance.

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @SDigital,

 

Based on my understanding, you want to display those clients who have only one project with only one sector, right?

 

If so, you can create a measure similar to below, add this measure to visual level filter and set its value to 1.

check1 =
IF (
    CALCULATE (
        DISTINCTCOUNT ( Sheet1[Project] ),
        ALLEXCEPT ( Sheet1, Sheet1[Client] )
    )
        = 1
        && CALCULATE (
            DISTINCTCOUNT ( Sheet1[Sector] ),
            ALLEXCEPT ( Sheet1, Sheet1[Client], Sheet1[Project] )
        )
            = 1,
    1,
    0
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @SDigital,

 

Based on my understanding, you want to display those clients who have only one project with only one sector, right?

 

If so, you can create a measure similar to below, add this measure to visual level filter and set its value to 1.

check1 =
IF (
    CALCULATE (
        DISTINCTCOUNT ( Sheet1[Project] ),
        ALLEXCEPT ( Sheet1, Sheet1[Client] )
    )
        = 1
        && CALCULATE (
            DISTINCTCOUNT ( Sheet1[Sector] ),
            ALLEXCEPT ( Sheet1, Sheet1[Client], Sheet1[Project] )
        )
            = 1,
    1,
    0
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yulgu-msft

 

Thanks for answering my query. This formula is almost there but i want to show clients that have one or more projects with one sector.

 

Thanks again!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.