Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Row-Level Aggregate not Functioning As Expected

Question
1
Views
0
Comments
ca$hmon3y
ca$hmon3y Rank 3 - Community Apprentice

The row-level aggregate function is not working as expected.

I have the table below with rows A, B, and C. There are three values 1, 2, and 3. The percentage is calculated as Val 2 + Val 3 / Val 1 (ex. 348+200/620 = 88.39). I am then using the row-level aggregate to determine the total for all of the categories (shown in bold). This function is working as expected when aggregating Val 1, Val 2, and Val 3. However, it is not calculating the percentage correctly. Rather than calculating the percentage as (1152 + 206 / 2260 = 60.09), it is calculating the percentage by taking an average of the percentages for the lines within the total (88.39+48.56+50.27/3 = 62.41)

I have tried using all of the different aggregation settings and cannot determine a solution. Would anyone know of a workaround for the row-level aggregation function so that it can work as I intended?

CategoryVal 1Val 2Val 3Percentage
A62034820088.39
B904437348.56
C736367350.27
Category Total2260115220660.09//62.41