Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Pivot / crosstab with Multiple rows and join

masakazuenami
6 - Meteoroid

I would like to combine the following two datasets (SOURCE Dataset 1+ Dataset 2) and create the expected result illustrated below.

Both datasets get updated and dynamically change. I need to show the data points (amounts) in the last 2 years, which also need to change dynamically based on when the query was run.  Regardless of matched data points being present or not in the Dataset 2, I would like to show each period (Jan-Dec) in the chronological order for a 2 years timeframe.

 

I appreciate your help!

 

 

MultipleRowPivot.png

2 REPLIES 2
fmvizcaino
17 - Castor
17 - Castor

Hi @masakazuenami ,

 

I'm attaching an example for you and I've tried to comment every important step to help you understading.

The whole idea was to build first a 2 year calendar with all GL Account and left join everything based on it.

 

Best,

Fernando Vizcaino

masakazuenami
6 - Meteoroid

@fmvizcaino  This is exaclty what I was looking for! Thank you so much!

Labels
Top Solution Authors