Hi,
Can I please pick your brain on what I am trying to achieve.
I am hoping to use NL(filter) using the Ledger Entry Dimension table to get "entry no." filter value where an entry number has 2 different values. Sound very confusing I know :shock: , but here are the different formulas I tried that obviously are not working…
NL("Filter","Ledger Entry Dimension","Entry No.","Entry No.",NP("Union",NL("Filter","Ledger Entry Dimension","Entry No.","Dimension Value Code",$F$6),NL("Filter","Ledger Entry Dimension","Entry No.","Dimension Value Code",$F$7)))
NL("Filter","Ledger Entry Dimension","Entry No.","Dimension Value Code",$F$6&$F$7)
I basically want to get a list (filter) of entry no.s where an entry no. in the Ledger Entry Dimension table has both Dimension Value Code of F6 AND F7. For those who are not familiar with the Ledger Entry Dimension table, this table holds the dimensions 3 - 8 for gl entries. A GL Entry No. in this table can have an entry for each dimension value used in the gl entry.
Hope these all make sense ;)
Thanks all for your help in advance.
Date
Votes
1 comment
-
Jet Reports Historic Posts NL("Filter","Ledger Entry Dimension","Entry No.","Entry No.",NP("Union",NL("Filter","Ledger Entry Dimension","Entry No.","Dimension Value Code",$F$6),NL("Filter","Ledger Entry Dimension","Entry No.","Dimension Value Code",$F$7)))
I think this will do the job:NP("Join",NP("Intersect",NL("AllUnique","Ledger Entry Dimension","Entry No.","Dimension Value Code",$F$6),NL("AllUnique","Ledger Entry Dimension","Entry No.","Dimension Value Code",$F$7),"|"))
Union joins the arrays and have the value of both either F6 and F7
Intersect joins the arrays but then only the values that are in F6 and F7
Union:
Array1: A, B, C, D
Array2: C, D, E, F
Result: A, B, C, D, E, F
Intersect:
Array1: A, B, C, D
Array2: C, D, E, F
Result: C, D
Difference:
Array1: A, B, C, D
Array2: C, D, E, F
Result: A, B
Nice extra option would be a Difference but then take values from both arrays, some kind of Unmatched < SUGGESTION ;)
Unmatched:
Array1: A, B, C, D
Array2: C, D, E, F
Result: A, B, E, F
Please sign in to leave a comment.