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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sureshbabu_1995
New Member

Filtering the Stacked Column Chart

i have two datasets and same is referring in the stacked column chart  and i need to filter the one dataset with slicer without affecting the other dataset in the same visual.While filtering columns which are from one dataset its should filter the respective values without affecting the other columns in the Stacked column chart.

1 ACCEPTED SOLUTION

Hi @Sureshbabu_1995 

 

You have to aplly All filter on different table where you calculted measure is created.

 

I hope This might help!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

4 REPLIES 4
danextian
Super User
Super User

hi @Sureshbabu_1995 

I'm thinking you might need a slicer from a disconnected table. But there isn't enough information available and no sample data and expected result from the sample data is provided so that's only an educated guess. If you want better answers, please provide the information requested. Sample data must be something we can copy-paste to Excel (not an image). https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Uzi2019
Super User
Super User

Hi @Sureshbabu_1995 

 

Try this video . I think this is what you need.

 

https://www.youtube.com/watch?v=DGRCLcfUHM4&t=484s

https://www.youtube.com/watch?v=40AZos5hjko&t=316s

https://www.youtube.com/watch?v=N_DJTWrQhKw

https://www.youtube.com/watch?v=minWuV1ClQE

 

 

I think with little changes in dax you can achieved your senario. 

Above videos are based on period comparison.

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @Sureshbabu_1995 

 

You have to aplly All filter on different table where you calculted measure is created.

 

I hope This might help!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
nilendraFabric
Super User
Super User

Hi @Sureshbabu_1995 

 

In Power BI, slicers typically affect all visuals on a page that share relationships with the slicer’s field. To isolate the effect of a slicer to only specific columns or datasets in a chart, you need to:
• Use DAX measures instead of raw fields.
• Leverage relationships or `USERELATIONSHIP` to control filtering.
2. Steps to Implement
Step 1: Ensure Proper Data Modeling
• If your two datasets are in separate tables, ensure they are related through a common key (e.g., Date, Product ID). If no relationship exists, create one in the Model View.
• If both datasets are in the same table, ensure the columns you want to filter are clearly distinguishable.
Step 2: Create Separate Measures for Each Dataset
Instead of directly using columns from your datasets in the chart, create measures for each dataset. For example:

 

Measure_Dataset1 =
CALCULATE(
SUM('Dataset1'[Value]),
ALL('Dataset2') -- Ignores Dataset2 filtering
)

Measure_Dataset2 =
CALCULATE(
SUM('Dataset2'[Value]),
ALL('Dataset1') -- Ignores Dataset1 filtering
)

 

Step 3: Add Slicer and Control Filtering
• Add a slicer to your report using a field from `Dataset1` (or whichever dataset you want to control).
• Use `Edit Interactions` (found under the “Format” tab) to ensure that the slicer only affects visuals tied to `Dataset1`. This prevents it from influencing visuals tied to `Dataset2`.
Step 4: Use Measures in Stacked Column Chart
• Add `Measure_Dataset1` and `Measure_Dataset2` as values in your Stacked Column Chart.
• Assign appropriate legends or categories for each measure.

 

hope this helps

 

thanks

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.