Alteryx Designer Desktop Discussions

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

Finding amounts that sum to zero

jannis2021
6 - Meteoroid

Hi. 

 

I have several data sets where I would like to build a workflow that identifies amounts that SUM to zero and segregate them from amounts that do not SUM to zero. Prior to Alteryx I would use Excel's solver functionality to accomplish such tasks. Is there a way to replicate this functionality in Alteryx? I attempted to use the Optimization tool, but am not familiar enough with the syntax to build out the parameters correctly. Can anyone assist?

 

 

Example data:

                   694,494.341
                   (77,749.62)1
                   207,256.031
             (1,517,382.72)1
                   615,632.351
                     77,749.621
100,000.000
16 REPLIES 16
EstebanDaMan
5 - Atom

Hi Folks,

 

I was able to create the workflow based on @jannis2021 last post. All credits to @jannis2021 for this wonderful solution.

Get Amounts with Zero Sum.JPG

srikar235
5 - Atom

Hi @estebandaman and @jannis2021.

 

Is there is any way to do this for different groups of data(based on a key column) in a single dataset.

For Example my data looks like

 

KeyAmount
13
14
12
110
1-9
24
25
2-9
212

 

And my desired output is 

 

KeyAmount
110
212

 

Thank you.

OllieClarke
15 - Aurora
15 - Aurora

Hi @srikar235 

I think in your example you just want to sum the Amount column, grouped by the Key column
image.png

srikar235
5 - Atom

Hi @ OllieClarke

 

Sorry for not being clear

 

My input has 20 columns other than key and amount

 

KeyAmountInvoice number
131      
164
1105
1-96
247
258
2-99
21210
21311

 

And my desired output is 

 

KeyAmountInvoice number
164
1105
21210
21311

 

 Thank you

srikar235
5 - Atom

Hi @OllieClarke

 

Sorry My input is 

 

 

OllieClarke
15 - Aurora
15 - Aurora

Hi @srikar235 

Here's a solution based on @jannis2021's previous work

 

image.png

srikar235
5 - Atom

Thank you so much @OllieClarke.

 

I was stuck at this for last two days. you really helped me a great time.

 

Thank You

Labels