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
Analitika
Post Prodigy
Post Prodigy

Merging tables in Power BI

Hi,

 

Having issue with merging tables in Power BI. 

Analitika_0-1659515090039.png

One table.

 

Another table:

Analitika_1-1659515165777.png

I wanted to merge two tables by column obj, but unfortunately it makes many duplicates in main table. Also first table date column not contains data in 2023 as like in second table. So how to properly merge tables?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Analitika ,

You can try the following:

1. After merging two tables, do not expand the information of the other table.

Add an index column: Add Column – Index Column – From 1.

vyangliumsft_0-1660017288717.png

2. Expand your merged column.

vyangliumsft_1-1660017288719.png

3. Since the values in the "index column" were purely unique, now Remove duplicates using index column.

vyangliumsft_2-1660017288719.png

4. Results no longer contain duplicate values.

vyangliumsft_3-1660017288722.png

If you need pbix, please click here.

 

Best Regards,

Liu Yang

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

Hi  @Analitika ,

You can try the following:

1. After merging two tables, do not expand the information of the other table.

Add an index column: Add Column – Index Column – From 1.

vyangliumsft_0-1660017288717.png

2. Expand your merged column.

vyangliumsft_1-1660017288719.png

3. Since the values in the "index column" were purely unique, now Remove duplicates using index column.

vyangliumsft_2-1660017288719.png

4. Results no longer contain duplicate values.

vyangliumsft_3-1660017288722.png

If you need pbix, please click here.

 

Best Regards,

Liu Yang

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

willjoe2442
Helper I
Helper I

To do so, follow these steps:
From the left pane of Power Query Editor, select the query into which you want the other query to merge.
Select Merge Queries > Merge Queries from the Home tab on the ribbon. 
Select State from the RetirementStats table, then select the StateCodes query.
Select OK.

 

 

Regards,

Will

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.

Top Solution Authors
Top Kudoed Authors