We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Calculating % Difference From Previous Week

jkv0019
8 - Asteroid

Hello Everyone,

 

I am new to Alteryx and was wondering if I could ask for help with a workflow I have. 

 

I pull from SQL Server to get the orders we have processed from each supplier. I have put together a workflow that gives me a base for what I would like to accomplish. However, I'm stumped by how to add a column in that calculates the difference in orders between Column A and Column B, B being the following week and will be dynamic as more weeks are added.

 

Also, I am having a little trouble with returning the correct week number, as you can see below (2021-00). I used DateTimeFormat([Act Arr CST],"%Y") +'-'+ DateTimeFormat([Act Arr CST],"%W").

 

If anyone has any suggestions, can you please provide them?

 

jkv0019_0-1614192067829.png

 

jkv0019_2-1614192102465.png

 

1 REPLY 1
Qiu
21 - Polaris
21 - Polaris

@jkv0019 

I believe this is as per design.


%WThis returns the week number, as 00 – 53, with the beginning of weeks as Monday

We can make it as starting from 01 though.

CaptureA1.PNGCaptureA2.PNG

Labels
Top Solution Authors