|
|
Joined: Feb 2010
Posts: 164
Adagio Maven
|
|
Adagio Maven
Joined: Feb 2010
Posts: 164 |
Hya gents,
I am working in GridView and for some weird reason the filter
MATCHCOUNT({Trx Acct}, "16231, 16232, 16233, 16234, 16235, 16236, 16237, 16238, 16239, 16241, 16290, 16203, 16215, 16216, 16410" ) > 0 is always returning true and it should not.
Is there a problem with the function or perhaps it is something I have missed?
Thank you and,
Cheers, JK
|
|
|
|
|
Joined: Jun 1999
Posts: 4,506
Adagio God
|
|
Adagio God
Joined: Jun 1999
Posts: 4,506 |
I believe that the correct syntax would be:
MATCHCOUNT(Trim({Trx Acct}), "16231", "16232", "16233", "16234", "16235...)
If any one of these 5 digit numbers exist as a {Trx Acct} in any record then the result is true (> 0). I'm not sure if the order of processing is the entire table or individual records.
Which table are you using with the field Trx Acct?
|
|
|
|
|
Joined: Mar 1999
Posts: 10,504
Adagio Master
|
|
Adagio Master
Joined: Mar 1999
Posts: 10,504 |
I've never seen that function used before. What are you trying to accomplish?
Andrew Bates
|
|
|
|
|
Joined: Feb 2010
Posts: 164
Adagio Maven
|
|
Adagio Maven
Joined: Feb 2010
Posts: 164 |
Thank you for your reply,
We are trying to view a subset of accounts....
Cheers, JK
|
|
|
|
|
Joined: Mar 1999
Posts: 10,504
Adagio Master
|
|
Adagio Master
Joined: Mar 1999
Posts: 10,504 |
If the accounts have something common in the description (say "BUSTER"), then a formula like this:
FIND("BUSTER",UPPER(TRIM({Description})),1) <> 0
would work better. Alternatively, you could load one of the optional fields in Ledger and test it for a specific value. We'll be training explicitly on how to do this at the Adagio Opportunity Conference pre-conference GridView training. Why isn't someone from Island Tug registered for the event?
Andrew Bates
|
|
|
|
|
Joined: Feb 2002
Posts: 839
Adagio Virtuoso
|
|
Adagio Virtuoso
Joined: Feb 2002
Posts: 839 |
Although the Help implies that this should work the fact is that MATCHALL, MATCHANY and MATCHCOUNT are "fuzzy" match functions. MATCHALL does say "This is an fuzzy match function, where a result may be returned if the match is close but not exact." Try
FINDANY(trim({TrxAcct}), "16231", "16232", "16233", "16234", "16235...)
Last edited by Andrew Bates; 03/22/12 08:13 PM. Reason: Typo in func name
|
|
|
|
1 members (AudreyQuick),
1,170
guests, and
3
robots. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Forums5
Topics14,680
Posts71,644
Members1,874
| |
Most Online1,408 Dec 9th, 2025
|
|
|
S |
M |
T |
W |
T |
F |
S |
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
|
29
|
30
|
|
|
|
|
|
|
|
|