In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more 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