Alteryx Designer Desktop Discussions

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

declare a constant to first row followed by cumulative difference

SrinivasanSugumaran
8 - Asteroid

hi everyone .. can you pls. help me in getting the output col. in the below table in alteryx.

 

limit for first row of output col is 1000( user defined). I have already added a constant in workflow tab for this and the subsequent rows should be a cumulative difference.

idsalaryoutput collogic
11001000 user defined constant -1000
22009001000-100
3300700900-200
4400400700-300
2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

Hi,

 

jdunkerley79_0-1601469519234.png

 

 

I think a multi-row formula tool will do what you need. Something like:

 

IIF(IsNull([Row-1:Output]),[User.Initial],[Row-1:Output])-[salary]

 

 

Alternatively, you could use a running total and then a formula tool to add the value. 

 

Hope it helps

atcodedog05
22 - Nova
22 - Nova

Hi @SrinivasanSugumaran ,

 

I think what you are looking for is an app where user can give a value during runtime.

 

Here is the input.

atcodedog05_0-1601468997828.png

 

App

atcodedog05_1-1601469065547.png

Output

atcodedog05_2-1601469082268.png

Workflow

atcodedog05_3-1601469105665.png

Hope i am close to what you are looking for.

 

Hope this helps : )

 

If this helps please mark the post as solution.

Labels