In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Automatically create new columns based on a condition

bala_psu
5 - Atom

Context: Need to build forecast for the future weeks.

 

How to automatically create new columns 28 to 52 based on a condition (52 - Max (past weeks)) assuming I have data for the past 27 weeks.

1 REPLY 1
davidskaife
14 - Magnetar

Hi @bala_psu 

 

Here is one way of doing it. Find the max week number, use the generate rows tool to generate rows between the max and 52, use the dynamic rename tool to take the data and make them headers, then union back to your existing data:

 

DavidSkaife_0-1658482584914.png

 

 

Labels
Top Solution Authors