Skip to Content
author's profile photo Former Member
Former Member

Predefined filter...

Hi All,

I am trying to create a predefined filter in the webi report.

I have a column called CFI Flag wihch consists of values Uand N.

Now user dont want to give U or N as input, they want to give it as only CFI part or All Parts i.e U or U and N respectively.

I have created a usecase for this as

CASE WHEN CFI_FLG='U' THEN 'INCLUDE ONLY CFI PARTS'

WHEN CFI_FLG='N' and CFI_FLG ='U' THEN

'INCLUDE ALL PARTS' END

However, when i select include "only CFI parts" it is working fine, but wheb i select "Include all parts" then i am getting only values of 'N'

Please help me.

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Nov 21, 2012 at 05:34 PM

    Perhaps you need to use "OR" instead of "AND".

    CASE WHEN CFI_FLG='U' THEN 'INCLUDE ONLY CFI PARTS'

    WHEN CFI_FLG='N' or CFI_FLG ='U' THEN

    'INCLUDE ALL PARTS' END

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 22, 2012 at 10:34 AM

    Hello,

    Try replacing AND by OR in your CASE statment.

    Thanks,

    Vinay

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.