Alteryx Designer Desktop Discussions

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

Formula based on week number

BrianHausman
6 - Meteoroid

Hi, I am looking to trend score a vendor based on service level in a given week.  In the data below you see I have 10 weeks of service level data.  I would like to add two columns, one that shows weeks where any of the ten weeks have a level less that 95% and one where any of the last two weeks has a level under 90%.  I have tried to rank the weeks but that has been unsuccessful.  The first dataset is my actual the second is how I would like it to show.

 

WeekVendor NameService Level
01/09/2022Vendor 192.37%
01/16/2022Vendor 197.68%
01/23/2022Vendor 196.28%
01/30/2022Vendor 198.43%
02/06/2022Vendor 197.81%
02/13/2022Vendor 193.80%
02/20/2022Vendor 194.52%
02/27/2022Vendor 195.65%
03/06/2022Vendor 195.83%
03/13/2022Vendor 198.64%
01/09/2022Vendor 292.48%
01/16/2022Vendor 292.25%
01/23/2022Vendor 291.75%
01/30/2022Vendor 290.22%
02/06/2022Vendor 290.47%
02/13/2022Vendor 292.27%
02/20/2022Vendor 291.83%
02/27/2022Vendor 291.61%
03/06/2022Vendor 293.24%
03/13/2022Vendor 291.64%
01/09/2022Vendor 395.43%
01/16/2022Vendor 390.68%
01/23/2022Vendor 389.07%
01/30/2022Vendor 390.82%
02/06/2022Vendor 390.79%
02/13/2022Vendor 388.95%
02/20/2022Vendor 381.64%
02/27/2022Vendor 380.69%
03/06/2022Vendor 375.72%
03/13/2022Vendor 375.65%

 

WeekVendor NameService Level10 Week2 Week
01/09/2022Vendor 192.37%1 
01/16/2022Vendor 197.68%  
01/23/2022Vendor 196.28%  
01/30/2022Vendor 198.43%  
02/06/2022Vendor 197.81%  
02/13/2022Vendor 193.80%1 
02/20/2022Vendor 194.52%1 
02/27/2022Vendor 195.65%  
03/06/2022Vendor 195.83%  
03/13/2022Vendor 198.64%  
01/09/2022Vendor 292.48%1 
01/16/2022Vendor 292.25%1 
01/23/2022Vendor 291.75%1 
01/30/2022Vendor 290.22%1 
02/06/2022Vendor 290.47%1 
02/13/2022Vendor 292.27%1 
02/20/2022Vendor 291.83%1 
02/27/2022Vendor 291.61%1 
03/06/2022Vendor 293.24%1 
03/13/2022Vendor 291.64%1 
01/09/2022Vendor 395.43%  
01/16/2022Vendor 390.68%1 
01/23/2022Vendor 389.07%1 
01/30/2022Vendor 390.82%1 
02/06/2022Vendor 390.79%1 
02/13/2022Vendor 388.95%1 
02/20/2022Vendor 381.64%1 
02/27/2022Vendor 380.69%1 
03/06/2022Vendor 375.72%11
03/13/2022Vendor 375.65%11

 

Any ideas would be appreciated.

 

Brian

6 REPLIES 6
mceleavey
17 - Castor
17 - Castor

Hi @BrianHausman ,

 

Nice and simple. You first need to convert the Service Level to a numeric field, and then simply apply an IF function to determine if that number is below 95.

Then, isolate the last two weeks of each Vendor group using the sample tool, do the same IF using 90 as the figure, then join back and tidy up. Simple.

 

mceleavey_0-1647451986344.png

 

This gives the following results:

mceleavey_1-1647452078581.png

 

Workflow attached.

 

I hope this helps,

 

M



Bulien

gabrielvilella
14 - Magnetar

Hi @BrianHausman, here is how you can achieve this.

gabrielvilella_0-1647452185079.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @BrianHausman 

 

Here is my take on it.

 

Workflow:

atcodedog05_0-1647452596586.png

 

Hope this helps : )

 

gabrielvilella
14 - Magnetar

@atcodedog05 Are we competing on who does this with less tools? 😁

atcodedog05
22 - Nova
22 - Nova

Hi @gabrielvilella 

 

I wouldn't say competing because I always love to learn from others than compete 😅 

 

And partly challenge myself to see how to solve it with lesser tools/easier method 😅😁

mceleavey
17 - Castor
17 - Castor

@atcodedog05 and @gabrielvilella fewer tools are not an indicator of elegance ;)

 

M



Bulien

Labels