Grand total on a Percentage calculation

Guys,
I have report where i am calculating % active and % inactive aircrafts for two different types. The data is as below
Columns : CustomerType Active Active % Inactive Inactive% Total
Data : COMMERCIAL 277 38.96 434 61.04 711
CORPORATE 4593 48.42 4892 51.58 9485
SUM : 4870 87.38 5326 112.62 10196
The Active% and Inactive% are calculations as below
Active % = ( Active/Total )*100 (i.e (277/711) * 100 = 38.96 and (4593/9485)*100 = 48.42 )
Inactive % = ( Inactive/Total )*100 (i.e (434/711)*100 = 61.04 and (4892/9485)*100 = 51.58 )
The sum is caculated by the Totals functinality in discoverer , the sum for Active 5 and Inactive % is being calculated incorrectly.
Is it possible to make discoverer to calculate the sum for Active % as ( 4870/10196 ) * 100 and for Inactive % as ( 5326/10196) * 100 ??
Please help.
thanks

Hi,
That is how the Discoverer totalling should work. Ensure that you are using SUM rather than CELL SUM. Also try including an aggregate function in your calculations, i.e. so that your active calculation is SUM(active) and your total is SUM(total) so that your Active % is (SUM(active)/SUM(total))*100
Rod West

Similar Messages

  • SAP query in Grand Totalling in SQ01 wrongly calculation

    Dear All,
    I have created a  SAP query for getting few ledger accounts data in the clients specified format.
    But I am having a problem, that debit and credit amounts are getting added in the 'Total' field.
    The credit amounts are not getting substracted from the debit amount.
    For eg :
    CoCd     G/L          Year     DocumentNo      Amount in LC     Crcy     D/C
    1000     4071101020          2007     9600000002     3,300.00          H
    1000     4071101021          2007     9600001413     40,000.00          S
    1000     4071101022          2007     8000000000     2,020,012.80     H     
    Grand Total                                                                2,063,312.80     
    Where as total should be -1,983,312.80, where 'H' is credit and 'S' is debit.
    rgds

    Hiya,
    You may need to:
    1. Either group by the Debit/Credit Indicator (SHKZG), create two subtotals for each and then subtract one from the other, or,
    2. Multiply the Credits by -1 (again use the Debit / Credit Indicator to sort this for you) and then get a total field.
    This is an inbuilt problem with queries (SQ01, SQVI, etc.).
    Cheers.

  • RE Invoice Grand total plus extra percentage

    Hi expert,
    Does anyone know how to put 1% charges on Invoice grand total? I'm using classical Real estate module.
    Appreciated your help.
    Thank you in advance,
    Mahyuddin

    Hi Franz,
    We are rental & utility service provider which begin Feb 2012 the management decide to include  extra 1% charges on grand total (per invoice) as part of government contribution (not as gov service tax) to tenant. Therefore, that extra 1% must hit another G/L account (except current setting in account determination);
    example;
    Invoice 8xxxxx
    1.00OY0201.02         240 M3 x 0.49       117.6 MYR
    2.0AC02341.01         150 M3 x 0.13       19.50 MYR
    Total                                                         137.1 MYR
    1% (Contribution)                                         1.37   MYR
    Grand total                                               138.47 MYR
    1. How to config extra 1% charges?
    2. How to config that particular G/l and it becomes work like other account determination setting
    3. Any suggestion?
    Thank you for your kindness in advance.
    Mahyuddin
    Edited by: Muhd Mahyuddin Zakaria on Jan 22, 2012 2:25 AM

  • Percentage in Totals / Grand Totals

    I have 2 columns on a report (in reports builder) that have numbers - total touched & total count. I am calculating the percentage done with the following formula: ROUND(((PP_TOUCHED / PP_TOTAL) * 100),2). This works fine for the detail lines, but I can't get the correct percentage in the grand totals.
    Also, when I use the above formula and one of the numbers is zero, I get an error.
    Kris

    I have 2 columns on a report (in reports builder)
    that have numbers - total touched & total count. I
    am calculating the percentage done with the following
    formula: ROUND(((PP_TOUCHED / PP_TOTAL) * 100),2).
    This works fine for the detail lines, but I can't
    get the correct percentage in the grand totals.How are you calculating the percentage for grand total? Create a formula column at report level and use summary columns in the formula to calculate percentage.
    Also, when I use the above formula and one of the
    numbers is zero, I get an error.
    It may help:
    ROUND(decode(nvl(PP_TOTAL,0),0,((PP_TOUCHED / PP_TOTAL) * 100)),2)

  • OBIEE 11g Grand total issue

    Hello,
    I have one requirement where I want to show the data as follows
    Type          Metric          Values
    Type1          units          100
              Days          50
              % Calc     10%
    Type2           units          100
              Days          50
              % Calc     10%
    Type3          units          100
              Days          50
              % Calc          10%
    Total units     300
    Total Days     150
    Total % Calc 30%
    If I take grand total of row in pivot table, I am not able to show Total units, Total Days and Total % Calc values in Grand Total because by default, same grand total name appears.
    I want to give different grand total names and percentage sign should appear in grand total.
    Please let me know if u need any more information.
    Thanks.

    Try to recreate the report. Just in case make sure that you dont have null values in that metric or try with ifnull(col,0)
    Check this bug too BUG:9871470
    Keep update

  • OBIEE11g Grand total not summing up correctly

    hi all,
    I have to display the grand total from the foll calculation : (total po numbers - total Recd on time PO numbers) / total PO numbers.
    To get the total PO numbers - in the Edit formula - COUNT(PO numbers) and aggregation rule is set to SUM - this gives total correctly. eg : count of Total PO numbers - 15
    To get the total Recd on time PO numbers-- In the edit formula fields - COUNT(Recd on time PO numbers) and aggregation rule is set to SUM . This also shows hte total correctly. Eg : Count of total Recd on time PO numbers 12
    Now I do the division (Recd on time PO numbers/ total PO numbers ) Again in the Edit formula field SUM( COUNT(PO numbers))/ SUM(COUNT(Recd on time PO numbers)) - This gives incorrect results. output is 12.
    12/15 should be .8 but it shows 12.
    I am not sure why its not doing the calculation correctly.
    Is there any way I can achieve this ?
    Thanks
    OBI_user

    * 1.00 => http://gerardnico.com/wiki/dat/obiee/int

  • Incorrect Grand total

    Can anyone pls tell how to fix the issue of Incorrect Grand total ?
    Especially for calculated values.If any formula is applied then the grand total should also be executed with the same formulas.
    Pls help

    Thanks Madhan and MMA.
    Madhan
    I've already tried adding <ReportAggregateEnabled>true</ReportAggregateEnabled> and even after restarting the services no use. My server version is 10.1.3.2.1.Is there any alternate solution?
    MMA
    I tried with Server complex aggregate also.But no use.
    Pls suggest if there is any alternate solution.

  • Percentage calculation at Grand Total Level

    Hello,
    I have issue in calculating the percentage at grand total level. I have three measures (A count, B count and Total count). These measures are defined in rpd with aggregation rule as sum. In answers i am calculating A % as 100*A count/Total Count. I have defined the aggregation rule for this percentage column as default. I am able to get correct % results for sub total level but getting wrong percentage values when Grand Total level is added. Going through some posts in this forum, people have suggested to enable this tag in instance config file.
    <ReportAggregateEnabled>true</ReportAggregateEnabled>
    After adding this tag, i am able to get correct results. The issue is when there is no data i am able to see table view with all columns having blank values even though i have defined the no result view.
    Please Help

    HI,
    For your CKF set exception aggregation as summation based on the last most characteristic in the row in the reference(as per the example it is product)
    Regds,
    Shashank

  • Grand total level of the percentage column giving value from the first row of column

    Hi Guys,
    I have a requirement like to show the percentage value which the calculation of two columns , in the grand total level .
    I think it can be achievaable by giving the aggregation rule for that column as Server complex Aggregate .
    eg.
    Fiscal Year  Department  subdepartment   Total cost     Sub Department cost     % cost
    2011           Edu             Books                 500              50                               10
    2011           Edu             Note Book           200            100                                50
    2011           Edu             Furniture             300             30                                 10
    2011            Edu                                      1000           180                              18
    Grand Total
    Ideally it should come like as above ..but the problem with me that ,it showing correct value for  all the rows ,but at the grand total level it's taking the value of % cost from the first row . like below..
    2011           Edu                                   1000                  180                         10
    Grand Total  
    I have calculated the % cost column in the answer itself  as (Sub Department cost /Total Cost )
    where the
    Aggregation rule for the columns given are
    Total Cost - Sum  ,Sub Dep Cost -  Sum, % Cost - Server Complex Aggregate
    So plz suggest me any Idea to achieve this ..Thanks in advance.

    Give the agg. as avg for % field.
    Best of Luck,
    Kashi

  • % of calculation in GRAND TOTAL in PIVOT TABLE

    Hi Gurus,
    I have a requirement to calculate the percentage based on the grand total in pivot table,but in row wise i am getting the percentage while in grand total level i am not getting correct values.I have tried with all the options like:average,Sum,Default,Max,Min,count etc and also with the percent of row,column,parent column etc.
    Please give me a solution for this ASAP.
    view of my table is
    Previous Value||Present Value||change between Pres & Prev||% of change(((pres - prev)/pres)*100)
    10||20||10||50%
    00||01||01||100%
    10||05||-05||-50%
    here i should get values in grand total like
    20||26||06||23%
    but i am getting values when giving sum for %of calc in measures values
    20||26||06||100%
    if i give avg for %of calc in measures values then i am geting
    20||26||06||33%
    how to solve this prob.Can any one give sol plzzzzzzzz
    Thanks,
    Naveen

    Hi,
    Refer : http://www.skurabigroup.com/blog/?p=579
    Regards,
    Srikanth

  • Grand total of calculated column and case function in the same calcultd col

    Hi Gurus,
    In 9.0.4, the Grand total of the calculated column is not working as per the CASE function. It is taking the ELSE formula for all records. Is there a way to correct it.
    Thanks,
    Pooja

    Hi Pooja,
    In the totals ,which u mentioned try using cell sum function instead of sum function.
    Manikandan
    GKB Consulting Inc.,

  • Grand total on a calculated item

    Hi,
    I have a crosstab report in discoverer plus 10g. I need to show total at the bottom for two calculated columns, report looks something like below
         COMPANY     Beginning Bal     Ending Bal     Net Amount
         1457     $35,467.90      $39,875.87      $359
         -     -     -     $453
         -     -     -     $564
         -     -     -     $347
         -     -     -     $234
         1568     $65,893.56      $76,594.87      $674
         -     -     -     $564
         -     -     -     $536
         -     -     -     $538
         -     -     -     $364
         -     -     -     $392
    Grand Total                    
    Net amount is a datapoint, but the beginning balance and ending balance are the calculated items in the report. is it possible to show the total for these calculated items? Please let me know if this is possible.
    Thanks,
    Nivas.

    Hi,
    Thanks for the reply.
    I have tried with cell sum but it is not displaying any total.
    beginning balance is a calculated item which is not based on any aggregated function
    beginning balance =
    CASE WHEN "ROW NUM" = "Max Row Num" THEN "worksheet".Beg Bal ELSE TO_NUMBER('') END
    same is the calculation for ending balance.
    I have account, company, beg bal, end bal, net amount to be displayed in the report.
    when I do cell sum by company every thing is fine, i get the totals displayed, but when i try with account then no totals are displayed in the report.
    please let me know if I am missing some thing.
    Thanks,
    Nivas.

  • Calculating Grand Total based on the section totals

    Hi,
    I have a webi report with a section. Outside the section block I have a grand total block. I have a section on Shop Names. At the total level I calculate calls per hour average. So at the end of each sections the total would look like
    Shop 1
    Shop 1 Calls : 61
    Shop 2
    Shop 2 Calls : 45
    I need to calculate call per hour at the grand total ...which should average the totals in the section
    Grand Total : 61+45 = 106/2=53. I needed guidance as to how based on the section totals I can write a formula to calculate averages of the values present in the section. Both are different blocks ( Section and Grand Total)
    I cannot write a direct formula as it will give me error caculation beacuase of the nature of data in the report.
    Please let me kow on this.
    Thank You,

    Hi BOCP-BOE ,
    Thank you very much for the quick response.
    I tried with          
    =Sum([V_Calls_Per_Hour_Average]) ForAll ([V_Calls_Per_Hour_Average]) In Report
    =Sum([V_Calls_Per_Hour_Average]) ForEach ([V_Calls_Per_Hour_Average]) In Report
    But this gives me error
    I calculate calls per hour as a subtotal for each shop. ( There is a section on shop so for each shop under the section we will have calls per hour total)
    The formula to calculate calls per hour is little complex
    =If(Count([Date_Appeared];Distinct)=1;(Sum([Number Of Total Calls])/Average([Hours_Worked/60));(Sum( [Number Of Total Calls])/(Sum([Hours_Worked]/60) ForEach([Date_Appeared]) Where([Date_Appeared]<>Previous([Date_Appeared];Row)))))
    My think that the formula to calculate calls per hour has very little to do with summing the values for calls per hour. Please note that I have a V_Calls_Per_Hour_Average that holds that calculation.
    Please let me know on this.
    Thank You

  • Can we get subtotal and grand total by own calculation in a hierarchy ALV?

    Can we get subtotal and grand total by own calculation in a hierarchy ALV? I can get them by setting DO_SUM = 'X' by standard summation, but now I need to do my own summation on subtotal and total, can I?

    Can we get subtotal and grand total by own calculation in a hierarchy ALV? I can get them by setting DO_SUM = 'X' by standard summation, but now I need to do my own summation on subtotal and total, can I?

  • Calculated members In Excel 2013 - subtotals and grand totals missing

    I am using Excel 2013 to query an SSAS OLAP cube. I have selected 2 dimensions in the row area, and I need to consolidate specific combinations of members values of each dimension. To do this I have created calculated members which combine sets of members
    of each dimension, as in the code example below.
    These members produce the desired results except that I do not have any subtotals on a 3rd dimension in the row area (Internal segment name, cf. image below), nor grand totals in the pivot table.
    I am fairly new that MDX and would appreciate any advice on how to correct the code below.
    Code for the member [Manufacturing Item].[Item Type].[All].[Cards Contact]
    AGGREGATE(
    CROSSJOIN(
    {[Manufacturing Item].[Item Type].&[CARD BODY OTHER],
    [Manufacturing Item].[Item Type].&[CARD BODY],
    [Manufacturing Item].[Item Type].&[SMART CARD]},
    [Techno cards contact]

    In my previous post, the solution happened to work because the combination of the calculated members was equal to the whole dimension. But I found a cleaner method: subtotals need to be calculated for the combination of all the calculated members, so the
    logic is to create a set that contains all of them. Then aggregate the measure for this set only for subtotals. To do this, I have created the following calculated measure: 
    IIF(
    ISLEAF([Manufacturing Item].[Item Type].CurrentMember),
    [Measures].[Manufacturing Volume],
    SUM({[CalcMembers]},[Measures].[Manufacturing Volume])

Maybe you are looking for