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
DJBAJG
Helper III
Helper III

Slice two tables by multiple common columns

I have two tables; Table A and Table B.

 

The tables have 3 common columns and many other non-common columns.

 

The tables cannot be combined.

 

What I need is the ability to create 3 slicers for the 3 common columns and have the slicers filter both tables.

 

I can easily create a bridge table with unique values for say, common column #1 and create the appropriate relationships between it and the tables but when I try to do this same thing for the remaining 2 columns I get an error regarding introducing ambiguity and PBI won’t let me make the additional relationship active. I feel I’m going about this in completely the wrong way and that there is a simple piece of DAX that’s used for these instances as I assume they’re very common but being new to the language I’m at a loss for what that code is. Please help.

 

Thanks.

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

The process of creating one bridge table for each common column is the correct approach.  I can help further if you share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

No need to create 3 different bridge tables. Just create one bridge table with 3 columns plus a key to the different combinations held in the bridge and the same corresponding keys in the 2 tables. All you need is use a bit of Power Query to reshape your data - get rid of the 3 columns in A and B, and instead add a column with a key to the bridge table's correct combination. Then connect the bridge to A and B on the new columns with keys and you're done.

Tell me more about creating a key. Would I concatenate the 3 common values into a column on the fact tables and on the bridge table and us that column to create the relationship? 

Anonymous
Not applicable

@DJBAJG 

 

Why would you want to create a key that would be text? Keys are and should always be integers due to speed reasons (rarely GUIDS). If you only have unique combinations of 3 fields in a table (and they should be unique since it's going to be sort of a junk dimension), each such combination can be assigned an integer key. Then you should use this key in other tables. Creating such a table and assigning integer key, then placing them in the related tables is pretty easy in Power Query.

Based on my previous response you can see that I'm new to the concept in general. Are you able to provide an small example of the query I would need to execute this so I can better understand the idea behind it and learn by expanding it to meet me needs? My DAX is weak and my M is non-existant. LOL 

Anonymous
Not applicable

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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