Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Select in field: MAX value minus one

I need to set a list box to default to the two values after the max date. For example, see below.

I have the below expression but it does not work.

='>=' & MAX(ActiveMonth , 3)-1

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

How about:

='>=' & Date(MAX(ActiveMonth , 3)-1)&'<'&Date(MAX(ActiveMonth))

View solution in original post

3 Replies
tresesco
MVP
MVP

Format could be the issue. Try like:

='>=' & Date(MAX(ActiveMonth , 3)-1 , 'DD/MM/YYYY')

Anonymous
Not applicable
Author

That doesn't work but the below selects all three.

='>=' & Date(MAX(ActiveMonth , 3)-1)

m_woolf
Master II
Master II

How about:

='>=' & Date(MAX(ActiveMonth , 3)-1)&'<'&Date(MAX(ActiveMonth))