Oracle Analytics Cloud and Server

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

Percentage Grand total is incorrect in OBIEE

Received Response
232
Views
5
Comments
3244640
3244640 Rank 2 - Community Beginner

Hi All,

Percentage Grand total is incorrect in OBIEE Analysis Report.

Version : OBIEE 11.1.1.141014

I am getting Percentage Grand Total as 100.52 %. Actually it should be 100 %

Formula applied in that column is CAST((COUNT("WRH Violations"."STAFF_CODE")/SUM(COUNT("WRH Violations"."STAFF_CODE")))*100 AS DOUBLE).

Disable the "Report based column" option and enabled the "server complex aggregate" option. But still unable to fix this issue.

Kind Regards,

Mohan

     

2016 Quarter 1MAERSK ENFIELD0.00779.94%
ZIM INDIA0.00567.23%
MAERSK EUBANK0.00506.45%
PACIFIC ZIRCON0.00486.19%
HYUNDAI NEW YORK0.00465.94%
MOZAMBIQUE0.00435.55%
NOBLEWAY0.00395.03%
DAVIS SEA0.00334.26%
LAKE KIVU0.00314.00%
SULU SEA0.00273.48%
LIGURIAN SEA0.00263.35%
THURINGIA0.00212.71%
KORO SEA0.00192.45%
OSAKA TOWER0.00172.19%
BLACKPOOL TOWER0.00162.06%
MARMARA SEA0.00162.06%
BANDA SEA0.00151.94%
YELLOW RAY0.00151.94%
PACIFIC DIAMOND0.00131.68%
GOLDEN RAY0.00121.55%
HANJIN NEW JERSEY0.00111.42%
ANDAMAN SEA0.0091.16%
MARITIME JEWEL0.0091.16%
CATALAN SEA0.0081.03%
KARA SEA0.0081.03%
CEYLON0.0070.90%
ROSS SEA0.0070.90%
CAPE ALBATROSS0.0060.77%
BELLA0.0050.65%
CELTIC SEA0.0050.65%
CORAL SEA0.0050.65%
CUMBRIA0.0050.65%
JAKARTA TOWER0.0050.65%
KENT0.0050.65%
TRIUMPH0.0050.65%
ARAL SEA0.0040.52%
NECTAR SEA0.0040.52%
PACIFIC ONYX0.0040.52%
PUSAN0.0040.52%
BAVARIA0.0030.39%
BLUE SKY I0.0030.39%
CAP ARNAUTI0.0030.39%
CSAV RIO AYSEN0.0030.39%
HANDAN STEEL0.0030.39%
HYUNDAI LOYALTY0.0030.39%
SERENE SEA0.0030.39%
BOTSWANA0.0020.26%
CAMBRIDGE0.0020.26%
GREEN RAY0.0020.26%
MAERSK EFFINGHAM0.0020.26%
PACIFIC BERYL0.0020.26%
EBONY RAY0.0010.13%
FAIRWAY0.0010.13%
GUOFENG FIRST0.0010.13%
HYUNDAI MERCURY0.0010.13%
LAIWU STEEL HARMONIOUS0.0010.13%
OSAKA CAR0.0010.13%
PACIFIC QUARTZ0.0010.13%
SAVANNAH0.0010.13%
Grand Total775100.52% 

Answers

  • cesar.advincula.o
    cesar.advincula.o Rank 6 - Analytics Lead

    Umm, could yout try this please,

    CAST((COUNT("WRH Violations"."STAFF_CODE")/SUM( COUNT("WRH Violations"."STAFF_CODE"))   BY "YOUR QUARTER COLUMN")  *100 AS DOUBLE).

    and check the aggregation rule by SUM in your table,


    aggRule.png


    Kind Regards,

  • 3244640
    3244640 Rank 2 - Community Beginner

    Hi Cesar,

    Tried and still grand total is not correct.

    Thank you,

    Mohan

  • cesar.advincula.o
    cesar.advincula.o Rank 6 - Analytics Lead

    sorry why do you CAST( AS DOUBLE) could you try the same formula without DOUBLE.?

    (COUNT("WRH Violations"."STAFF_CODE")/SUM( COUNT("WRH Violations"."STAFF_CODE"))   BY "YOUR QUARTER COLUMN")  *100



  • 3244640
    3244640 Rank 2 - Community Beginner

    Hi Cesar,

    Since there is some null values presented,the percentage column grand total was in correct. Now its shows correctly.

    Thank you for your help.

    Kind Regards,

    Mohan

  • cesar.advincula.o
    cesar.advincula.o Rank 6 - Analytics Lead

    OK, your welcome, Mohan.

    Kind Regards,

    César