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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
LEMRAK
Frequent Visitor

Filter Matrix visual based on the current level In Scope, without affecting not in Scope values.

Hi All,

I'm trying to filter a Matrix visual based on a measure value category (segmenting the measure values). the problem is that the filter is filtering all rows in the visual, while the desired result would be just filtering the rows in the current context (i.e. based on the currently visible hierarchy of the matrix).

For Example, the delta% value of OFQ subsystem was 60.6% before filtering, and when a filter was applied the value changed to 79.7%. what is happening is that the filter is filtering out the rows in the next level ([Area] in this case); thus the value changes accordingly. 

LEMRAK_0-1703846636713.png

 

 



The desired output is to keep the 60.6% value as it's. and this should by dynamic based on the currently displayed level.

 

After a long research and trials, I've tried to detect the current displayed level using ISINSCOPE/HASONEVALUE functions, then exclude next level values with ALLSELECTED/REMOVEFILTERS. but it doesn't seem to detect the current level in scope correctly.

LEMRAK_1-1703846636717.png

 

Hope you can help me here.

Please note that I can't create the category filter in a column since all of my values are based on slicers selections; thus, I can't summarize the data in a table or a column. that's why I had to use a measure and add it to visual filters.

here is a sample report that mimics what I'm trying to do:
question.pbix


Thanks a lot,,

3 REPLIES 3
lbendlin
Super User
Super User

You need to decide how you want to compute this.  If you expand the OFG category you can see that not all values share the parent classification.

lbendlin_0-1703980845758.png

 

Therefore the modified number is justified. If you don't like that you will need to change the filter context (and make very sure that your report users don't get confused)

Hi @lbendlin 
Yes, this is what I'm trying to do with no luck, changing the filter context to filter based on the parent category.
I've updated the calculations in the report, and the context filter seems to give the right value, however it's not filtering out the zero's which is really weird. here's a link for the updated report

LEMRAK_0-1704026500529.png

your help and guidence is truly appreciated 🙂

What could maybe help is to carry both the parent ategory and item category classification. Depending on your business scenario this doesn't even need to be measures (unless the classification can be impacted by user choices).

 

I am still not convinced that this is not confusing to your users.

 

I would recommend you consider using REMOVEFILTERS rather than ALLEXCEPT.  

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors