Pivot Table data pulling fields from data model in a PITA way

ShadezExcel

New Member
Joined
Mar 3, 2015
Messages
8
Crosspost with the basic Excel forum:

I am basically looking for a way to collapse 6a and 6b into one line so that all of the calculations happen on one line. I am x-posting because I suspect that the data model is causing some rigidity.

nmj8ZXP.png


http://www.mrexcel.com/forum/excel-questions/843740-pivot-table-how-limit-data-one-row.html
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
You should use aliases for cases like this (there you would give the 6a and 6b the same name: newest one. Create a hierarchy with the real names - then they can be doublecklicked if so wants to see whats behind).

Fill in an alias column in all of your dimension tables for the names that could change and use these in your reports. So if someone decides that sth needs to be changed, you don't need to adopt your reports.

This is specially important with dimensions, where names are used for filtering or other structures in your reports (i.e. account names): You don't want to adjust your reports, if someone decides to change the names (as they are seldom used as keys, this can happen quite often!)

In my eyes, you can simply not have enough aliases :)
Imke
 
Upvote 0
Good morning!

Thanks for the recommendation. By "create a hierarchy", I am guessing that you mean to make a separate table. How do I make this table future proof so that if a new customerID is made, it is automatically added?
 
Upvote 0
Well, it depends on how your data is currently structured:

Where does the customer name that shall be shown for no6 currently sit?
a) In the table that also contains 6a and 6b (so they will be the key-level)? Or
b) in a table where 6 is the key-level (only 1 line per customer name)

If it's b) and you have a table that has only one (the current?) name per customer, then you're at what Scott has suggested in the first post (might this be your "current customer card" you've mentioned?): Link that table as a lookup table to your table where the 6a and 6b items are and create a calculated column (using RELATED) to drag that name there. Then you have the 2 columns you need in 1 table to create a hierarchy (as far as I'm aware, hierarchies can only be created within 1 table).

If it's a) then the challenge might be to allocate the most current name to all the older ones for each customer. A calc column using EARLIER might work for that.
 
Upvote 0

Forum statistics

Threads
1,216,057
Messages
6,128,520
Members
449,456
Latest member
SammMcCandless

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