Hi I have a column called [Weekday] (Type = ‘Text’) which contains an App Formula that returns a list of WEEKDAY() values based on a date range ([From Date] & [To Date]) entered by the user
e.g. [From Date] = 19/10/2020, [To Date]=23/10/2020, [Weekday]=2,3,4,5,6
Using this example what expression would I use to identify that 6 is the highest number in the result for [Weekday]?
Since [Weekday] is a text type, you won’t be able to use the MAX() expression on it. Is [Weekday] a real or virtual column? What expression do you use to generate the value in [Weekday]? You could possibly convert that column to an EnumList base-type Number if it is a real column. Or if it is virtual, it can just be a List type.
but when I use the following expression on a subsequent column I am getting the following error ‘The inputs for function ‘MAX’ should be a list of numeric values’
to create a list of [Weekday] Numbers (based on a date range) which I can then use one of the values of to return the relevant list of [Name]s from the Work_Pattern table which contains columns [Monday], [Tuesday], [Wednesday] etc…