Free Trial

Alteryx Designer Desktop Discussions

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

Overwriting or Dynamically Naming Crosstab Column Headers

srterrill1
5 - Atom

I have a simple process where I upload two files each week, merge them, then create an Excel export.  

 

Every ingest, there are two values for Interval, representing weeks.

DemographicIntervalOriginatorProgram NameTelecast CountTotal DurationMC US AA Proj (units)
Persons 2 - 9912/11/2023 - 12/17/2023Platform AProgram A1184610,000,000
Persons 2 - 9912/11/2023 - 12/17/2023Platform BProgram B1227310,000,000
Persons 2 - 9912/11/2023 - 12/17/2023Platform BProgram C15610,000,000
Persons 2 - 9912/11/2023 - 12/17/2023Platform CProgram D15510,000,000
Persons 2 - 9912/11/2023 - 12/17/2023Platform CProgram E15510,000,000
Persons 2 - 9912/18/2023 - 12/24/2023Platform AProgram A1184615,000,000
Persons 2 - 9912/18/2023 - 12/24/2023Platform BProgram B1227315,000,000
Persons 2 - 9912/18/2023 - 12/24/2023Platform BProgram C15615,000,000
Persons 2 - 9912/18/2023 - 12/24/2023Platform CProgram D15515,000,000
Persons 2 - 9912/18/2023 - 12/24/2023Platform CProgram E15515,000,000

 

The stakeholder would like the two intervals to appear as columns in the Excel output, with values for various metrics side by side, like so:

 

  MC US AA Proj (units)MC US AA Proj (units)Telecast CountTelecast Count
OriginatorProgram Name12/11/2023 - 12/17/202312/18/2023 - 12/24/202312/11/2023 - 12/17/202312/18/2023 - 12/24/2023
Platform AProgram A10,000,00015,000,0001111
Platform BProgram B10,000,00015,000,0001212
Platform BProgram C10,000,00015,000,00011
Platform CProgram D10,000,00015,000,00011
Platform CProgram E10,000,00015,000,00011

 

In general, I believe I have achieved this via the crosstab function in the attached workflow.  However, the challenge arises when the string value for the intervals change, which they will do with each ingest.  Because my new crosstab columns are named for the week in question, the workflow doesn't update dynamically - the old intervals are kept as an artifact with each new data import.  For example, when I import data for the weeks of Jan 1 and Jan 8, I'd like my crosstab headers to adjust too - with the current solution - I'm left with remnant columns for Dec 11 and Dec 18

 

Is there a way that I can update my Interval columns update dynamically with the string value[s] being imported each week without any manual intervention?

 

I am fairly new to Alteryx, so am open to more optimal solutions for achieving the desired crosstab view!

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@srterrill1 

I am not sure I fully understand your intention, but just want to give a try.

Dynamic Rename is used for the naming convention.

Example.png

srterrill1
5 - Atom

This is perfect, thanks @Qiu!

Labels
Top Solution Authors