help with powerpivoting from multiple tables

fAdI

New member
Joined
Nov 9, 2013
Messages
11
Reaction score
0
Points
0
any help on this is much appreciated:
how do I get the attached pivot table to work? I'm trying to get the '2013 estabs' column pull in same data point as in the '2012 estabs' . Now it is giving the total for the entire source column in the source table. In the powerpivot window, i made a primary key column and linked the two tables but it's not working. hope you see what i mean. the actual tables are 80,000+ rows each and want to have about 10 tables of that size linked.

fadi
 

Attachments

  • CEW q12013 mini2.zip
    172.9 KB · Views: 24
Hi Fadi,

The easiest way to deal with the scenario you are facing is actually to copy all of your 2013 data into your 2012 table, refresh the model, and drag the Year onto the columns. That should sort it.

In the grander scheme though, the challenge you are having is that your data sources need to be taken back into a normalized form. To make PowerPivot truly sing, you need to have a table that includes your columns A:M, as well as a Calendar table. You'd link both the calendar and the first table to your individual year's data and you should be able to report on what you need. As your data is currently set up though, it's going to cause you grief, I'm afraid.
 
Ok, thanks much. So answer is Copy and Past Append because of lack of normalization.
Though interesting there's no Append option when Get External Data From Text File in the PowerPivot window - It creates new table with each text file import which then needs to be copied and past Append to make one consolidated table.
 
Paste Append is just one method.
Another way is to create a relationship between the two tables
and tables that contain their unique values, such as dates, as Ken mentioned.
See PowerPivot2 in the same link.
 
Thank you much. What a great exercise on database normalization which I needed. I recreated my workbook and followed your example on the various lookup tables and created the relationships but I didn't create a 'both' table and the 'Estabs' measure, and it is not working. Why do I need the 'both' table which seems to be the two tables appended if I have the relationships? I thought it was either combine the tables or create the relationships?
 
I'm getting it.. I tried doing it without this Estab12 and Estab13 measures and it doesn't work - something about doesn't know the value of the field in this context, hence you need the sum operator on the individual fields in the tables. makes sense. once last question, what do you call or what's the logic behind the Estab measure that joins them together with the "+" in table1 (along with the fips field)?
 
thanks again. and am only posting so i get to 5 post count as i need to submit another question in another thread with link to a file.
 
Back
Top