Categories
- All Categories
- Oracle Analytics Learning Hub
- 30 Oracle Analytics Sharing Center
- 20 Oracle Analytics Lounge
- 247 Oracle Analytics News
- 45 Oracle Analytics Videos
- 16.1K Oracle Analytics Forums
- 6.3K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 91 Oracle Analytics Trainings
- 16 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