One of my friend asked me to find custom grand total in OBIEE let us take below example
From Subject Area 1
From Subject Area 1
Customer Unit Shipped Unit Ordered Percentage=(US/UO)*100
Goal sports cafe 17154 18137 94.58
From Subject Area 2
Customer Unit Shipped Unit Ordered Percentage
Church street 43875 44633 98.30
Now when i combined and taken grand total, the result i'm getting is
|
| ||||||||||||||
|
|
|
| ||||||||||||
2nd & Goal Sports Cafe | 17154.00 | 18137.00 | 94.58 | ||||||||||||
93 Church Street | 43875.00 | 44633.00 | 98.30 | ||||||||||||
Grand Total | 61029.00 | 62770.00 | 94.58 |
But in place of 94.58, i want to get (61029/62770)*100= 97.2
We can do this using combine with similar request
Criteria 1 :
just add dummy column to the same criteria and edit the column formula as '1' will see the significance later
Criteria 2 :
don't enable the grand total create another criteria
Criteria 3 : Under the dimension columns just hard code the value as 'Grand Total' ( if you have other dimension let say Customer Flag edit the column formula and use '' ( two single quotes) keep the measures as it is
to get Amount Sold / Quantity Sold add dummy column and use below formula
aggregate("SALES"."AMOUNT_SOLD" by ) / aggregate("SALES"."QUANTITY_SOLD" by)
Criteria 3 : looks as shown below
If you want you can have conditional formatting and enable sorting on third column (right click Sort ascending)
Report output shows as below where Grand total of 3rd column is Amount_sold/ Quantity_sold