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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
booknerd_87
New Member

Merging Data Sets & Getting Duplicates

Hello! I'm pretty new to learning PowerBi and I'm hoping someone can help me with a problem I've been encountering with merging data sets. I am trying to merge two data sets (both excel files). One data set includes ad campaign information broken out by month. It also has data like spend, clicks, and leads. The second data set includes the revenue and opportunites from those ad campaigns. It also has data like the date the opportunity was created and the date it was closed. The ad campaign name is the column I am using to join the two tables. The problem is that when I merge the data (I am doing a left outer join with data set one as the first table), and then expand the second table, it duplicates all the data from the first table. I think the reason it's doing this is because there is not a one to one ratio with the data. Many opportunities can be created from the same ad campaign. Is a merge like this even possible? The end goal is to get a dynamic overview of ROI as it pertains to the month we spent the budget and the dates we created/closed an opportunity. I've includes some snapshots of sample data if that helps. First is of Table 1 and the second is of Table 1 

 

Table 1Table 1

Table 2Table 2

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Try to do this without merging. Load both tables into Power BI and then join the tables via the data model.

View solution in original post

2 REPLIES 2
booknerd_87
New Member

Thank you! This worked. 

lbendlin
Super User
Super User

Try to do this without merging. Load both tables into Power BI and then join the tables via the data model.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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