Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

calculate the value of a column based on previous column,

chenyzhao
6 - Meteoroid

hello everyone - i'm trying to create a cal in columns based on previous column. The original data shows the changes in each quarter like below:

 

NameQ1Q2Q3
A1000001000
B05000
C010001000
D5000-10000

 

The updated data should show the running balance based on previous and current quarter's value, desired output below:

 

NameQ1Q2Q3
A100001000011000
B0500500
C010002000
D500040004000

 

I could not find ideal solution for it, and any help is greatly appreciated!

3 REPLIES 3
ShankerV
17 - Castor

Hi @chenyzhao 

 

Based on the input shared, please make use of the Formula tool.

 

Select the column name as "Q2" in the drop down of the Filter tool

 

[Q1]+[Q2]

 

 

Select the column name as "Q3" in the drop down of the Filter tool

 

[Q2]+[Q3]

 

Note: Make sure the Q1, Q2 and Q3 are in integer datatype.

 

Many thanks

Shanker V

binuacs
20 - Arcturus

@chenyzhao One way of doing this with the running total tool

image.png

chenyzhao
6 - Meteoroid

perfect - thanks both!

Labels