How Do I compare 2 date fields in the same table? ie Sales Shipment Line Compare the Shipment Date To The Posting Date.
13 comments
-
Harry Lewis Do you mean something like one of these?
=NL("Table","Sales Shipment Line",,"Posting Date","=NF(,""Shipment Date"")")
or
=NL("Table","Sales Shipment Line",,"Posting Date","=""<>""&NF(,""Shipment Date"")")
-
Todd Morse Yes Simliar to that. So If I understand correctly the NF Function knows to Shipment Date field from the Sales Shipment Line by leaving the first function argument <blank>. Correct?
Thanks
-
Harry Lewis Hello Todd -
When the first parameter of the embedded NF function is left blank, the function will reference that field for the current record being examined by the NL function (in which the NF function is embedded).
-
Todd Morse Great I am also assuming it works with any type of NL Count ie Rows Count etc...
Thanks
-
Todd Morse I do have another question while you are on a roll if you don't mind.
-
Harry Lewis Hi Todd -
Yes, that filtering technique works in a wide variety of situations. Another question? Go for it!
-
Todd Morse How can access columns from a link filter table in my NL rows. Similiar to a SQL inner join or left outer join.
-
Harry Lewis Todd -
What is it that you are trying to do?
-
Todd Morse In short I would like to Link the sales line with the sales header and access fields from both tables in the same NL rows function.
-
Harry Lewis You can filter an NL function using fields from another table, using either NL(Filter) or LINK=.
Also, you can combine information from related tables using the Table Builder and NL(Table) function.
-
Todd Morse I have used that before. Does link = expose the fields from the linked table?
-
Harry Lewis LINK= can be used for filtering... but does not bring in the fields (for example, for use with an NF function).
-
Todd Morse Ok That answers my question. Thanks for all your help.