Categories
- All Categories
- 75 Oracle Analytics News
- 7 Oracle Analytics Videos
- 14K Oracle Analytics Forums
- 5.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 40 Oracle Analytics Trainings
- 59 Oracle Analytics Data Visualizations
- 2 Oracle Analytics Data Visualizations Challenge
- 3 Oracle Analytics Career
- 4 Oracle Analytics Industry
- Find Partners
- For Partners
YTD Calculation on OBIEE 12c
I have a logical column in my rpd that should holds the YTD value. When i display this column in my report, it shows the value from the previous years to date, while I only require only the value from the beginning of the year specified. E.g. I have data from 2015 to date, and i want YTD. The value provided is a consolidation of 2015 Jan and Feb, 2016 Jan and Feb, 2017 Jan and Feb and 2015 Jan and Feb. The expression on my logical column is ToDate(measure,level)
Product version: OBIEE 12.2.1.1.0
Answers
-
Please try with below.
TIMESTAMPADD(SQL_TSI_DAY, -1*(DAYOFYEAR(CURRENT_DATE )-1) , CURRENT_DATE )
0 -
@3146354 that's not a year-to-date ("YTD") calculation...that's a TIMESTAMPADD
0 -
We will probably never see @3236706 again ...
But it sounds like a badly configured time hierarchy with issues in the keys and that's why the YTD functions can't make a difference between months of different years.
0