largeselection
Active Member
- Joined
- Aug 4, 2008
- Messages
- 358
Hello,
I am trying to figure out the best way to get information out of an OLAP database.
So the database is structured with these fields: [player], [team], [location], [points], [year]. There are many players which roll up into teams and many teams. There are 2 available years.
Basically what I would like to get at is the count for this year and for last year of player/location combinations that sum to less than 2 points. If I pull total player then that gives me the points across all locations, if I pull total location, that gives me points across all players, so I need player/location level detail.
So I could try to create a pivottable and then use formulas to count it out, the issue is that I have 6,000 players, and each player would then have 700 locations = 6,000 x 700 = 4.2 million rows x 2 columns if I put this year and last year as columns, otherwise 8.4 million rows if I try and include it horizontally.
So I thought there must be a simpler way to do this via mdx (or dax in powerpivot if need be). I don't need to see all of the rows of data, I just need to know the count where player/location combos have points total < 2.
I would be happy enough if I could just limit the set to only show those player/locations where that was true because that would be considerably smaller in size than the 4.2 million rows.
I tried something like IIF([POINTS] < 2, [PLAYERS], null) as a named set in MDX, and then made a pivottable where I put locations on the horizontal, then I thought I could throw that named set in and it would work...and it did not. I'm not even a noob when it comes to MDX/SQL I'm way below that level.
Any ideas?? Thanks in advance
I am trying to figure out the best way to get information out of an OLAP database.
So the database is structured with these fields: [player], [team], [location], [points], [year]. There are many players which roll up into teams and many teams. There are 2 available years.
Basically what I would like to get at is the count for this year and for last year of player/location combinations that sum to less than 2 points. If I pull total player then that gives me the points across all locations, if I pull total location, that gives me points across all players, so I need player/location level detail.
So I could try to create a pivottable and then use formulas to count it out, the issue is that I have 6,000 players, and each player would then have 700 locations = 6,000 x 700 = 4.2 million rows x 2 columns if I put this year and last year as columns, otherwise 8.4 million rows if I try and include it horizontally.
So I thought there must be a simpler way to do this via mdx (or dax in powerpivot if need be). I don't need to see all of the rows of data, I just need to know the count where player/location combos have points total < 2.
I would be happy enough if I could just limit the set to only show those player/locations where that was true because that would be considerably smaller in size than the 4.2 million rows.
I tried something like IIF([POINTS] < 2, [PLAYERS], null) as a named set in MDX, and then made a pivottable where I put locations on the horizontal, then I thought I could throw that named set in and it would work...and it did not. I'm not even a noob when it comes to MDX/SQL I'm way below that level.
Any ideas?? Thanks in advance