Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 44 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 278 Oracle Analytics and AI News
- 56 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 103 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
Set date differentiation in BI: 7 days ago
3162914
Rank 1 - Community Starter
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
0
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
