Creating "Power Set" from two tables - possible in power pivot?

ajm218

New Member
Joined
Jul 17, 2013
Messages
2
Hi guys,

In table one I have a list of people and in table two a list of years I wish to do some analysis for. I really want to create a combination of the two to use (despite there being no link field). For example if I had:

Bob, Dave and Steve and wished to do analysis for them in 2007,2008 and 2009, can I create a table that looks like this:

Bob 2007
Bob 2008
Bob 2009
Dave 2007
Dave 2008
Dave 2009

etc?

In access this can be done by doing a query with multiple tables/queries and not defining any relationships.

Thanks for any help - just been introduced to power pivot today and getting my head around some of the ideas but this one has stumped me a bit.

Andrew
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Welcome, Andrew

I'm not familiar with power pivot - I'm on Excel 2003 - though assume it would be like Excel 2003: make a cartesian join of the tables.

So SQL like,
Code:
SELECT N.NameField, Y.YearField
FROM NamesTable N, YearsTable Y
Same as any database AFAIK.

Of if you had duplicate names or years in the source table just change to : SELECT DISTINCT etc, etc

HTH. regards, Fazza
 
Upvote 0
Thanks Fazza - so I need to do this in Access or similar before importing the table into Power Pivot?
 
Upvote 0
Thanks Fazza - so I need to do this in Access or similar before importing the table into Power Pivot?

Andrew, I don't know about power pivot. I just assume it can handle a simple table join. In earlier Excel versions this can be done using the SQL I gave above. This does not need Access or similar: Excel can do that natively. hth
 
Upvote 0
Andrew, I don't know about power pivot. I just assume it can handle a simple table join. In earlier Excel versions this can be done using the SQL I gave above. This does not need Access or similar: Excel can do that natively. hth

What Fazza says works but if you're not able to do this type of import and you're just stuck with tables inside Powerpivot then the options that I've given before would work just fine.
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,600
Members
452,658
Latest member
GStorm

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