Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 43 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 283 Oracle Analytics and AI News
- 59 Oracle Analytics and AI Videos
- 16.3K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 108 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Week begin date in a OTBI pivot table report
I built a pivot report in Project Financial Management that reports approved labor hours by resource and task by week. While there is a function to report the hours by week, it allows you to report by week. It reports the week number starting from Jan 1 - it reports weeks 1..52. This does not help users as they have to decode when each week begins. I have not found a functionality that can help decode the week begin date for each week.
This is the function I use for the calendar week:
WEEK_OF_YEAR("Expenditure Item and Cost Distribution Details"."Expenditure Item Date")
Is there a way to get the week begin date for the week in question?
I have attached the report generated by the OTBI report. For privacy reasons, the project number, name, resource name and task names have been changed.
Comments
-
Found this by a Google search and tested it. It works:
TIMESTAMPADD(SQL_TSI_DAY,- DAYOFWEEK(MIN("Expenditure Item and Cost Distribution Details"."Expenditure Item Date")) + 1, MIN("Expenditure Item and Cost Distribution Details"."Expenditure Item Date"))0