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

Merged queries return multiples rows

Hi,

 

I have issues with a dataset I am working on. I replaced the look up function I would use in Excel by merging two tables, but the rows get duplicated and it gets impossible to load. I tried filtering out the dataset for clarity sake and tested out all of the join possibilities. None of them works 😞 

 

Looking at the advanced editor with the latest attempt I see this line of code:

 

#"Merged Queries1" = Table.NestedJoin(#"Filtered Rows1", {"Art der Förderung"}, Preisliste, {"Type of Subsidy"}, "Preisliste", JoinKind.LeftOuter)


I am stumped as to what I can do to fix this. Is there any other feature in PBI besides Merge which can be used to replace look ups? Or anyway I can automatically remove all duplicated rows in the next step?

Thanks,

 

Pauline.

3 REPLIES 3
SebSchoon1
Post Patron
Post Patron

Hello,

 

You may create a table containing unique values (Art der Förderung)

By creating a unique ID (Merge columns or other)

 

Then your left join should work perfectly.

Anonymous
Not applicable

Hi @Berl21 ,

 

Here's the similar post you could refer to: 

Solved: Merged queries is duplicating values - Microsoft Power BI Community

And there's the blog about how to replace values based on lookup table:

How to replace values based on lookup table in Power Query (pbimaster.com)

 

 

 

Best Regards,

Stephen Tao

 

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

Anand24
Super User
Super User

Hi @Berl21 ,
You can remove duplicates by right-clicking on the column name and then clicking on remove duplicates. 
Please check if it helps.
If this doesn't solve your issue, can you please attach a sample your both tables you are trying to join/merge? That would be really helpful for everyone here to solve the issue.

PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

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.