It looks like you're new here. Sign in or register to get started.
MESSAGE('%1',Last12MonthsFilter());
Last12MonthsFilter() : Text[250] Enddate := CALCDATE('<-CM-1D>',WORKDATE()); Startdate := CALCDATE('<+1D-12M>',Enddate); EXIT(STRSUBSTNO('%1..%2',Startdate,Enddate));
Comments
1st date : Workdate - 1Y
2nd date : Workdate - 1D
And with this you build your filter.
Regards,
tommaso
IT-Consultant
Returns the last date of the current month, maybe you can calculate from there.
try: with this function:
br
Josef Metz
Josef Metz
Great! Thank you!
Regards,
Tommaso
IT-Consultant