Summary:
We are trying to create a custom analysis to calculate the month wise percentage of delivered amount being early received including tolerances. We have calculated delivered amount and early received amount as a new calculate measure in the analysis but when we are trying to calculate the percentage of Delivered amount being early received using these two calculated measures, it is throwing an error. Could anyone help us with this issue?
Content (required):
Below are the formulae we used to achieve the same:
Subject Area: Receiving-Purchase Receipts Real Time
Delivered Amount: SUM("- Purchase Receipt Line Details"."Delivered Quantity"*"Purchase Order Lines Details"."Price")
Early Receipt Amount: CASE WHEN CAST("- Purchase Receipt Line Details"."Creation Date Line" AS DATE) < CAST("Purchase Order Schedule Detail"."Need By Date" AS DATE)-"Additional Schedule Information"."Early Receipt Tolerance Days" THEN ("- Purchase Receipt Line Details"."Delivered Quantity"*"Purchase Order Lines Details"."Price") ELSE SUM("- Purchase Receipt Line Details"."Delivered Quantity"*"Purchase Order Lines Details"."Price")-SUM("- Purchase Receipt Line Details"."Delivered Quantity"*"Purchase Order Lines Details"."Price") END
(Aggregation Rule: Sum, Else Condition in Early receipt amount is given to get '0' as value for the orders that does not have early receipt)
Version (include the version you are using, if applicable):
Oracle Fusion Cloud Applications 22D (11.13.22.10.0)
Code Snippet (add any code snippets that support your topic, if applicable):