0

Filtering with combining two Fields

Any help with the following would be great (The original problem is at the bottom and an update is above it!):

I would have thought this would work, but the AND feature does not seem to perform. If you leave the If formula in, but remove the AND part it works. As soon as the AND goes back in it will not return any codes

=NL("rows","Job Ledger Entry","Global Dimension 1 Code","Global Dimension 1 Code",$C$14,"Posting Date",$D$21,"Global Dimension 1 Code","=IF(AND(NF(,""Total Price"")<>0,NF(,""total cost"")<>0,),NF(,""Global Dimension 1 Code""),""0"")")



——————————————————————————–
From: John Richardson
Sent: 12 November 2009 12:16
To: Paul S. Wilson
Subject: JET combo fields


I am trying to filter by combining two fields, each with different filters, from the same table, but without success.
What I want is - If Total Cost <>0, AND Total Price<>0, then return Global Dim 1. ie if any income or expenditure entries have been passed to a Gl Dim 1 code, then I want the formula to return the Gl Dim 1 value. This is a simple P&L analysis.

Global Dim 1 are our contract codes. I am then using an NL formula that uses the Gl Dim 1 code to find the values posted from GL numbers ie income and direct costs.

I tried this but it wont work: -
CELL F33 =NL("rows","Job Ledger Entry","Global Dimension 1 Code","Global Dimension 1 Code",$C$11,"Posting Date",$D$21,"Global Dimension 1 Code",=AND(""Total Price"", ""total cost"")","<>0")
The reference to C11 is the Gl Dim 1 range. Posting Date D21 is also a range.
CELL F33 =NL("Sum","G/L Entry","Amount","Global Dimension 1 Code","@@"&$F33,"G/L Account No.",I$13,"Posting Date",$D$21)*-1
The reference to I13 is the GL number range.

The report also takes over three minutes to run
Any help would be much appreciated.
John

3 comments

Please sign in to leave a comment.