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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Enkei
Frequent Visitor

Similar Tables and their relationships

Hello Everyone,

 

I have 3 tables , all of them have 98 rows and 6 columns but only 2 of the column datas are different. 

I want to find the difference in that 2 columns and plot a visual to see the difference. 

Also I want to create relationships between these tables (created from 3 csv files).

can someone please help????

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Enkei ,

 

If the other 4 columns are the same, you can also create a column to combine the 4 columns and create relationships based on the created columns.

 

Or use merge like so: Relationship in Power BI with Multiple Columns - RADACAD.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Enkei ,

 

If the other 4 columns are the same, you can also create a column to combine the 4 columns and create relationships based on the created columns.

 

Or use merge like so: Relationship in Power BI with Multiple Columns - RADACAD.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

PC2790
Community Champion
Community Champion

Hello @Enkei ,

 

Can you please clarify your requirement in detail?

If the data structure is same, can't you consider appending these tables together and removng duplicates if it solves your purpose?

For your query to get the difference in two tables, here is the generic Power Query code:

 

let
    addedT1_= List.Difference(Table1[ID], Table2[ID]),
    addedT2_= List.Difference(Table2[ID], Table1[ID]),
    TChanges_ = Table.AddColumn(Table.SelectRows(Table.SelectRows(Table2, each not List.Contains(addedT2_, [ID])), each _ <> Table1{[ID = [ID]]}), "Change description", each "Change in table 2 compared to table 1", type text)
    
in
    TChanges_

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors