Hi..
I have a lot of the "True" Vlookup use cases in my excel to be recreated in Alteryx and so far I haven't had a good solution without writing a long nesting IF stagement. Sample case as below to calculate bonus:
| Bonus % Table |
| Sales | Incentive % |
| $ - | 0% |
| $ 20,001 | 5% |
| $ 40,001 | 8% |
| $ 50,001 | 10% |
And I have to get the bonus rate with each sales' sales number:
| Emp | Sales | Bonus Rate |
| A | $ 35,961 | 5% |
| B | $ 14,473 | 0% |
| C | $ 42,656 | 8% |
| D | $ 79,200 | 10% |
With excel it's very easily done with either vlookup or xlookup -- xlookup can even let you pick -1 or 1 so the it's even more versatile for a lot of use cases (I do have one use case to match with the next "larger" number/range).


Since the lookup value is numeric not string, unfortunately somehow I didn't seem to be able to find a good solution to make it work (find/ replace, join, union..). Also since my real application is way more complicated and both the "lookup_value" and "return_value" change quite often. The long IF statement like "If sales < 20000, then 0%, if sales < 40000, then.." really isn't a good solution to me.
Anyone can give me some pointers?
Thanks a million!