Start Free Trial

Alteryx Designer Desktop Discussions

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

Data wrangling

Haokun
8 - Asteroid

hi designer

 

I've a existing data set looks like below. some account has 2 years data, some not. 

AccountYearAccounting PeriodSum_Base Amount
6182303000202001/202075000
6182303000202002/202065000
6182303000202003/202055000
6182304000202101/202145000
6182304000202102/202135000
6182304000202103/202125000
6182201000202001/202030000
6182201000202101/202140000
6182201000202002/202050000
6182201000202102/202140000
6182201000202003/202050000
6182201000202103/202150000

 

and i want to transform to the below format.can anyone give me some ideas? thanks a lot

Account01/202001/202101 Var02/202002/202102 Var03/202003/202103 Var
6182303000750000-75000650000-65000550000-55000
6182304000045000450000350003500002500025000
618220100030004000100050004000-1000500050000
3 REPLIES 3
Haokun
8 - Asteroid

hi i dont want to create formula tool and select tool to manually create the formulas and re-name the header in different year. becoz the formula need to be looking at the headers and i have to re-update the formula and select tool to change to the correct header sequence. The ideal solution would be get the variance before the cross tab.

Qiu
21 - Polaris
21 - Polaris

@Haokun 
It turns out to be a lengthy one. 😁

0322-Haokun.PNG

 

Haokun
8 - Asteroid

@Qiu 

hiii master Qiu,

 

thanks for your workflow. i didn't use your workflow but your concept did inspire me alot. in the end, i use the GL and period to append to a master list and join back to the raw data, the transactions are failed to join, i will set the amount to 0 and union back to the raw data. so my raw data has all the period. after that i will use a multi row tool to compute the variance. i am not sure if you are able to visualize the flow. 

 

Haokun_0-1647931554372.png

 

Labels
Top Solution Authors