A
Anne Nasser
Many thanks for referring me to John Walkenback`s site for the tip on
using the "unpivot" technique to reformat the data. It`s an excellent
tip.
J. Walkenback describes how data can be reformatted from a two-variable
summary table. Is there a way that this could be done with a
three-variable summary table or perhaps even larger summary table.
For example, if the original summary table is structured as follows:
productname; region; 1991sales; 1992sales; 1993sales
automobiles; detroit; 400; 503; 600
automobiles; canada; 561; 389; 300
automobiles; alabama; 388; 493; 789
toasters; canada; 987; 234; 343
radios; detroit; 343; 434; 789
(the only repeating field per line is sales per year)
and I would like to reformat the data to the standard structure for
pivot tables:
productname; region; year; data
Is there a way that Walkenback`s technique could be applied to do this
for a three-variable table? Or is there another way you recommend? Any
suggestions on how to approach this or go about this would be much
appreciated.
Anne Nasser
using the "unpivot" technique to reformat the data. It`s an excellent
tip.
J. Walkenback describes how data can be reformatted from a two-variable
summary table. Is there a way that this could be done with a
three-variable summary table or perhaps even larger summary table.
For example, if the original summary table is structured as follows:
productname; region; 1991sales; 1992sales; 1993sales
automobiles; detroit; 400; 503; 600
automobiles; canada; 561; 389; 300
automobiles; alabama; 388; 493; 789
toasters; canada; 987; 234; 343
radios; detroit; 343; 434; 789
(the only repeating field per line is sales per year)
and I would like to reformat the data to the standard structure for
pivot tables:
productname; region; year; data
Is there a way that Walkenback`s technique could be applied to do this
for a three-variable table? Or is there another way you recommend? Any
suggestions on how to approach this or go about this would be much
appreciated.
Anne Nasser