Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Filling in a column based on the vale of multiple rows and columns.

edmonj
6 - Meteoroid

Looking for a way I can fill in a column at the end of my crosstab with target values for the most recent week in the rows that correspond with that target.

 

I have a data set that originally looks like this:

 

WeekThing1Thing2Thing3Thing4Target1Target2Target3Target4
1621481014735116331932
2366373186360183257296
323870124122333190313189
4394141956519433512451
53527217288608534556

 

That I transpose and crosstab to get to this:

 

KeyName12345WoWTarget
1Thing162366238394352-10.7% 
2Thing2148377014172-48.9% 
3Thing310311249517281.1% 
4Thing414786122658835.4% 
5Target135136033319460-69.1% 
6Target216318319033585-74.6% 
7Target3319257313124345178.2% 
8Target43229618951569.8% 

 

I'm looking for a way to have the target column show the latest week in the case 5 target for each Thing.

 

So the end result would look like this (I'll have to add a % to target as well but if I can get how to bring the target over this isn't an issue):

KeyName12345WoWTarget% to Target
1Thing162366238394352-10.7%60586.7%
2Thing2148377014172-48.9%8584.7%
3Thing310311249517281.1%34549.9%
4Thing414786122658835.4%56157.1%

 

I've tried a few things but have yet to get anything that works.  I'm open to either adding it in before transposing and cross tab, but I add the keys after the cross tab to order my report render accordingly and thought it would be an easy thing to reference as out of my 59 rows/keys only 12 have targets.

10 REPLIES 10
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@edmonj You're welcome! It was a fun challenge

 

All the best,
BS

LinkedIN

Bulien
Labels
Top Solution Authors