In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Multi Filed Formula?

G_SAND
8 - Asteroid

Hi.

I have managed to use a multi field formula calculate some figures but I want them in a different row. In the table below I have added the Field 2 data together for each sequence where a 3 is proceeded by a 4. So the first line here is 0 because the 3 doesn't have a 4 after it, then 77 + 308 = 385 and so on. But I want the calculated data to appear against the 3

 

Start                               Calculated           Wanted

Field 1Field 2 NewField NewField
3184 0 0
377 0 385
4308 385 0
361 0 246
4185 246 0
362 0 370
4308 370 0

 

Any help would be great.

 

Thanks

2 REPLIES 2
Kenda
16 - Nebula
16 - Nebula

Hey @G_SAND! Try just using a Multi-Row Formula tool. I would create a new field with the following expression:

 

iif([Field1]=3 && [Row+1:Field1]=4,[Field2]+[Row+1:Field2],0)

Hope this helps!

G_SAND
8 - Asteroid

Thanks @Kenda

 

For some reason the 'Row+1' option for the new field wasn't in the selection which I though was strange so I logged out and back in again and it appeared.

 

I did manage to work out how to get there in the end, but your method looks better!!

 

Labels
Top Solution Authors