We recently migrated from OBIEE to OAS using the same RPD, but we noticed a difference — which does not occur every time we run the reports — in the Grand Total values of Pivot Tables when using measures defined as COUNT DISTINCT. The row-level results are identical between OBIEE and OAS, but the Grand Total differs.
By reviewing the Physical SQL Queries, OBIEE generates multiple subqueries with ROW_NUMBER, while OAS uses GROUPING SETS and GROUPING_ID. Could this change in SQL generation be the reason for different Grand Total results?
Is it best to align OAS behavior (in Physical SQL Query Production) with OBIEE, or to use a different aggregation rule at the front end (report) by applying SUM — mimicking Excel Pivot Table behavior, which sums all row-level results — instead of the default?