0

Pull unique values from two companies

We have two companies I am querying in which I need to pull unique values (GL accounts) from each company via a NL Rows function. Each company has many matching accounts, but a handfull of company specific accounts. In SQL terms I am wanting to join two tables and select DISTINCT accounts.

Here is what I have tried so far with no success:

I get #Value! returned
=NL("rows","G/L Account","No.",,,"No.","40000..49998","Company=","CompanyA|CompanyB")


This ends up creating a concatenation.
=NL("rows","G/L Account","No.",,,"No.","40000..49998","Company=","CompanyA")&NL("rows","G/L Account","No.",,,"No.","40000..49998","Company=","CompanyB")


Thank you in advance for looking at this!



Jet Essentials 2013
US Dynamics NAV 6.0 R2

2 comments

Please sign in to leave a comment.