The query returns 2 Month1 values. They are always different, so there is always a Min or Max. The code I am using is:
I want to return a 1 if it's the min and a 2 if it's the max.
The query always returns a 1, presumably because it is only checking that row for the Month1 values when I need it to check the entire column.
In Excel this would be:
How can I tell the query to check all of the records for Month1 and not just that row?
Code:
Month ID: IIf([Month1]=Min([Month1]),1,2)
I want to return a 1 if it's the min and a 2 if it's the max.
The query always returns a 1, presumably because it is only checking that row for the Month1 values when I need it to check the entire column.
In Excel this would be:
Code:
=IF(E1=MIN(E:E), 1,2)
How can I tell the query to check all of the records for Month1 and not just that row?