Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Help in Balance Formula

Kinetic_analytics
11 - Bolide

Hello Analytics Fols:

Good morning.  I am struggling to form a formula to balance. 

Kinetic_analytics_0-1678885831065.png

I want to remove from the list if the balance is done with a positive number by the negative exact same number. How can I achieve that?

Appreciate your help.

Thanks

3 REPLIES 3
ShankerV
17 - Castor

Hi @Kinetic_analytics 

 

It can be achieved with the help of Multirow formula tool and then filtering the values which are equal.

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @Kinetic_analytics 

 

Please find the use case for your scenario.

 

In the below use case, the positive and the negative numbers are equal and are marked as 1 in Temp column.

 

ShankerV_0-1678886638645.png

 

IF [Balance]=([Row-1:Balance]*-1) or [Balance]=([Row+1:Balance]*-1)
THEN 1
ELSE null()
ENDIF

 

ShankerV_1-1678886655837.png

 

 

Then the filter, 

 

ShankerV_2-1678886695488.png

 

ShankerV_3-1678886712280.png

 

So the output is excluded with those values.

 

Many thanks

Shanker V

Kinetic_analytics
11 - Bolide

@ShankerV Thank you. Appreciate your help. 

Labels
Top Solution Authors