We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Restructuring and Condensing Data Set

shelbybradley
7 - Meteor

Hello, 

 

I am having trouble restructuring my data set to only include the critical columns I need. The data currently looks like this, with the critical info underneath a bunch of extra data. 

 

snapshot current.PNG

 

Output:

I would like the data to have the column structure be condensed to:

 

- Product

- Week (with all the dates in one column)

- Demand

- Stock

- Supply

- GAP

 

Any help is much appreciated. 

 

Thanks

 

2 REPLIES 2
RolandSchubert
16 - Nebula
16 - Nebula

Hi @shelbybradley ,

 

I assume, the rows without product/region are the totals for the rows above (e.g. 20-23 are total of 3-19)?

 

If that is true, you could remove the second header line, fill the empty product field for the total rows using a Multi-Row Formula tool, transpose the weeks, calculate the totals and use a Cross Tab tool to  move the measure to columns.

 

2022-02-21_17-50-33.jpg

 

What do you think?

 

Best,

 

Roland

Blake
12 - Quasar

Is this what you're looking for? I left 'Inputs' as a key field but that can easily be removed. See attached for the .yxzp

 

SB 2022-02-21 110216.png

Labels
Top Solution Authors