Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

Less than or equal to in set analysis

This should be pretty simple but for some reason not working as expected.

I have an expression that uses the following set:

Month={"<=$(=max(Month))"}

The Month fields is : 201401, 201402, 201403,,,etc.

When I select (for example) 201403 I would expect that my expression would sum on 201401, 201402, and 201403 because the expression should take less than or equal to the max selected value. However it only uses 201403.

Is this because the Month field is a text field? If so how could I rewrite to make this work?

Thanks in advance...

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Month = {'<=$(=Max(Month))'}


or


try



Month = {'<=$(==Date(Max(Month),'YYYYMM'))'}


View solution in original post

6 Replies
MK_QSL
MVP
MVP

Month = {'<=$(=Max(Month))'}


or


try



Month = {'<=$(==Date(Max(Month),'YYYYMM'))'}


zagzebski
Creator
Creator
Author

Thanks for the response.

Unfortunately it is still only bringing back the selected month, not the prior months.

MK_QSL
MVP
MVP

Month = {'<=$(=Date(Max(Month),'YYYYMM'))'}

alexandros17
Partner - Champion III
Partner - Champion III

Are you sure that values computed is present for previous months?

zagzebski
Creator
Creator
Author

Yes there are.

alexandros17
Partner - Champion III
Partner - Champion III

Syntax seems correct, but anyway try this ...

Sum({$ <Month={'<0201404'}>} myField)

that is fix a month and paste in the set analysis as showed