Free Trial

Alteryx Designer Desktop Discussions

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

How to get the cumulative quantity and cumulative value when there are multiple products

vinothkumar
7 - Meteor

what tools would help to get the cumulative quantity and cumulative value when there are multiple products -see the excel attached

will multi-row formula help?

8 REPLIES 8
grossal
15 - Aurora
15 - Aurora

Hi @vinothkumar,

 

you are right, you can achieve this with two Multi-Row-Formulas! Take a look:

 

grossal_0-1586510466295.png

 

Settings:

 

grossal_1-1586510503663.png

 

The two important options are:

1) Group by Product Name

2) Values for Rows that don't Exist to Null so that my "isNull"-Check to identify the first value works

 

Workflow attached. Let me know what you think

 

Best

Alex

AbhilashR
15 - Aurora
15 - Aurora

Hi @vinothkumar, you could also use Running Total tool to get cumulative numbers.

 

AbhilashR_1-1586521900731.png

 

 

grossal
15 - Aurora
15 - Aurora

Is the Running Total able to use the starting value from a different column?

AbhilashR
15 - Aurora
15 - Aurora

I dug deeper into the data and now realize Mutli-Row Formula tool is a better fit in this case. Please ignore my post.

vinothkumar
7 - Meteor

Sorry, I added the wrong columns in previous file,.see the correct file.. how to get the values now?

grossal
15 - Aurora
15 - Aurora

Hi @vinothkumar,

 

I have adapted the workflow. The only thing that needed to be changed was the starting value in the first Multi-Row-Formula.

 

IF isNull([Row-1:Cumulative Quantity-By Product])
THEN [Opening Qty] + [Transaction Qty]
ELSE [Row-1:Cumulative Quantity-By Product] +[Transaction Qty]
ENDIF

 

In the "Then"-Part it was called [Opening Qty Value] before. I replace it with the correct column and that's it.

 

Workflow attached.

 

Best

Alex

vinothkumar
7 - Meteor

How to remove the lines repeating in the subsequent rows using multi formula tool? I want the value to appear only for 1st of each month of the product and not for restOf the dates

grossal
15 - Aurora
15 - Aurora

You can achieve this using the Sample-Tool:

 

grossal_0-1586786234837.png

 

The Sample Tool allows you to group by a column, this effectively gives you the first of every category.

 

grossal_1-1586786340759.png

 

Output:

grossal_2-1586786359658.png

 

Workflow sample attached.

 

Best

Alex

Labels
Top Solution Authors