Quantcast
Channel: OBIEE, Endeca and ODI
Viewing all articles
Browse latest Browse all 49

Custom Grand Total using Combine with Similar request : OBIEE

$
0
0
One of my friend asked me to find custom grand total in OBIEE let us take below example


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

Units Ordered
Units Shipped / Units Ordered * 100
Customer
Units Shipped
Units Ordered
Units Shipped / Units Ordered * 100
2nd & Goal Sports Cafe17154.0018137.00     94.58
93 Church Street43875.0044633.00      98.30
Grand Total61029.0062770.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








Viewing all articles
Browse latest Browse all 49

Latest Images

Trending Articles



Latest Images