I am trying to create a VC using the following formula and I am getting the error message “The inputs for function ‘MIN’ should be a list of numeric values“. I am not using MIN, so what am i doing wrong?
Thanks, Suvrutt, for your input but it seems unclear to me.
I don’t see in the documentation where it says it requires a numeric, it merely says “Name of the column of the named data set in which to find the minimum value” which I would have thought would capture an alpha order. The documentation gives the following example “MINROW("Sales", "Close Date", ([City] = "Madrid")) : returns the row for the oldest sale in Madrid.“ I assume it works with numerics and dates, just not alpha
That said, why is it referring to function ‘MIN’ not ‘MINROW’ in the error message - is that because it is a variant of the MIN function?
Finally, if it is meant to be numeric, is there an alternative I can use?
To explain a little deeper, I am using this to debug, but the VC I am trying to create is actually a yes/no field. The only way I could get it to work is as follows but it seems like an overkill
As we can appreciate a minimum ( or even maximum value) can be found only for a numeric type column ( date, datetime, number , decimal etc.)
Also please see each of the examples in the help article as highlighted below
In all the above examples, each of the underlined columns used in the MINROW() expressions above is a numeric column. There cannot be a minimum ( or maximum) value for non numeric (text , name, etc.) columns.
Now about your requirement, it is not exactly clear by which minimum value you are looking for to find the record. Could you elaborate what exactly menu key contains, its column type and /or how it is sequenced in the “Menus” table and we could help you with a proper expression.
Here I agree that if it is showing the above error message, the message needs a bit of correction. I believe you are correct in your assumption that since it is variant of MIN() function, probably, the same error message has been used but it can definitely be refined.
@Jose_Arteaga , @Adam-google : May we request you to look into the error message for the MINROW() function.
Yes, my mistake. I thought that the documentation said “…that contains the mininmum value found…” it would apply to alpha as well, since technically A is less than Z, and there was no specific mention of it being numeric. I now understand. Thanks for the added clarification