0

Sum Sales Shipment Line by next working day

Hi Guys (and Gals),

I've been tasked with a complicated formula.
The client wants:
Sum Quantity from Sales Shipment Line
Where "Shipment Date" is within the next working date of the "Order Date"

Order Date is a custom field that copies across from the original Sales Order

=nl("Sum","Sales Shipment Line","Quantity","Type","<>''","Item Category Code",$C11,"Sell-To Customer No.",$C$5,"Order Date",$C$6,"Shipment Date",np("DateFilter",nf(,"Order Date"),nl("First","Date","Period Start","Period Start",np("DateFilter",nf(,"Order Date")+1,nf(,"Order Date")+3),"Period Type","Date","Period No.","1..5")))
The idea behind the formula works however the NF(,"Order Date") within the second Date FIlter doesn't actually receive the date.
Hence the formula errors

What it should look like
=nl("Sum","Sales Shipment Line","Quantity","Type","<>''","Item Category Code",$C11,"Sell-To Customer No.",$C$5,"Order Date",$C$6,"Shipment Date","30/03/2012..02/04/2012")So if the Order Date is for today (the 30th) the date filter returns the next weekday in a 3 day filter.

I hope i've been clear but feel free to ask questions.

Cheers
Bromy

1 comment

Please sign in to leave a comment.