Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 215 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
Set date differentiation in BI: 7 days ago

Hello,
I am using Oracle BI.
I would like to create a report to be based on the recent 7 days.
What is the formula / code to be used in BI?
Regards,
Uriel
Answers
-
Hi,
CURRENT_DATE is today, so TIMESTAMPADD(SQL_TSI_DAY, -7, CURRENT_DATE) is 7 days ago.
If you add a filter on your data using that formula you get data of the last 7 days (your date >= 7 days ago).
If you want 8 or 6 days just change the number in the formula, if you want 1 month you must change the first parameter and use SQL_TSI_MONTH.
Look the documentations provided in OBIEE itself when you choose the formula TIMESTAMPADD for more details on how it works and the possible values of the first parameter.
0 -
Many thanks for your prompt reply.
0