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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
melina
Helper IV
Helper IV

Apply slicer for 2 difference data source

Hi All,

 

I have 2 tables Vendor details and Oder Table. I want to use slicer for country.Means when user select country, the graph order quantity will change dynamaticall and display Vendor name. I have create index on Vendor details table to create relationship between both table. If im not using index,error message will pop up, dispaly the relationship is not active. But when successfull create relationship, then i use slice for country(Vendor Details) the order quantity graph does not change according to the slicer.

So what i shoul do?..Thanks for help and explanation.

 

Vendor Details

Vendor Name

Country

MyApss Sdn.Bhd

Brunei

TechSofoware Sdn Bhd

Malaysia

TechSofoware Sdn Bhd

Malaysia

HighTech Sdn.Bhd

Malaysia

Sundrise Sdn.Bhd

China

 

Order Table

Country

Order Quantity

Brunei

100

Malaysia

87

China

234

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Would probably help to see your table relationships.  It's not clear if Order Table has duplicate Country values in it?  I would... expect it to, since it is ... orders 🙂

 

Since your Vendor Details table has duplicate Country too, you can't easily relate those.   So, what I would do is create a single County table (use New Table on the Modeling banner and Countries = VALUES('Vendor Details'[Country]) to create a single table of just the unique country.

 

Then you can create a relationship between this new table and BOTH of the other 2 tables, and happily slice the data based off your new country table.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Would probably help to see your table relationships.  It's not clear if Order Table has duplicate Country values in it?  I would... expect it to, since it is ... orders 🙂

 

Since your Vendor Details table has duplicate Country too, you can't easily relate those.   So, what I would do is create a single County table (use New Table on the Modeling banner and Countries = VALUES('Vendor Details'[Country]) to create a single table of just the unique country.

 

Then you can create a relationship between this new table and BOTH of the other 2 tables, and happily slice the data based off your new country table.

wow!..a great explanation..Thanks a lot!Smiley Wink

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors