Replicating Excel "Goal Seek" to solve for aggregate by changing rate input
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I'm relatively new to using Alteryx and its ability to use iterative macros.
I've been trying to automate a process that is currently done by using Excel's "Goal seek" to solve for a rate.
As an example I've attached the fundamental logic and a simple scenario where Y = MAX([M x X] + C],A) and the Sum of all Y values needs to be 50,000.
I've had some success but always seem to fail at integrating the "MAX" part into the equation/macro.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @JCA
How about this? It's a bit rough but it does the job.
Part time Tableau, Part Time Alteryx. Full Time Awesome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @LordNeilLord
Thanks, that worked a treat, I had to split my population when the iterations maxed out at 2,000 but its been working ever since,
One question though, why do you multiply the multiply the threshold by 1.1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @JCA
Sorry I didn't see your original reply!
The 1.1 multiplication is just to make sure that I capture just over the desired value (there's probably a better way to do that)...for example I'm looking for 5000...I want to capture 5010 rather than 4800
Neil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can I get the workflow to solve this goal seek in Alteryx?
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@cakivibesHey - I'd recommend looking into some of the other solutions to this kind of issue - posting in a five year old thread looking for a solution won't help you out. FWITW I'd explore using running total to create discounted cashflows - and then look into the gap between where you are and where you need to be for the final value. Reminder though - we're all volunteers so "can I get a workflow" might not get you where you need to be. I don't build workflows on spec like this - and this community is really about helping people who are troubleshooting problems in their workflow builds vs building ad hoc solutions.
