Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Cumulative total - Multi Row Formula (Including current row dynamic result)

minvestis
6 - Meteoroid

Hi,

 

Can anyone help to achieve following result in Alteryx?

I attached same data file to make test on it.

 

minvestis_0-1684346621415.png

 

Thanks

Mayank

 

9 REPLIES 9
minvestis
6 - Meteoroid

Attached file contain excel formula for Expected Output and I want to achieve same in Alteryx.

Appreciate help in advance.

 

Thanks

Mayank

ShankerV
17 - Castor

Hi @minvestis 

 

One way of doing this.

 

ShankerV_0-1684348098481.png

 

 

However I see a small difference from your output shared.

 

Many thanks

Shanker V

minvestis
6 - Meteoroid

Hi Shankar,

 

Thanks for reply. The solution you provided that only works for 1st record.

 

I need dynamic solution to get result for all records in my sample file as each row considering total cumulative total from expected output column.

 

you can check the formulas in each row in my sample file.


Thanks

Mayank

geraldo
13 - Pulsar

@minvestis 

 

Attached is an example workflow.

Print workflow:

geraldo_0-1684356058111.png

 

Qiu
20 - Arcturus
20 - Arcturus

@minvestis 
We can also try with an interative macro as below.

0518-minvestis-A.PNG0518-minvestis-B.PNG

minvestis
6 - Meteoroid

@geraldo 

 

Thanks for sharing solution. I checked and it worked when we have only 1 unique project ID.

I tried your solution with adding more records in my sample file and its not giving expected output.

 

minvestis_0-1684406584444.png

 

minvestis_1-1684406690111.png

 

Will you please help to change workflow to achieve result using my sample file? I added more data into it.

 

Thanks

 

geraldo
13 - Pulsar

@minvestis 

 

Substitute the formula from the mult row formula for this one:

 

if [Month] <= [MonthEnd] and ( IsEmpty([Row-1:ProjectID]) or IsNull([Row-1:ProjectID]) or [ProjectID] != [Row-1:ProjectID]) then ([Total PC%] * [Budget]) - [Running Total]
else ([Total PC%End] * [BudgetEnd]) - [Running Total End]
endif

geraldo_0-1684410505628.png

 

 

minvestis
6 - Meteoroid

Hi @geraldo,

 

Thanks for sharing new formula. It worked as expected.

Appreciate your help and support.

 

Thanks

 

minvestis
6 - Meteoroid

Hi @geraldo @Qiu @ShankerV 

How are you?

 

I just posted new discussion and need help, following is link for that.

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Json-data-read-in-Alteryx-Desk...

 

Will you please check once you have time? Appreciate your help and support in advance.

 

Thanks

Mayank Patel

Labels