Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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
16 - Nebula
16 - Nebula

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