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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ozpeacenik
Frequent Visitor

creating a merged table from two tables where there may be zero or more than matches in each table

First table is a record of people mailed in two streams of a campaign.  Second is donations made (we are a charity).

 

I am trying to create a summary table with one record per constituent totalling the Mail cost and the revenue across the two streams.  I can do this easily except that there are some records in the second table that are not present in the first table, so when I use summarizecolumn to create a table, I am not getting an entry for those items.

 

I would like a table with a row per unique consistent and a sum of gifts and sum of Mail cost for every record.  
Appeal Records.PNGGift Records.PNG

Thanks for reading my post and for any help you can give me.

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

Power BI is not like SQL. You need (read should) create a table containing a unique list of everyone you contacted. Then load a table of every communication and another table of all donations ( basically the 2 tables you already have). Join the 2 you have to the new table on ID, then use the id from the master table in your reports. 

 

https://exceleratorbi.com.au/the-optimal-shape-for-power-pivot-data/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

4 REPLIES 4
vivran22
Community Champion
Community Champion

Hi,

Is it possible to share the excel file with the sample data. It would help in creating the solution.

Thanks,
Vivek
MattAllington
Community Champion
Community Champion

Power BI is not like SQL. You need (read should) create a table containing a unique list of everyone you contacted. Then load a table of every communication and another table of all donations ( basically the 2 tables you already have). Join the 2 you have to the new table on ID, then use the id from the master table in your reports. 

 

https://exceleratorbi.com.au/the-optimal-shape-for-power-pivot-data/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

I can do that in my CRM.  I was hoping for something more elegant, but that would be easy enough to do.  Thanks for the suggestion.

Data modelling is the art of taking raw data and preparing it for reporting and analytics. Power BI is one of the best tools available to do this, but you have to do the work - it is not automatic. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.