Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 211 Oracle Analytics News
- 42 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Incorrect Grand Total on derived fields

Hi All,
We are having issue with the Grand Total of a derived field. below are the details.
We are required to derive average daily number of orders based on the logic: Sum(Fact.number of order)/ (Time.number of days for the selected period)
Scenario 1
We have daily snapshots of data. When we display Grand Total, it displays on 83464 and does not divide by the total of no days.
Scenario 2: Monthly. The orders for each month are displayed right (total orders/no of days for that month) but the Grand total displays just Sum.
We are looking for a fix to be implemented at RPD level as this will be exposed for self-service and the users cannot change the Aggregation to server complex at report level.
Version: OBIEE 11.1.1.9
Thanks..
Answers
-
You don't say; -
is your average computed; -
a. in answers
b. in rpd as a physical calc
c. in rpd as a logical calc
If b / c you also don't say what level of the time hierarchy (if any) the calculation is set to i.e. detail / month / not set?
Also, if b /c what is your calculation set to in terms of aggregation and what exact formula do you have now in the rpd?
Finally, if you have year in answers instead of year/month do you get the correct number?
0 -
X-D
0 -
Hi Robert,
Thanks for your response. Please find some details:
The average is calculated in the logical column. We have 3 LTS, set at Date, Month and Year level.
Avg=SUM("Number of Orders"*1.0)/"No of Days"
No of Days is mapped to a opaque view (select count(distinct day_dt) AS NO_OF_DAYS,M_END_CAL_DT_WID,M_STRT_CAL_DT_WID from W_DAY_D
group by M_END_CAL_DT_WID,M_STRT_CAL_DT_WID)
We had to implement the above, as the requirement is "No of Days" should be all the days of the month irrespective of data availability. The same did not work with a outer join on Time and Fact Tables.
The Grand Total doesn't display correctly just for Year as well.
Please suggest if this could be done in a better way. Thank you.
0 -
okay; -
Create a physical measure called Monthly Order Average. Use logic as below to assign values based on their number of days. Set its aggregation to SUM.
pseudo logic
number of orders / case when order month has 30 days then divisor = 1/30
case when order month has 31 days then divisor = 1/31
case when order month has 28 days and not leap year = 1/28
else 1/29 end
Make sure its detail is at day level in your time hierarchy.
0 -
The precise approach and its pre-agg / post-agg implications and distinctions may get lost in translation there...
0 -
Sure, I can only hope to point to the moon, he has to raise his sight to see it....
0