Hi Community
I need to find the first max value in a range and adjust only that one.
In the attached file I have "Department code" in the first column, "application ID" in the second column and the "% share of costs" by Department code in the last column on the far right column. The % share of costs by Department code needs to total 100%, but each % by App ID can only be 5 decimals, so I usually have a rounding difference. I need to identify the Variance by Department code, identify the Max % share of costs value for each Department Code (done in columns 3 and 4), and then add the Variance to the Max value in the "% share of cost" column, which I can do with a simple formula.
My problem is, I don't know how to deal with a situation where there are multiple "Max" values for the same Department code. In the attached data file, for Department code 23746 the Max value of 0.25 appears twice. The same situation with Department code 89067 (Max of 0.12682 appears twice). As a result, my simple formula adds the variance of 0.00001 and 0.00013 respectively to both Max values, thereby causing further differences. In Excel I just use a Vlookup to find the first value, but I can't find a similar trick in Alteryx
I hope that makes sense. Any help or direction is appreciated.