Power Pivot relationship - same values for each row

tommyts

New Member
Joined
Dec 19, 2008
Messages
19
Fairly new to PowerPivot and data modeling here, but learning quickly, and could use some help from the pros... that's you guys! Any help will be greatly appreciated!!

A very straightforward situation: I'm trying to build a pivot table that compares financial "actuals" to "budget", by account number. I created a relationship between the "Account PandL" table ("Account number" column) and the "Budget 2015 PL" table (also "Account number" column), and get the results below..... The totals in the Budget 2015 PL column are all the same. (for reference, the top row notes from which table each column/field is derived)


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]table:
[/TD]
[TD][TABLE="width: 162"]
<tbody>[TR]
[TD="class: xl65, width: 162"]"Account- PandL"[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 151"]
<tbody>[TR]
[TD="class: xl65, width: 151"]Profit and Loss Summ[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 166"]
<tbody>[TR]
[TD="class: xl65, width: 166"]Budget 2015 PL[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]field:[/TD]
[TD]Account number[/TD]
[TD]1/31/15 Actuals[/TD]
[TD]1/31/15 Budget[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4010[/TD]
[TD]0[/TD]
[TD]1120621.66[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4020[/TD]
[TD]5021.25[/TD]
[TD]1120621.66[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4030[/TD]
[TD]117.19[/TD]
[TD]1120621.66[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4040[/TD]
[TD]23,421.25[/TD]
[TD]1120621.66[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4050[/TD]
[TD]117,851.64[/TD]
[TD]1120621.66[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4060[/TD]
[TD](2,502.11)[/TD]
[TD]1120621.66[/TD]
[/TR]
</tbody>[/TABLE]


The "Account PandL" table and the "Profit and Loss Summ" tables are from a separate professional third-party database storage software and have a relationship with each other through a field called "LinkTo(For)AccountID", which is a complex proprietary coding system (which I don't want to touch!).

What am I doing wrong??

Again... thank you!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi tommyts,
I'm not sure if you're using 2 or 3 tables here? From your text I understand that you ony have 2 (AccountsPandL and Budget 2015).
Even if you Budget table would only consist of one row for each account, it's not good practice to link 2 fact tables directly with each other. Therefore you should use an accounts table with one row for each account and link the facts to it.
If thats what you have done already, there might be an issue with your account No formats (so that the Budget ones don't match with your accounts table) - so make sure that they are really identically formatted.
hth, Imke
 
Upvote 0
Hi tommyts,
I'm not sure if you're using 2 or 3 tables here? From your text I understand that you ony have 2 (AccountsPandL and Budget 2015).
Even if you Budget table would only consist of one row for each account, it's not good practice to link 2 fact tables directly with each other. Therefore you should use an accounts table with one row for each account and link the facts to it.
If thats what you have done already, there might be an issue with your account No formats (so that the Budget ones don't match with your accounts table) - so make sure that they are really identically formatted.
hth, Imke

Thanks for the reply Imke. There are 3 tables. 'Accts-PandL' and 'ProfitLossSumm' already have a relationship, linked by account I.D. (this relationship was created by a third-party and works perfectly). I'm trying to establish a relationship between 'AcctsPandL' and 'Budget', based on account number. There are no duplicate values in either table (each account number has only 1 row), but there are many account numbers in 'AcctsPandL' which are not on the 'Budget' table.

The result I'm trying to get is to list each account number from the master 'AcctPandL' table, then show the value for each account from EACH of the other tables, 'Budget' and 'ProfitLossSumm', comparing budget to actuals.

Further help will be greatly appreciated! thank you!
 
Upvote 0
Have you checked the formats of your key (account no)? How does that Pivot table look if you delete the Profit and Loss Sum Col? Still showing the different accounts or just one row (blank)?
 
Upvote 0
In general, when you see a bunch of grand total looking cells... the first thought in your head should be "for some reasons... filters are not being applied to those rows". Understanding that relationships have a "direction", and filters applied to the one side get applied to the many side... but NOT the other way around.

In your case, you THINK that AccountNum (that you have on rows) is filtering your Budget Table... but clearly, it is not. I pic of the relationships would help say whats up. You want the field on Rows to come from the lookup table (the 1 side of the 1:many).
 
Upvote 0
In general, when you see a bunch of grand total looking cells... the first thought in your head should be "for some reasons... filters are not being applied to those rows". Understanding that relationships have a "direction", and filters applied to the one side get applied to the many side... but NOT the other way around.

In your case, you THINK that AccountNum (that you have on rows) is filtering your Budget Table... but clearly, it is not. I pic of the relationships would help say whats up. You want the field on Rows to come from the lookup table (the 1 side of the 1:many).

Thanks for the explanation, scottsen. I'll fiddle around with it, keeping your explanation in mind, and get back with my results..... could be a week though, my wife is about to go into labor!! woohoo! Thanks guys!
 
Upvote 0

Forum statistics

Threads
1,224,071
Messages
6,176,201
Members
452,714
Latest member
streamer1234

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