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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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.

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

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 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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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