0

Countunique Vendor Ledger based on G/L Entry filter

Hey guys

I'm trying to count Vendor ledger entries based on a filter in the G/L Entry table (Gen. Posting Type=Purchase). I have used an intermediary filter for the entries to retrieve the entries from the G/L entry table and then filter based on it in the query for the vendor ledger entry table.

I can't figure why it doesn't filter the entries and does not count anything. I get 0 in all the results.


J5 used as filter in G/L entry
NL("Filter";"G/L Entry";"Entry No.";"Posting Date";Options!$D$7;"Reversed";"False";"Gen. Posting Type";"Purchase";"DataSource=";$B5;"Company=";$E5)
NL Countunique query
NL("CountUnique";"Vendor Ledger Entry";"Transaction No.";"Entry No.";$J5;"Vendor No.";$I5;;;"Reversed";"False";;;;;"DataSource=";$B5;"Company=";$E5)

EDIT: Changed the filter to "Transaction No.". I think this was the major issue not matching G/L entries with Vendor ledger entries. But still the results are not consistent. In some companies I get matching entries, in other more vendor ledger and other g/l entries.

1 comment

Please sign in to leave a comment.