Power Pivot on merged data

fabads

New Member
Joined
May 7, 2015
Messages
4
Dear all,


I am new on this forum and got some issues trying to merge data from different excel sources.


I've got two different excel files I would like to analyse using Powerpivot (or any other solution would be appreciated). Let me take an example:


File DB1.xlsx:
Code:
[B]Activity Project Cost[/B]
Act1 Proj1 10
Act2 Proj2 20
Act3 Proj2 30
Act4 Proj1 50


File DB2.xlsx:
Code:
[B]Activity Project Avail budget[/B]
Act1' Proj1 100
Act2' Proj2 200
Act3' Proj2 300
Act4' Proj1 600


I would like to compare my costs (file 1) against my allocated budget (file 2) by project. I cannot consider that activities names are not exactly the same between the 2 files.


Something like that:


Code:
[B]Project budget cost[/B]
Proj1 700 60
Proj2 500 50




I am using Powerpivot (Excel 2010) to build my my pivot table but unfortunately, there is a wrong calculation for the budget (1200!).


Maybe my problem is that I cannot identify Project as a joining key, because the names are not uniques (different activities linked to the same project).




Thanks for your help
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You should be able to make your relationship on Project then create your measure ProjectBudget:=SUM(Sheet2[Avail budget]) measure in DB2 and then in your table pull in the Project and Cost from DB1 and the measure from DB2
 
Upvote 0
You should be able to make your relationship on Project then create your measure ProjectBudget:=SUM(Sheet2[Avail budget]) measure in DB2 and then in your table pull in the Project and Cost from DB1 and the measure from DB2


Hello,

Thanks for your answer but I cannot make the relation between the 2 dabases using Project. Project contains duplicated values and PowerPivot needs unique values.

Fabrice
 
Upvote 0
On the following picture, I simply add DB2 data: project as line labels and sum of available budget as measures
HI0pgy.png


And on this picture, I add the Costs of DB1, but the sum is incorrect since the sum is done on all projects (110) and not project by project.
TLNRrQ.png



Any idea ?
 
Upvote 0
I answer to myself: it seems that adding a third table, containing only project names and let's say a description solve the issue. It's a pity because I'd like to avoid managing another table. But it seems to work.
 
Upvote 0

Forum statistics

Threads
1,224,090
Messages
6,176,290
Members
452,719
Latest member
Boonchai Charoenek

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top