Oracle Analytics Cloud and Server

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

Fiscal Week Formula

Received Response
2
Views
2
Comments
3481331
3481331 Rank 1 - Community Starter

Hi All,

I am very new to OBIEE 12c

I have a fiscal date metric that displays like 2017WEEK01 for the first fiscal week of February.

Is there a way to us SQL to dynamically know which fiscal week to use based on the date that the report is being run?  I don't want to have to use a prompt each time for someone to have to select fiscal week.

Thanks!

Answers

  • Hi,

    You generally set a variable (repository variable refreshing every few hours or even just once per day, depending on the different timezones you must cover).

    The query sourcing the variable will use your own time dimension to get the value of the fiscal week column based on the current date.

    Or just using the same logic to filter your week based on the result of a dimensional only analysis filtering current date and return fiscal week.

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    If you have this modeled into your time dimension (since "Fiscal Week" is no absolute concept like the month of "January") then it simply becomes an attribute on the one hand and also an alternative roll-up hierarchy type within your time dimension and you can drill total -> Fiscal Year -> Fiscal Quarter -> Fiscal Week -> Day for example.

    MUCH better approach than any SSQL statement because it's data and not code.