0

Filter query by criteria of a different table

I thought I was fairly familiar with the use of LINK = to join to another table, but I am having an issue on the filter to evalute. Consider two functions and their results:

Query A: =-NL("Sum","Item Ledger Entry","Quantity","Entry Type","Sale","Posting Date",$D$7) = 5,264

Query B: =-NL("Sum","Item Ledger Entry","Quantity","Entry Type","Sale","Posting Date",$D$7,"Link=","Item","No.","=Item No.","No.","01301") = 5,264

You might point out I can pull the item number from the Item Ledger Entry table and thus don't need the join, however I have modified the function to make the difference obvious and simple specifically for this question. Query A does not specifiy an item number, while Query B does. What am I missing in this case that is apparently not evaluating the criteria in the Item table via the Link?

2 comments

Please sign in to leave a comment.