Alteryx Designer Desktop Discussions

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

Formula for SUM minus a particular value

fatehali23
6 - Meteoroid

Hi everyone, I am very new to Alteryx. I am stuck here and could not find a proper solution. 

 

fatehali23_0-1678178036617.png

 

Each value in the Delta column is the sum of the previous two months and the current month minus the target value. How can I do this in Alteryx? 

Thanks :)

 

 

 

 

6 REPLIES 6
ShankerV
17 - Castor

Hi @fatehali23 

 

This can be achieved with the help of Multi-row formula tool.

 

([GP Billing]+[Row-1:GP Billing]+[Row-2:GP Billing])-[Target]

 

ShankerV_0-1678178931808.png

 

Many thanks

Shanker V

 

fatehali23
6 - Meteoroid

I tried this and it does work until the 3rd month. I have values till December. what do I do then?

 

 

ShankerV
17 - Castor

Hi @fatehali23 

 

Please see the attached screenshot, it will help.

 

([GP Billing]+[Row-1:GP Billing]+[Row-2:GP Billing])-[Target]

 

 

Input was:

ShankerV_0-1678179069173.png

ShankerV_0-1678179151300.png

 

 

 

Output post run, 

 

ShankerV_1-1678179091279.png

 

Many thanks

Shanker V

 

fatehali23
6 - Meteoroid

okay, I have understood what you have done. 


Please see that each row in the delta column has a different formula as it is the SUM of the GP Billing of the previous and current month. 

 

fatehali23_0-1678180248226.png

 

 

Christina_H
14 - Magnetar

Use a running total tool for the sum, then it's an easy formula to take away the target value.

Christina_H_0-1678181154831.png

 

fatehali23
6 - Meteoroid

This worked. Thank you so much, Christina. Have a great day

 

 

Labels