Free Trial

Alteryx Designer Desktop Discussions

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

use of crosstab and multi row formulas to manipulate raw data

Max_Ocean
6 - Meteoroid

I have a file attached with raw data. I have client price and a consensus price for each period which is split into months, quarters and years

 

Problem:

I am trying to have a client price and consensus price for each MONTHLY period however in some cases for example the monthlies in 2029 i do not have a consensus price.

 

so for example Feb 29 period is Q12029 so steps I want it to do is

1. search for the quarterly consensus price for Q12029 in the rows marked as 'quarterly'

2. If that is blank then that monthly relates to 2029 so take the consensus for annual of that year

3. once it has found a suitable consensus price I want to also grab the desk price on that particular row it found and replace the monthly desk price with this new price

 

The aim tab in the file is what I want to transform the data into the following format

 monthlyQuarterlyAnnualmethod Final
Austrian Power Basedeskconsensusdeskconsensusdeskconsensus  deskconsensus
29/02/202473.2517241473.24811877    monthly 73.2517241473.24811877

 

example where consensus is missing on the monthly

 monthlyQuarterlyAnnualmethod Final
Austrian Power Basedeskconsensusdeskconsensusdeskconsensus  deskconsensus
28/02/202964.5   64.566.465762Annual 64.566.46576
31/03/202964.5   64.566.465762Annual 64.566.46576

 

 

Any guidance on how this could be achieved would be much appreciated. I have already assigned date groupings in the raw tab which could be used to assign group IDs. honestly struggling to figure out how to do this using multi row formulas

0 REPLIES 0
Labels
Top Solution Authors