Free Trial

Alteryx Designer Desktop Discussions

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

Create Columns based on values in Cells

Rob48
8 - Asteroid

working in version 2021.4.2. I've seen similar discussions but haven't found one that quite answers my question.  

 

I'm trying to add columns to my data by taking values in cells and transposing them over, but I keep hitting walls. Seems easy enough but I can't figure it out.

 

in the below example I want to convert the values in the "Group" column into their own columns.

 

I want to turn this:

 

Employee CodeGroupMarket
1AccountingN.America
1FinanceN.America
1HRN.America
1LegalN.America
2AccountingEurope
2HRN.America
3AccountingEurope
3FinanceEurope
3MfgAsia
3HREurope
4AccountingAsia
5AccountingN.America
5FinanceEurope
5HRAsia
5LegalS.America
5MfgS.America

 

 

 

into this:

 

Emp IDAccountingFinanceHRLegalMfg
1N.AmericaN.AmericaN.AmericaN.America-
2Europe-N.America--
3EuropeEuropeEurope-Asia
4Asia----
5N.AmericaEuropeAsiaS.AmericaS.America
4 REPLIES 4
binuacs
21 - Polaris

@Rob48 Use the Cross Tab tool

binuacs_0-1685548583218.png

 

Carolyn
12 - Quasar
12 - Quasar

Hi! I got it to work with the Transpose tool (with Sort to get the Employee IDs in the right order). If that doesn't solve it, can you attach your workflow? 

 

 

Carolyn_0-1685548713195.png

 

sarahmoe
5 - Atom

Hi there,

 

I understand you're working with Alteryx 2021.4.2 and facing challenges in transposing cell values into new columns. This can indeed be tricky. A potential solution is to use the Cross Tab tool. This tool can pivot your data, turning unique values in the 'Group' column into individual columns.

 

Here's a quick guide:

 

Input your data: Ensure your data is correctly inputted into Alteryx.


Select the Cross Tab Tool: Drag and drop the Cross Tab tool into your workflow.
Configure the Tool: In the configuration pane, set 'Group' as the new header field, and choose the appropriate data field (e.g., 'Employee Code') for the new column names.
Run the Workflow: Execute your workflow to see the transformed data.


Remember, the key is to correctly configure the Cross Tab tool to match your data structure. If you encounter any specific issues, feel free to share your workflow or a sample of your data for more tailored advice.

 

Hope this helps!

sarahmoe
5 - Atom

Hi there,

 

I understand you're working with Alteryx 2021.4.2 and facing challenges in transposing cell values into new columns. This can indeed be tricky. A potential solution is to use the Cross Tab tool. This tool can pivot your data, turning unique values in the 'Group' column into individual columns. Here's a quick guide:

 

1. Input your data: Ensure your data is correctly inputted into Alteryx.
2. Select the Cross Tab Tool: Drag and drop the Cross Tab tool into your workflow.
3. Configure the Tool: In the configuration pane, set 'Group' as the new header field, and choose the appropriate data field (e.g., 'Employee Code') for the new column names.
4. Run the Workflow: Execute your workflow to see the transformed data.

 

Remember, the key is to correctly configure the Cross Tab tool to match your data structure. If you encounter any specific issues, feel free to share your workflow or a sample of your data for more tailored advice.

 

Hope this helps!

Labels
Top Solution Authors