Hi experts ,
i want to take a report only for expired due date and remaining amount <>0 value i need to take
i have used this code
SETRANGE("Document Type",custledger."Document Type"::Invoice);
SETAUTOCALCFIELDS("Remaining Amount");
SETFILTER("Due Date",'<%1',WORKDATE,Date2);
SETFILTER("Remaining Amount", '>0');
i got solution (please see below screen shot)

but my requirements is i need to take a expired due date with this date to this date(19/04/2018..09/04/2018)
i have used this code
Date2 := 090418D;
EndDate:= WORKDATE;
Date1 :=190418D;
SETRANGE("Document Type",custledger."Document Type"::Invoice);
SETAUTOCALCFIELDS("Remaining Amount");
SETFILTER("Due Date",'<%1',WORKDATE,Date2);
SETFILTER("Remaining Amount", '>0');
SETRANGE("Due Date",Date2,EndDate);
but im getting this results (please see below screen shot)

i want to only red color data with this filter
Date2 := 090418D;
EndDate:= WORKDATE;
SETRANGE("Due Date",Date2,EndDate);
please give any soution.
Thank you