this is what I wrote - but I still get June data in my graph and tabular data...
//to differentiate between records for the last full month and current month records which shouldn't be included in the analysis
WhileReadingRecords;
booleanvar VisitInMonthFg;
If {OrderVolume.OrderStopDateTime} In DateAdd ("m", -12, CurrentDate) To CurrentDate
Then VisitInMonthFg := True
Else VisitInMonthFg := False
//to differentiate between records for the last full month and current month records which shouldn't be included in the analysis
WhileReadingRecords;
booleanvar VisitInMonthFg;
If {OrderVolume.OrderStopDateTime} In DateAdd ("m", -12, CurrentDate) To CurrentDate
Then VisitInMonthFg := True
Else VisitInMonthFg := False