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.

Combined Columns (2 into 1)

JohnBooj
5 - Atom

Hi - 

 

I am trying to figure out to combined two columns into one. I would like to combined quarters 1 and 2 into one column and combined quarters 2 and 3 into a column and than add another column with a total column. 


Basically 3 columns for each company:

 

Total Q1 & 2 || Total Q3 & 4 || Total (Full Year)

 

Capture1.PNG

 

Any help would be greatly greatly appreciated!

 

thanks!

 

John

3 REPLIES 3
Luke_C
17 - Castor
17 - Castor

Hi @JohnBooj 

 

Attaching data would be helpful rather than a screenshot, happy to help but not keen to re-type all of that. 

 

Where do the accounts come into play? Should the total be kept at the account level or summed up? In other words, should the output be: Company | Account | Q1/Q2 | Q3/Q4 | Total or Company | Q1/Q2 | Q3/Q4 | Total

JohnBooj
5 - Atom

Hi Luke - 


Attached is the file I am working with. 

 

Thanks!

 

John

Luke_C
17 - Castor
17 - Castor

Hi @JohnBooj 

 

Something like this should do the trick. If you don't need accounts just uncheck it in the grouping of the last crosstab tool.

 

When trying to transpose multiple header rows you need to separate them out and process them separately, then join back based on the column positioning. 

Luke_C_0-1663016604285.png

 

Labels
Top Solution Authors