Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

Alteryx Designer Desktop Discussions

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

Help with Make Columns Tool

Mike_at_CG
8 - Asteroid

Hi Alteryx Community

 

Is there any way to make the make column tool dynamic?  By that I mean, if the data is going to change and that changes the number of columns needed is that possible?

 

If I have something like the below I can crosstab and the make columns based on the fact that I know there are rows of data that will become 10 columns based on my input on the make columns tool.

 

DateQuantityPriceCommission
3/1/202519510
3/2/2025210511
3/3/2025311512
3/4/2025412513
3/5/2025513514

 

But if this data changes tomorrow to say 2 rows of data, is it possible to then tell the workflow to read less data into the crosstab tool and then onwards to the make columns tool?

 

DateQuantityPriceCommission
3/6/202519510
3/7/2025210511

 

Thank you for your time

3 REPLIES 3
OTrieger
13 - Pulsar

@Mike_at_CG 

Yes, you can set it as variable and then the number of rows will be created by that variable to that specific row.

Mike_at_CG
8 - Asteroid

@OTrieger  - Thank you for the response.  Would you happen to have an example of something like that?

Mike_at_CG
8 - Asteroid

Just putting some helper information below.  The attachments are of the current workflow.  The tables below are when the underlying data changes and the number of columns in the make columns tool stays the same.

 

 

 
DateQuantityPriceCommission

3/1/2025

19510

 

3/2/2025

210511
3/3/2025311512
3/4/2025412513
3/5/2025513514
3/6/2025614515

 

NameValue
Date3/1/2025
Quantity1
Price95
Commission10
Date3/2/2025
Quantity2
Price105
Commission11
Date3/3/2025
Quantity3
Price115
Commission12
Date3/4/2025
Quantity4
Price125
Commission13
Date3/5/2025
Quantity5
Price135
Commission14
Date3/6/2025
Quantity6
Price145
Commission15
Date 
Quantity 
Price 
Commission 

 

Column_1_NameColumn_1_ValueColumn_2_NameColumn_2_ValueColumn_3_NameColumn_3_ValueColumn_4_NameColumn_4_ValueColumn_5_NameColumn_5_Value
Date3/1/2025Price105Date3/4/2025Price135Date 
Quantity1Commission11Quantity4Commission14Quantity 
Price95Date3/3/2025Price125Date3/6/2025Price 
Commission10Quantity3Commission13Quantity6Commission 
Date3/2/2025Price115Date3/5/2025Price145  
Quantity2Commission12Quantity5Commission15  

 

Thank you

Labels
Top Solution Authors