Alteryx Designer Desktop Discussions

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

Data preparation

Tharashasank
8 - Asteroid

Hi  Alteryx experts,

 

Please help me to transform this data set:  

YearQTRvalue
2016Q2Fcst0
2016Q3Fcst0
2016Q4Fcst0
2016Q1Act0
2016Q2Act0
2016Q3Act0
2016Q4Act13181.82
2015Q1Act0
2015Q2Act22704
2015Q3Act65416.5
2015Q4Act0
2014Q1Act0
2014Q2Act7370.99
2014Q3Act109831.5
2014Q4Act-8707.5
2017Q1Plan0
2017Q2Plan0
2017Q3Plan0
2017Q4Plan0
2016Q1Plan0
2016Q2Plan0
2016Q3Plan0
2016Q4Plan0
2016Q1Fcst0
2016Q2Fcst0
2016Q3Fcst0
2016Q4Fcst0
2016Q1Act0
2016Q2Act0
2016Q3Act0
2016Q4Act0
2015Q1Act0
2015Q2Act0
2015Q3Act0
2015Q4Act0
2014Q1Act0
2014Q2Act0
2014Q3Act0
   

 

 

I want the final result like this:

 

year qtrActPlanFsct
2016q2  0
2016q3  0
2016q4  0
2016q10  
2016q20  
2016q30  
2016Q413181.82  
2015Q10  
2015Q222704  
2015Q365416.5  
2015Q40  
2014Q10  
2014Q27370.99  
2014Q3109831.5  
2014Q4-8707.5  
2017Q1 0 
2017Q2 0 
2017Q3 0 
2017Q4 0 
2016Q1 0 
2016Q2 0 
2016Q3 0 
2016Q4 0 
2016Q1  0
2016Q2  0
2016Q3  0
2016Q3  0

 

 

Please help me with this request.

 

Thanks,

Tharashasank

4 REPLIES 4
DataBlender
11 - Bolide

Hi @Tharashasank

 

Did you specifically want there to be only one value from Act, Fcst or Plan per row?

 

The attached workflow has fewer rows as some of the original rows have been combined.

 

The approach was to split the Qtr field into the Quarter and then type of finance info. Then the cross tab tool is used to get this into the three separate columns

2017-02-17_12-42-31.jpg

 

 

Tharashasank
8 - Asteroid

Did you specifically want there to be only one value from Act, Fcst or Plan per row?

  Yes

Tharashasank
8 - Asteroid

https://community.alteryx.com/t5/user/viewprofilepage/user-id/5127

 

Did you specifically want there to be only one value from Act, Fcst or Plan per row?

 yes

 

In your present solution it is doing sum.

DataBlender
11 - Bolide

That's correct, but since you only have one value per quarter/type combination it gets to the same result. You could of course use a different aggregation method, so long as one is used.

Labels