Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

OBIEE Filter with "contains all / like" and multiple values in presentation variable

Question
2
Views
0
Comments
Rank 1 - Community Starter

Hello,

I´m looking for a solution to create a filter with "contains all" from a presentation variable. But I need not a compare with a list, I need the like-operator.

Example:

column "foo" to filter: "A,B,C,D" (all values in one column as string)

selected values from dashboard prompt: "B" and "C"

When I use this in filter:

"foo" LIKE @{prompted}['%@%']{'%B%'}

Answers run fine, as long as only one filtervalue is selected. With multiple values answers construct the following wrong sql:

... AND ("foo" LIKE '%B%','%C%') => wrong

instead of

... AND "foo" LIKE '%B%' OR "foo" LIKE '%C%' => OK

another test:

"foo" @{prompted}[LIKE '%@%']{LIKE '%B%'} => ... AND ("foo" LIKE '%B%',LIKE '%C%') => wrong

How can I get the correct filterstatement with answers and a presentation variable?

Have anyone a idea for a solution?

Thank You!

Welcome!

It looks like you're new here. Sign in or register to get started.