Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Cross Tab - dynamic input for "Values for New Columns"

jgiacomazzi
7 - Meteor

I want the "Values for New Columns" field in the Cross Tab tool to change depending on a certain input; essentially it would be ideal to put a formula in there (e.g. Values for New Columns = [Issue Age]) . I don't think anything like this is possible, so I'm wondering if there's a workaround. 

 

I attached an example. In the Text Input tool you'll see a column for Issue Age where each row equals 60. Then, in the cross tab tool, I want to transform the column equal to 60 because it is the issue age. In my example, I manually set "Values for New Columns" to 60. If the issue age were to change, is there some way to change "Values for New Columns" to be equal to the issue age without doing it manually? 

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@jgiacomazzi 

Maybe dynamic Select?

Qiu_0-1612326756232.png

 

jgiacomazzi
7 - Meteor

How could I use this tool without manually inputting '60' though? And automatically setting it to the issue age column?

echuong1
Alteryx Alumni (Retired)

If you pivot your data so your data is in a name-value format, you can use the issue age as a dynamic filter. I used a transpose to pivot my data, then used a filter to identify any row where Name = Issue Age. This would identify any value that was originally associated with the corresponding age column. I then used a cross-tab to pivot my data back.

 

 

echuong1_0-1612362662422.png

 

jgiacomazzi
7 - Meteor

This worked! Thank so much.

Labels
Top Solution Authors