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

Year To end of currently selected month

I'm trying to modify a set analysis (in a text box) to count entries from the beginning of the selected year until the end of the currently selected month. I keep getting it up to the current month. How can I modify this expression to basically say Month<=GetCurrentSelections(Month).

When I try that I get '0' when I select Feb and the total should be 135 - although it's entirely possible that I haven't got the syntax right.

Jan=129

Feb=106

Mar(so far)=18

The expression that works for the current month is:

='Year To Date' &Chr(10)& Count({<Month=,Outcome-={"DCI","DCNI"}>}FullCode)

Any pointers in the right direction would be gratefully received.

QV v12

1 Solution

Accepted Solutions
tresesco
MVP
MVP

May be something inline with:

Count({<DateField={">=$(=YearStart(Max(DateField)))  <=$(=Date(Max(DateField)))"}, Month=,Outcome-={"DCI","DCNI"}>}FullCode)

View solution in original post

1 Reply
tresesco
MVP
MVP

May be something inline with:

Count({<DateField={">=$(=YearStart(Max(DateField)))  <=$(=Date(Max(DateField)))"}, Month=,Outcome-={"DCI","DCNI"}>}FullCode)