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.

Lowest possible difference

Kingazawora
8 - Asteroid

I have a logical problem to be solved via Alteryx:

 

1.I have a few documents with value below 0, e.g.: -100,-200,-500

 

and I have positive value of 200

 

2.From negative values, I need to pick best possible number combination to cover that positive value.

 

Is there any mathematical way to do that in Alteryx?

1 REPLY 1
OllieClarke
15 - Aurora
15 - Aurora

Hi @Kingazawora 

There's a very similar question which was solved using the optimisation tool here: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/find-which-combination-equals-... and also here: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Finding-amounts-that-sum-to-ze... 

In those cases they're looking to sum to 0, but in your case you want to sum to 200 (although if you've only got negative values, then there's no way to sum these to a positive value)

Does that help?

 

Ollie

Labels
Top Solution Authors