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
Anonymous
Not applicable

How to use "Exclude" feature only on highest level of hierarchy?

Hi all,

 

I've created a stacked bar chart in PBI Desktop that has two categories in the y-axis, 1 summed measure in the x-axis, and a legend as well. The measure I am examining is Cost/Income Ratio.

 

This is what it looks like:

At the highest level: Business DivisionAt the highest level: Business Division

That is the Business Division level of the Bar Chart.

 

At the lowest level: Business FunctionAt the lowest level: Business Function

This is the Business Function level of the Bar Chart. Each Business Division can have 1 or more Business Functions.

 

The issue is that sometimes there are outlier Business Functions that have a C/I ratio that is unrealistically high. I don't want to remove them from the data in Power Query - I want the user to see the outlier, and have the ability to remove it. For that, the "Exclude" function that appears when I right-click the graph seems useful.

 

However, the issue is that when I click exclude on the "Bus Funct 3B" bar, it will not exclude the entire "Bus Funct 3B" It will only exclude the Cost Breakdown area for the Business Function that I right-clicked over. That's not ideal for me, because in my real data, I have many more Cost Breakdown levels, as well as actually using a measure to SWITCH() between multiple different Cost Breakdown Types (basically I have multiple legends for the same bar chart that change depending on what the user selects in the "Cost Breakdown" slicer - that's in my real report). 

 

This is what happens when I click "Exclude":

The Filters tab says "Bus Funct 3B (Business Function) + Transferred (Cost Breakdown)". I don't want that "Transferred (Cost Breakdown) to be included.The Filters tab says "Bus Funct 3B (Business Function) + Transferred (Cost Breakdown)". I don't want that "Transferred (Cost Breakdown) to be included.

 

Is there a way for me to only "Exclude" the Bus Funct 3B as a whole? I don't want to specify an "Exclude" on any one of Cost Breakdown.

 

This is the data I'm working with:

YearBusiness DivisionBusiness FunctionCost BreakdownC/I Ratio
2022Banking Div 1Bus Funct 1ABonus0.006640
2022Banking Div 1Bus Funct 1ASalary0.006346
2022Banking Div 1Bus Funct 1ATransferred0.006877
2022Banking Div 1Bus Funct 1BBonus0.006621
2022Banking Div 1Bus Funct 1BSalary0.006528
2022Banking Div 1Bus Funct 1BTransferred0.007630
2022Banking Div 1Bus Funct 1CBonus0.006848
2022Banking Div 1Bus Funct 1CSalary0.007298
2022Banking Div 1Bus Funct 1CTransferred0.009094
2022Banking Div 1Bus Funct 1DBonus0.010183
2022Banking Div 1Bus Funct 1DSalary0.007690
2022Banking Div 1Bus Funct 1DTransferred0.006478
2022Banking Div 2Bus Funct 2ABonus0.007323
2022Banking Div 2Bus Funct 2ASalary0.006094
2022Banking Div 2Bus Funct 2ATransferred0.007911
2022Banking Div 3Bus Funct 3ABonus0.008186
2022Banking Div 3Bus Funct 3ASalary0.006101
2022Banking Div 3Bus Funct 3ATransferred0.007115
2022Banking Div 3Bus Funct 3BBonus0.072610
2022Banking Div 3Bus Funct 3BSalary0.077723
2022Banking Div 3Bus Funct 3BTransferred0.084851

 

 

I would greatly appreciate if anyone could provide some insight on this. I know I could add a slicer, or just go to the "Filters" pane, navigate to "Business Function" and do Select All then un-select Bus Funct 3B, but it's cumbersome for end users to do that. The right-click is easier, but I'm not sure if it's even possible. Is there perhaps a more elegant solution? Thank you!

1 REPLY 1
lbendlin
Super User
Super User

Allow users to change filter types. Teach your users how to use the filter pane. Also teach them how to personalize visuals.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors