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

Nested Filter

Hi Everyone,

I am stuck with a nested filter, below is what i want to do:

and (

( ( b.auto_renewed_counter > 0) and (B.OPEN_EFFECTIVE_DATE between '02-aug-2015' and '25-aug-2015'))

or

(

TO_DATE(CASE

WHEN A.ACCT_OPN_DATE <= TO_DATE('01-AUG-2015', 'DD-MON-YYYY') THEN

A.ACCT_OPN_DATE

ELSE

B.OPEN_EFFECTIVE_DATE

END) between '02-aug-2015' and '25-aug-2015'

))

is there any way to implement this on BI.

Thanks in advance.

Best Regards,

Mithun

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 26, 2015 at 09:29 AM

    Hi,

    If you want to implement on Webi level then use IF ELSE condition to do this.

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      If then else is the best way to achieve your requirement just i will give outline to do for your requirement,

      (

      ( ( b.auto_renewed_counter > 0) and (B.OPEN_EFFECTIVE_DATE between '02-aug-2015' and '25-aug-2015'))

      or

      (

      TO_DATE(CASE

      WHEN A.ACCT_OPN_DATE <= TO_DATE('01-AUG-2015', 'DD-MON-YYYY') THEN

      A.ACCT_OPN_DATE

      ELSE

      B.OPEN_EFFECTIVE_DATE

      END) between '02-aug-2015' and '25-aug-2015'

      ))

      try like this,

      create

      variable1 as if(A.ACCT_OPN_DATE <= TO_DATE('01-AUG-2015', 'DD-MON-YYYY') then A.ACCT_OPN_DATE else B.OPEN_EFFECTIVE_DATE

      variable2 as if(( b.auto_renewed_counter > 0 and B.OPEN_EFFECTIVE_DATE ) or variable1) then

      Regards,

      Ragoth.C

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.