Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Dynamic crosstab?

TSP
8 - Asteroid

Hi everyone.

 

I'm struggling to convert the following:

 

Input:

Field1Field2Field3Total_SalesTotal_Profit
ABCAZ1060
ABCBY2070
ABCCX3080
DEFDW4090
DEFAZ50100

 

I'd like to take field 1 and add it as a prefix to my two numerical columns (total sales & total profit):

 

Field2Field3ABC_Total_SalesABC_Total_ProfitDEF_Total_SalesDEF_Total_Profit
AZ106050100
BY2070  
CX3080  
DW4090  

 

 

Many thanks,
TSP

3 REPLIES 3
Thableaus
17 - Castor
17 - Castor

Hi @TSP 

 

Here's a solution

 

Thableaus_0-1594221433465.png

 

 

- Transpose your dataset on data fields Total_Sales and Total_Profit

- Concatenate your column Field 1 with the Name column created

- Use the CrossTab using now as column headers this new column recently created. Value as the Value column generated by transpose tool.

 

Workflow attached.


Cheers,

LukeG
Alteryx Alumni (Retired)

@TSP 

 

Here is a solution that should accomplish what you are looking for.

 

LukeG_0-1594221373645.png

 

These three steps should complete the challenge. Here is a preview of the output:

 

LukeG_1-1594221530897.png

 

Workflow attached.

 

Please let me know if you have any questions! Happy to help!

 

 

TSP
8 - Asteroid

Thanks both @LukeG  and @Thableaus 

 

Many thanks,

Tim

 

Labels