Oracle Analytics Cloud and Server

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

OBIEE Dashboard prompts

Received Response
41
Views
3
Comments
Rank 1 - Community Starter

Hi

I have a requirement in the calendar prompt default selection. The start date should be from 01-Nov-(year should change after every year i.e., the current year it should show as 01-Nov-2018 and next year after November it should change as 01-Nov-2019) and the second default selection should be the current date. Anyone has suggestions to this ?

Regards

Vyshak P

Welcome!

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

Answers

  • Rank 8 - Analytics Strategist

    Hi,

    the optimal way to do this is by having a fiscal year (I assume that is what it is) hierarchy set up for your date dimension(s) and a repository variable, current_fiscal_year that you update using timed sql along with the rest of the repository variables.

    You might want to see posts like this for the sub-optimal way of doing it; -

    Fiscal Year Function

    And you can use case logic to impose an alternative sort order on your months along the lines of; -

    https://stackoverflow.com/questions/46425297/fiscal-month-from-date-in-obiee/46428022#46428022

  • Rank 6 - Analytics Lead

    Hello Vyshak,

    You can create 2 Repository variables and assign them as default selection for the prompts.

    I think that should work.

  • Rank 5 - Community Champion

    Hi,

    Ideally November 1st is the 305th day of the year (306th in leap years) in the Gregorian calendar. So, in the RPD, create a variable 01_NOVEMBER and have the below query.

    SELECT CASE WHEN TO_CHAR(LAST_DAY(TO_DATE( '01-FEB-'|| EXTRACT(YEAR FROM SYSDATE), 'DD-MON-YYYY')), 'DD') = 28

    THEN TRUNC(SYSDATE,'YEAR') + 304

    WHEN TO_CHAR(LAST_DAY(TO_DATE( '01-FEB-'|| EXTRACT(YEAR FROM SYSDATE), 'DD-MON-YYYY')), 'DD') = 29

    THEN  TRUNC(SYSDATE,'YEAR') + 305

    END AS "01_NOVEMBER" FROM DUAL;

    For the second variable can be a SYSDATE.

    Hope this helps.

    Thanks,

    Yaswanth

Welcome!

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