Alteryx Designer Desktop Discussions

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

How to make one cell equal to the negative of another

BrianJ
7 - Meteor

I need to make one cell equal to the negative value of a cell in a different row in the same column.  Can anyone assist?

9 REPLIES 9
Luke_C
17 - Castor

@BrianJ Can you share some sample data? Input & expected output

BrianJ
7 - Meteor

BrianJ_0-1642102080912.png

Pong Offset 1 =0, but needs to be the negative of Sum_F40.  Hope that makes sense.

BrianJ
7 - Meteor

BrianJ_0-1642102172437.png

Pong_Offset 1 is zero Projected Cost amount, but needs to be the negative of whatever is in Sum_F40 Projected cost amount.

Luke_C
17 - Castor

How can we logically associate Pong_Offset1 to Sum_F40? What goes with Offset 2 and so on? 

BrianJ
7 - Meteor

There's no direct association, except one (Pong_Offset 1) should be added in as the negative of the other.  In Excel I'd do a lookup for '95005' and pickup the corresponding value.  

gabrielvilella
14 - Magnetar

Hi @BrianJ, here is one way of doind this, I am using an association table as reference.

gabrielvilella_0-1642102960087.png

 

BrianJ
7 - Meteor

Awesome.  Thanks @gabrielvilella Let me give that a try.

BrianJ
7 - Meteor

 

 
Many thanks.  It worked like a dream.  Really appreciate your help.
gabrielvilella
14 - Magnetar

Happy to help @BrianJ🙂

Labels