Topic Options
#18924 - 09/30/09 11:28 AM Gridview formula
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Can 2 OR commands be used in a filter? I'm trying to do this but it's not working. Can anyone help?

AND(
OR(
{Terms} = " CODCC",
{Terms} = " NETCC",
)
OR(
{Item #} = "SAEX3150TDL",
{Item #} = "SAEX4100",
{Item #} = "SAEX4120",
{Item #} = "SAEX5900RB",
{Item #} = "SAEX6131R",
{Item #} = "SAEX9200TDL",
{Item #} = "SAEX9241R",
{Item #} = "SAEX9242R",
{Item #} = "SAEX64362",
{Item #} = "SAEX643621",
{Item #} = "SAEX64364",
{Item #} = "SAEX643641"
))
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#18926 - 09/30/09 11:38 AM Re: Gridview formula [Re: SusanTennier]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11321
Loc: Vancouver, BC Canada
Hi Susan,

It should be allowed. Whether it is working as expected is another thing.

I assume that you want to select any of the items from the list where the invoice has either of the two terms. Is that correct?

You need a comma between the 2 OR portions, to make the AND part correct. You also need to remove the comma after the second terms code. If you want to indent the OR parts to improve readability, that may be interesting.
Code:
AND(
  OR(
  {Terms} = " CODCC",
  {Terms} = " NETCC"
  )
,
  OR(
  {Item #} = "SAEX3150TDL",
  {Item #} = "SAEX4100",
  {Item #} = "SAEX4120",
  {Item #} = "SAEX5900RB",
  {Item #} = "SAEX6131R",
  {Item #} = "SAEX9200TDL",
  {Item #} = "SAEX9241R",
  {Item #} = "SAEX9242R",
  {Item #} = "SAEX64362",
  {Item #} = "SAEX643621",
  {Item #} = "SAEX64364",
  {Item #} = "SAEX643641"
  )
)

If the list of Terms codes and/or Item codes could be different than the lists above, you would be better off creating two new views (one for the terms code list and the other for the item code master list) and link them both to your view. Then Join the links together, meaning you can multi-select from the Terms and Items lists and select the combinations just like your filter formula.
_________________________
Regards,
Softrak Tech Support

Top
#18927 - 09/30/09 11:42 AM Re: Gridview formula [Re: Softrak Support]
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Thanks for the speedy reply. It works great!
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 74 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1847 Members
5 Forums
14239 Topics
69736 Posts

Max Online: 359 @ 11/18/19 09:08 PM
May
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 31