cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dawoodrana99
Frequent Visitor

Create a Slicer based on values from 2 different tables

Hi Everyone,

I have created the follwing Bar Chart based on values from 2 different tables.
Dark blue is from Table1 and Light Blue is from Table2 and the DateTable is separate and I have made the relationship of these 2 tables with DateTable

Now, I wanted to create s slicer based on these two different values. For example; Slicer1 = Total sales, Slicer2 = Total instock
If I click on Total sales, it shows only the Dark blue bar chart and if I click on Total instock it shows only light blue one and if I do not click anywhere it must shows the below one (Combine one)


dawoodrana99_1-1661954629924.png

Thank you

2 REPLIES 2
v-cazheng-msft
Community Support
Community Support

Hi @dawoodrana99,

 

You may consider Field parameter. It can help you make your visual axis dynamically change based on the selection in the slier. For more details, you could refer to the official document and the blog from power bi community support Yalan Wu.

Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Docs

Field Parameters in Power BI - Microsoft Power BI Community

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

daXtreme
Super User
Super User

Use bookmarks for this or Field Parameters. Here's a video about everything on bookmarks.

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors