Expand my Community achievements bar.

SOLVED

Is It Possible / How to use the 'OR' text operator in filters.

Avatar

Level 3

Hello,

 

I am attempting to key on multiple values in one filter and wanted to know if you can use the 'OR' function in the text operator. See below screenshot for reference. Am I doing something wrong?

 

Eric_D_Miller_0-1733843986056.png

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

How you have that written it won't work, no.

 

I usually make an array of those values, then do a "Not In (array)" comparison.

View solution in original post

10 Replies

Avatar

Level 3

More details here:

Eric_D_Miller_0-1733867086864.png

 

In this screenshot you can see that my it passed the filter despite not matching the operator.

Avatar

Correct answer by
Community Advisor

How you have that written it won't work, no.

 

I usually make an array of those values, then do a "Not In (array)" comparison.

Avatar

Level 3

Hi Chris,

 

Thank you for the reply.

What is the best way to go about making an array of the values? Could you show me via screenshot the module(s) you use?

 

Thank you in advance.

Avatar

Community Advisor

Sure. When you pick your "Does not contain", make sure you go to the array section of the filtering options.

ChrisStephens_0-1733927413064.png

 

Avatar

Level 3

Chris,

 

When adding in the Text Operators, (where you have 'value1') can I include each value in the "Array: Does Not Contain"?

 

Are there any modules I need to run before the filter to ensure I have the right data coming in? Right now, I am just reading the records I need to filter on before the filter.

 

I appreciate the help, I am still learning quite a but about Fusion!

Avatar

Community Advisor

No worries!

 

Just replace each entry where I have "valueX" with 1 of your values you are checking for, and the only module you need to run before your filter is wherever the data you're filtering against is coming from. You can keep adding however many entries you need, just separate each entry with a semicolon.

Avatar

Level 3

I have this built so with the values I need to filter for.

Eric_D_Miller_0-1733933228008.png

 

What do I add into the Array Operators? Is it as simple as 'value1 ; value2 ; value3; etc.' ?

 

Thanks again.

Avatar

Level 3

You rock Chris! That got it working.

Thanks for the help and for being so kind! 

Avatar

Community Advisor

All good, glad you got it working. Have a good one!