Alteryx Designer Desktop Discussions

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

Using Multi Row/Multi Field Formula to resolve the issue

ajanayak
8 - Asteroid

Hello Team,

 

Please help me to resolve the difficulties which I am facing in one of my delivery where I need to use Multi Row/Multi Field formula to get the result, I am stucked to move forward, Please help me, Thanks in advance.

 

Any help would be appreciated.

 

Thanks

AJAY

17 REPLIES 17
mceleavey
17 - Castor
17 - Castor

Hi @ajanayak ,

 

If you want to know more about how to use the multi-row formula I suggest the following help article:

https://help.alteryx.com/20223/designer/multi-row-formula-tool

 

I would also strongly recommend jumping in to the Learning Paths section of the Alteryx Academy:

https://community.alteryx.com/t5/Learning-Paths/Getting-Started-Learning-Path/ta-p/475117

 

You can also try the interactive lessons which has a specific one for multi-row formula:

 

https://community.alteryx.com/t5/Interactive-Lessons/Multi-Row-Formula/ta-p/82872#done

 

Once you have gone through these, and are still unable to build this then I suggest you reach out with the specific problem you are having.

 

Thanks,

 

M.



Bulien

ShankerV
17 - Castor

Hi @ajanayak 

 

Please find the expected output.

 

ShankerV_0-1675260764769.png

 

K4 = (J4-K3)+K2

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @ajanayak 

 

Step 1: Input

ShankerV_0-1675260841609.png

ShankerV_1-1675260865843.png

 

Step 2: 

ShankerV_2-1675260886999.png

 

Step 3: 

ShankerV_3-1675260903188.png

ShankerV_4-1675260926962.png

 

Many thanks

Shanker V

 

 

 

ShankerV
17 - Castor

Hi @ajanayak 

 

Step 4: Sort tool

ShankerV_0-1675260965466.png

ShankerV_1-1675260974857.png

 

Step 5: 

ShankerV_2-1675260995432.png

 

IF [F11]="Inventory: 4PL"
THEN tonumber([Row-4:Value])-tonumber([Row-2:Value])+tonumber([Row-1:Value])
ELSE [Value]
ENDIF

 

ShankerV_3-1675261015879.png

 

Step 6:

ShankerV_4-1675261060854.png

 

ShankerV_6-1675261110116.png

 

Many thanks

Shanker V

 

 

 

 

FinnCharlton
13 - Pulsar

@ajanayak ,

Here is a way to replicate your output:

FinnCharlton_0-1675261165993.png

 

ShankerV
17 - Castor

Hi @ajanayak 

 

Adding the dynamic tool at the end will help the column name to take from the first row.

This is optional based on how you need to format the output.

 

ShankerV_0-1675261448192.png

 

ShankerV_1-1675261483284.png

 

Many thanks

Shanker V

 

ajanayak
8 - Asteroid

Hello Shanker,

 

Would you not mind to attach the workflow here.

 

 

Thanks

AJAY

ShankerV
17 - Castor

Hi @ajanayak 

 

Please find the attached workflow.

 

 

ajanayak
8 - Asteroid

Hello Shaner,

 

Is it necessary to keep the first row contains data, At the same time solution doesnot fit if my dataset changes with one more set of data, Please have some time and look into the data, Data is not appearing perfect for calculated field that is INVENTORY :4PL

 

 

Any help would be highly appreciated.

 

 

Thanks

AJAY

Labels