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

Using 1 slicer for 2 different Queries

Hi

 

I need some expertise on this following challenge i am facing. 

 

I have data from 2 different Queries:

 

Query A: There are 43 columns in total.Query A.JPG

 

Query B: There are 5 columns in total

Query B.JPG

 

What i need is to use one slicer to pick up data from both these Queries. 

 

I mananged to establish a relationship between these 2 Queries with the "Benefit-Benefit Country" coloumn that is present in both the Queries in the hopes that my data gets pulled out by Slicer but unfortunately nothing. 

 

Kindly assist.


Thanks. 

 

 

1 ACCEPTED SOLUTION
v-gizhi-msft
Community Support
Community Support

Hello

Try creating a dimension table like this:

Dimension Table = DISTINCT(SELECTCOLUMNS(QueryB,"Benefit-Benefit Country",QueryB[Benefit-Benefit Country]))

Next, create your relationships as one-to-many:

39.PNG

Choose the [Benenfit-Benenfit Country] column as the slicer, when you select a value in it, the slicer will filter the two other tables:

42.PNG

I hope this helps.

Best regards

Giotto Zhi

View solution in original post

2 REPLIES 2
v-gizhi-msft
Community Support
Community Support

Hello

Try creating a dimension table like this:

Dimension Table = DISTINCT(SELECTCOLUMNS(QueryB,"Benefit-Benefit Country",QueryB[Benefit-Benefit Country]))

Next, create your relationships as one-to-many:

39.PNG

Choose the [Benenfit-Benenfit Country] column as the slicer, when you select a value in it, the slicer will filter the two other tables:

42.PNG

I hope this helps.

Best regards

Giotto Zhi

BA_Pete
Super User
Super User

Hi there,

 

Have you tried creating a dimension table for the Benefit-Benefit (B-B) countries?

- Create a new table containing only the unique B-B values and load to the model.

- Remove relationship between your two original tables

- Add two new relationships from your new dimension table to the two original tables

- Dimension side should be 'one', fact table sides should be 'many', filter direction from dimension to fact

- Now use you new dimension table to populate the slicer. This should filter both queries on the one slicer.

 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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