Topic Options
#31384 - 03/22/12 12:04 PM Gridview - MATCHCOUNT
JohnK Offline
Adagio Maven

Registered: 02/12/10
Posts: 164
Loc: Vancouver, BC
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

Top
#31386 - 03/22/12 12:31 PM Re: Gridview - MATCHCOUNT [Re: JohnK]
Douglas Dickie Offline
Adagio God

Registered: 06/02/99
Posts: 4414
Loc: Vancouver, BC
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?
_________________________
Douglas Dickie
AccSys Solutions Inc
Phone: 1.888.534.4344
ddickie@accsyssolutions.com

Top
#31388 - 03/22/12 12:52 PM Re: Gridview - MATCHCOUNT [Re: JohnK]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
I've never seen that function used before. What are you trying to accomplish?
_________________________
Andrew Bates

Top
#31390 - 03/22/12 01:11 PM Re: Gridview - MATCHCOUNT [Re: Retired_Guy]
JohnK Offline
Adagio Maven

Registered: 02/12/10
Posts: 164
Loc: Vancouver, BC
Thank you for your reply,

We are trying to view a subset of accounts....

Cheers, JK

Top
#31392 - 03/22/12 02:21 PM Re: Gridview - MATCHCOUNT [Re: JohnK]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
If the accounts have something common in the description (say "BUSTER"), then a formula like this:
Code:
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

Top
#31395 - 03/22/12 03:06 PM Re: Gridview - MATCHCOUNT [Re: Retired_Guy]
Michael Mulrooney Offline
Adagio Virtuoso

Registered: 02/07/02
Posts: 839
Loc: Vancouver, BC
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
Code:
FINDANY(trim({TrxAcct}), "16231", "16232", "16233", "16234", "16235...)





Edited by Andrew Bates (03/22/12 03:13 PM)
Edit Reason: Typo in func name

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 79 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14467 Topics
70662 Posts

Max Online: 432 @ 01/20/25 10:17 PM
April
Su M Tu W Th F Sa
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