We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Multi Row Formula Help

Marina_Kelner
7 - Meteor

Hello Everyone, 

I have been trying to build a logic using multi-formula and can't figure it out for the life of me.   I have used them in the past and my current process using it as well, however i can't seem to figure out how to do something as simple as below.   

 

I am trying to change the value in Type (new) field, so the outcome looks like a second column (Needed Outcome).  

Basically, if there is a change in Num AND Type (new) = A or B, the next row should be A or B (based on example).  I was able to build that however it only works half way.  Can someone help please? Thank you

 

NumType (new)Type New (Needed Outcome)
1Possibly APossibly A
1Possibly APossibly A
1Possibly APossibly A
1AA
12Possibly BA
1AA
12Possibly BA
1AA
12Possibly BA
1BB
12Possibly AB

 

4 REPLIES 4
CoG
14 - Magnetar

Multi-Row Formula:
IF [Num]=[Row-1:Num] || ([Num]!=[Row-1:Num] && !([Row-1:Type (new)] in ("A", "B"))) THEN [Type (new)] ELSE [Row-1:Type (new)] ENDIF

 

Screenshot.png

Marina_Kelner
7 - Meteor

Thank you Andrew, for some reason, it doesn't work.  I get the same outcome as my original Type (New) field.

I have added the same formula  you provided.

 
 

Capture.PNG

CoG
14 - Magnetar

The only way that would be possible is if the IF condition is always true. Are "A" and "B" the actual values in [Type (new)]? If not, then that's the issue. I cannot think of anything else at the moment that could cause this problem.

Marina_Kelner
7 - Meteor

Andrew, you are correct!  I failed to update it properly! Uggh.. 

Thank you so much and it did work now! Thanks for bringing it to my attention!

Labels
Top Solution Authors