Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 216 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Fiscal Week Formula

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.
0 -
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.
0