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.
SOLVED

Table Transformation

ThankForYourHelp
8 - Asteroid

Hi there,

 

Thank you for your help.

 

I need my table 1 transform to table 2. Please be more dynamic for the tool that you will use because I will have more name in the Name column

 

Table 1: 

NameCompany NumberNet DeCost Deending
Test 1201171998599.58599.5
Test 1202839938.120839938.12
Test 1203000
Test 1204111800025434.51092565.5
Test 12052995105196306998282.52688106913
Test 1206000
Test 120712084.43293.0511791.38
Test 120851312945.871282823.6550030122.22
Test 1209226388.0461124.77165263.27
Test 1210000
Test 1211-172000-32680-139320
Test 1212000
Test 12133499716.5987492.913412223.68
Test 12147938035552198450888.87739584663
Test 121550585449712646362.43493208134.6
Test 1216000
Test 1217000
Test 1218000
Test 1219000
Test 1220000
Test 2201100068932
Test 220248833.61048833.61
Test 2203000
Test 2204650001478.7563521.25
Test 220517413402317848737.36156285285.6
Test 2206000
Test 2207702.5817.04685.54
Test 22082983310.874582.772908728.03
Test 220913162.093553.769608.33
Test 2210000
Test 2211-10000-1900-8100
Test 2212000
Test 2213203471.95086.8198385.1
Test 2214461513694.911537842.37449975852.5
Test 221529410145.18735253.6328674891.55
Test 2216000
Test 2217000
Test 2218000
Test 2219000
Test 2220000
Test 320145322-277
Test 32023220322
Test 32030434-434
Test 3204123421232
Test 320525252534343218182
Test 3206000
Test 3207702.5817.04685.54
Test 3208234234525233709
Test 3209553553.76-3498.76
Test 3210000
Test 3211-10000-1900-8100
Test 3212000
Test 3213203471.95086.8198385.1
Test 321466662336433
Test 3215222225522167
Test 3216000
Test 3217000
Test 3218000
Test 3219000
Test 3220000

 

 

Table 2:

 

Company NumberNet DeNet DeNet DeCost DeCost DeCost DeEndingEndingEnding
 Test 1Test 2Test 3Test 1Test 2Test 3Test 1Test 2Test 3
201171991000458599.5683228599.5932-277
202839938.1248833.61322000839938.1248833.61322
2030000043400-434
204111800065000123425434.51478.7521092565.563521.251232
2052995105196174134023252525306998282.517848737.36343432688106913156285285.6218182
206000000000
20712084.43702.58702.58293.0517.0417.0411791.38685.54685.54
20851312945.872983310.82342341282823.6574582.7752550030122.222908728.03233709
209226388.0413162.095561124.773553.763553.76165263.279608.33-3498.76
210000000000
211-172000-10000-10000-32680-1900-1900-139320-8100-8100
212000000000
2133499716.59203471.9203471.987492.915086.85086.83412223.68198385.1198385.1
2147938035552461513694.96666198450888.811537842.372337739584663449975852.56433
21550585449729410145.182222212646362.43735253.6355493208134.628674891.5522167
216000000000
217000000000
218000000000
219000000000
220000000000
4 REPLIES 4
AshRez
8 - Asteroid

Check this out

Table Transformation.png

ntakeda
12 - Quasar

@ThankForYourHelp 

You can achieve this by using a combination of the Transpose and Crosstab tools.

I have created a sample workflow for reference, so please check it.

 

The workflow includes the following steps, but you may need to remove them if they are unnecessary:

  • In the Crosstab tool, fields are arranged in alphabetical order by default. To prevent this, the field names have been modified in Select tool(e.g., "Net De" → "1 Net De").
  • The final tool restores the original names (e.g., "1 Net De" → "Net De").

I hope this helps!

 

2025-02-07_10h14_03.png

 

ThankForYourHelp
8 - Asteroid

hi @AshRez,

 

is there a way to make the column order more dynamic? I will have more and more columns and change all the names in select tool its not dynamic enough. Ending column should always at the end with a more dynamic tool instead change the order in select tool.

 

Thank you for your help

AshRez
8 - Asteroid

You have the two options to try:

 

1- Dynamic Select Tool: https://help.alteryx.com/current/en/designer/tools/developer/dynamic-select-tool.html

 

2- Dynamic Rename Tool:  https://help.alteryx.com/current/en/designer/tools/developer/dynamic-rename-tool.html 

 

Notice that Dynamic Rename tool was provided to you as an option by another respond by "ntakeda"

Labels
Top Solution Authors