0

Sales Line Filtering

Good Morning :)

I'm creating a report where I need to look at the sales line of all orders and if SKU A is present, then I pull the Document No. Field and do stuff with it.
Where I'm running into an issue is that I need to apply a filter that, in english, says "All Document No. where, in the sales lines, SKU A is present UNLESS SKU B is also present."

I know what exactly the SKUs are and they never change. I've tried nesting the NL, I've tried pulling the Document No. from the Sales Header and linking to the Sales Line and in both cases, I get both the Document No. that have only SKU A and those with SKU A and SKU B.

Here's the current filter I have running which does not work :( :

=NL("Rows=5","Sales Header","No.","Link=Sales Header","Sales Line","Document No.","=No.","No.","MK-REQUIRED","No.","<> MK-STAGED")

Any advice is appreciated.

3 comments

Please sign in to leave a comment.