Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 34 Oracle Analytics and AI Sharing Center
- 22 Oracle Analytics and AI Lounge
- 272 Oracle Analytics and AI News
- 47 Oracle Analytics and AI Videos
- 16.1K Oracle Analytics and AI Forums
- 6.3K Oracle Analytics and AI Idea Labs
- Oracle Analytics and AI User Groups
- 99 Oracle Analytics and AI Trainings
- 16 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
In FDI how to execute detail calculations before aggregation of data
In FDI how to execute detail level calculations before aggregation of data. Using a custom subject area I am trying to execute detail level calculations on data before the data can be summed up.
We have detailed shipment records - one line per item shipped - with a status of either 'shipped' or 'returned' and positive values for item price, shipping charges, and tax. Depending on the status and invoice date or return date we want these values to be either treated as positive ('shipped') or negative ('returned') values.
Currently, FDI is accumulating the values before executing the the calculations and is summing up all numbers first, then determining whether the values are negative or positive. Which is not correct.
We need the values to be net - sales less returns. The detail values need to be set to positive or negative before they are aggregated.
Is there a way in FDI to do the above? Or would we better off doing the detailed calculations in a dataset and then using the dataset to produce the FDI workbook?
Any help appreciated.
Paul
Best Answer
-
Hi @Paul Therrien,
As per my understanding, FDI semantic layer is designed for aggregation or dimensional analysis, not for row-by-row accounting logic. Looking at above requirement, I would do row-level sign logic in the Dataset SQL, then FDI only aggregates the already-correct numbers.
Thanks
0
Answers
-
Thanks for replying to my post. That is my understanding as well. I was hoping my understanding was limited and that there was some way to do this within a workbook.
1 -
@Paul Therrien , I agree there might be some hack, but it is going to be very complex or something which might not work seamlessly.
0 -
As per community guidelines, appreciate if we can mark the thread as "Accepted Answer" so that we can make it easier for community members to find replies that might help them in a similar situation. Replies that are accepted in this way are copied to the top of the thread, allowing other community viewers of that same question to find the "best" answer quickly.
0 -
Thanks for that gentle nudge… I have accepted your first response as an answer.
1
