Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 53 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 293 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.4K Oracle Analytics and AI Forums
- 6.5K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 116 Oracle Analytics and AI Trainings
- 21 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
How do I calculate the pYTD (previous year to date) value?
Adam_K
Rank 3 - Community Apprentice
Hi,
I'm using Oracle Business Intelligence 12.2.1.0.0 and I'm struggling to calculate the pYTD.
I've managed to get the YTD value using ToDate("Measures"."Revenue", "Time Dimension"."Year"). I tried pairing this with AGO("Measures"."YTD", "Time Dimension"."Year", 1) to get the pYTD. However, it's giving me the previous full year value rather than the value up to this time last year.
Thanks in advance,
Adam
0
Answers
-
To sort this I ended up creating a repository variable which selects the current month number (EXTRACT(MONTH FROM CURRENT_DATE)). Then I set a filter on the Analysis to only calculate the revenue when the month number is less than the variable I created.
0