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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Filtering only the top level of a visual

Hello, 

 

I have a visual that i have drilling down by client and product type. I want the top level client visual to show only a certain threshold (i.e. >400 and <0 for big positiives and negatives), but when i drill down i want to show all values. 

 

I've tried creating a filter measure to exclude the 2nd level of the hierarchy (product type), but it isnt doing the trick. Heres the calc im using for that:

 

CALCULATE( [Var to plan], ALLEXCEPT('Communications Revenue','Communications Revenue'[Product type]))

 

 

Anyone have any ideas? Greatly appreciated. Thanks!

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Based on your descrition, you can try to create a measure like this:

Measure =
IF (
    ISINSCOPE ( 'Table'[Product type] ),
    SUM ( 'Table'[Value] ),
    CALCULATE (
        SUM ( 'Table'[Value] ),
        FILTER (
            ALL ( 'Table' ),
             ( 'Table'[Value] < 0
                || 'Table'[Value] > 400 )
                && 'Table'[Client] IN DISTINCT ( 'Table'[Client] )
        )
    )
)

before.pngafter.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Yingjie Li

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

1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Based on your descrition, you can try to create a measure like this:

Measure =
IF (
    ISINSCOPE ( 'Table'[Product type] ),
    SUM ( 'Table'[Value] ),
    CALCULATE (
        SUM ( 'Table'[Value] ),
        FILTER (
            ALL ( 'Table' ),
             ( 'Table'[Value] < 0
                || 'Table'[Value] > 400 )
                && 'Table'[Client] IN DISTINCT ( 'Table'[Client] )
        )
    )
)

before.pngafter.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Users online (17,869)