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
felipesaw
Frequent Visitor

doubts with merge tables

Doubts with merge tables I have this first table with everything, and this second with some occurred, needed based on the id and the fruit return the resutable that has all the occurreds of these fruits of the second table.

 

first table

idfruitvalue
1grape10
2grape20
3grape30
4apple40
5apple50
6pineapple10
7pineapple12

 

second table

idfruitvalue
1grape10
4apple40

 

Result

idfruitvalue
1grape10
2grape20
3grape30
4apple40
5apple50
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @felipesaw ,

According to your description, here's my solution. 

In the first table, add a custom column.

if List.Contains(#"second table"[fruit],[fruit]) then 1 else 0

vkalyjmsft_0-1666247122554.png

Then filter the custom column only keep 1.

vkalyjmsft_1-1666247269178.png

Result:

vkalyjmsft_2-1666247290864.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @felipesaw ,

According to your description, here's my solution. 

In the first table, add a custom column.

if List.Contains(#"second table"[fruit],[fruit]) then 1 else 0

vkalyjmsft_0-1666247122554.png

Then filter the custom column only keep 1.

vkalyjmsft_1-1666247269178.png

Result:

vkalyjmsft_2-1666247290864.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

Anonymous
Not applicable

If you combine both tables by fruit column, you will have a table like this:

Luis98_0-1666195021486.png

Then if you maintain id and value from table 1 and Fruit from table 2 you have the result

Very appreciate, but does not work.

my main connection between the tables is the ID, the name repeats.

 

I need to use the id column of the second table to search for which fruits you have in the first table that has an id equal to the second. And bring all the lines with this fruit to the result table

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.