We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

"Crosstab-ing" a date

missteran
7 - Meteor

Hi Alteryx team - could someone please help: I have an example where I am trying to put each unique trade ID essentially into a single row to be able to compare month over month how their maturity dates changed and/or how their amounts changed. Is there a way to create the output (2nd table below)?

Input (original data layout)

Month End DatesTrade IDMaturity DateAmount
9/30/2022123456-ABC2/1/2036350,000
8/31/2022123456-ABC2/1/2023353,000
9/30/202289101112-DEFG8/1/2028150,000
8/31/202289101112-DEFG8/1/2024100,000
9/30/2022131415-HIJ10/28/2029500,000
8/31/2022161718-KLM3/1/2024200,000

 

Output:

Current Month End DateTrade IDMaturity Date as of 8/31/2022Maturity Date as of 9/30/2022Amount as of 8/31/2022Amount as of 9/30/2022
9/30/2022123456-ABC2/1/20232/1/2036353,000350,000
9/30/202289101112-DEFG8/1/20248/1/2028100,000150,000
9/30/2022131415-HIJ 10/28/2029 500,000
9/30/2022161718-KLM3/1/2024  200,000
3 REPLIES 3
gautiergodard
13 - Pulsar

@missteran 

Here you go!

 

Please like and accept this solution if it answers your question!

 

Hope this helps!

binuacs
21 - Polaris

@missteran One way of doing this

 

binuacs_0-1665699162694.png

 

 
 

 

 

Emmanuel_G
13 - Pulsar

@missteran 

 

Find in attachement a way of doing that.

 

Emmanuel_G_0-1665699528397.png

 

Labels
Top Solution Authors