Free Trial

Alteryx Designer Desktop Discussions

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

Need Help with Multirow Formula

khawzkk
5 - Atom

 

Record IDNameValueProbProb2
10A10.10.1
11   
12   
20A20.20.04
21A20.2 
22   

The output is Prob 2 which is the product of every Prob grouping by recordID

The data is group by RecordID mainly so I need to find the product of Value of each Record ID.

May I know how can I achieve this output?

Sorry if the question is not clear enough.

4 REPLIES 4
KarolinaRoza
11 - Bolide

Hi @khawzkk 

sorry but it is not clear for me.

What do you need to find for each Record ID?

 

Karolina

DylanDowrick
9 - Comet

I'm not exactly sure what you were looking for so I just went ahead and put something together. Let me know if any of it helps.

echuong1
Alteryx Alumni (Retired)

You can use a summarization to get the total, and then a formula and join to adjust the values accordingly.

 

echuong1_0-1619012888895.png

 

apathetichell
19 - Altair

multi-row-formula - new column (I called it product in the example)

 

group by record-id.

 

Your basic formula is something like:

if [Row-1:Record ID]!=null() then [Value]*[Row-1:product] else [Value] endif

 

Note - this is set up for "values for rows that don't exist = null()" - not = 0

Labels
Top Solution Authors