How to calculate % based on totals of a characteristic

HI BI query goeroes,
I have following query:
Sales org - S&OP - Channel - PSI - KeyFigure1 - % S&OPKF1 - % Channel KF1
S100--SAA---1010/60--
10/30
S100--SAB---2020/60--
20/30
total  ChannelA--
30
S100--SBA---1515/60--
15/30
S100--SBB---1515/60--
15/30
total  ChannelA--
30
   total S&OP S                                 60
Question is how to calculate the last two colums.
First colum should calculate the Keyfigure1 percentage based on the overall total of S&OP per salesorg (keep in mind that we have multiple sales orgs).
Last colum should calculate the Keyfigure1 percentage based on the total of Channel per salesorg/s&op group.
Can anyone please assist me how to do this?
I am using the BI7.0 query designer.

Hi,
To Calculate % Channel KF1 you can use  'Percentage of Result'(KeyFigure1).
To calculate % S&OPKF1 you can use ' Pecentage of Overall Result' (Keyfigure1).
These are functions are available in the Percentage Functions when you create a formula or a CKF.
Hope this helps.

Similar Messages

  • How to calculate the Page total in Excel format

    Hai all,
    How can we calculate the page total in Excel format, directly in RTF without using the summary column in the RDF.
    Regards

    <?add-page-total:TotalFieldName;’element’?>
    where
    TotalFieldName is the name you assign to your total (to reference later) and
    ’element’ is the XML element field to be totaled.
    You can add this syntax to as many fields as you want to total.
    Then when you want to display the total field, enter the following syntax:
    <?show-page-total:TotalFieldName;’Oracle-number-format’?>
    Pls refer XML Publisher user guide for more info on this.
    Kiran

  • Calculate % Based On Total..

    Hi All,
    I was calculate Grand Toal Based On Columns After in pivot Table.Now I want Calculate % on Grand Total. That Total will be Disply In After Grand Total...
    Any Help..
    Edited by: 959249 on Dec 11, 2012 7:49 AM

    How,dats a inbuilt function.It automatically calculates the % of column by taking the formula as columnvalue/sum of all values*100.
    Check it once it will work.
    on ur measure column in pivot give showData as --> Percentage of --> column

  • How to calculate  forign currency total amount in sale order???

    how to convert  forign currency total amount in indian rupees on  sale order pld ???
    Edited by: VINAYAK CHA on Feb 21, 2012 1:30 PM

    Dea Srujal
    SELECT T0.[Docdate],T1.[ItemCode],T1.[U_jobno]As 'Job Card No',T1.[Quantity],T0.[CardCode],T2.[U_SP],T2.[U_MA],T2.[U_ID], T2.[U_OD],T2.[U_testfield],T0.[Docduedate]
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode  INNER JOIN OHEM T3 ON T0.OwnerCode = T3.empID
    WHERE T1.[U_INRPRICE]>='35,000'  And (T0.[Docdate]>='[%0]' and T0.[Docdate]<='[%1]' )and T1.[ItemCode]!='SEAL' AND T0.[DocStatus]='O'
    iam using above query  with  above formatted search as i post in previous answer.
    but still some item is missing in query
    kindly do the needful

  • How to calculate a cumulative total in HANA

    Hello,
    I have a detail table (e.g. GL line item table) which has entries for 'posting date', account number, year, month, posting amount (single key figure) and account type (whether the account is a profit & loss account or a balance sheet account.
    The requirement is to create a view which shows balance of month for profit and loss accounts and cumulative balance per month for balance sheet accounts (i.e. total of all line items till end of the month, not just for the month).
    Currently I am able to get only balance for the month , but not the cumulative balance.
    How can I calculate a cumulative amount column/key figure - either through Analytical view or calculation view?
    Thanks,
    Ninad

    The Window Functions should help. Here is a sample query in SPS06 using a sum over function against an SAP HANA Live standard view.
    SELECT Year("BillingDocumentDate_E") as "Invoice_Year", "BillingDocumentDate_E" as "Invoice_Date", round("TotalNetAmount_E") as "Billed_Amount",
           round(Sum("TotalNetAmount_E") OVER (partition by Year("BillingDocumentDate_E") order by "BillingDocumentDate_E")) as "YTD_Amount"
    FROM "_SYS_BIC"."sap.hba.ecc/BillingDocumentQuery"
    WHERE "SAPClient" = '004' and "SoldToPartyName" = 'Becker Berlin' and "BillingDocumentDate_E" >= '2002-01-01'
    GROUP BY Year("BillingDocumentDate_E"), "BillingDocumentDate_E", "TotalNetAmount_E"
    ORDER BY 1, 2
    Message was edited by: Marc Daniau

  • How to calculate subtol and total values in alv.

    Hi expert,
    I want to calculate the subtol and total values in alv as follows,
    example:
       month:    Jan      Fer      Mar    Apr
                      -50       -30      40      -10
                      -20       -13      -12     -10
    subtotal      -70       -43      28      -20
                      -10       -10      -10     -10
                      -10       -31      -15     -10
    subtotal      -20       -41      -25     -20
    total           -90       -84       3       -40
    when i put '-' in front of the month,i define the month type c,
    and when the type is c,it cann't calculate the subtotals and totals.
    how can i do can make the layout like the example.
    thanks...
    Edited by: Heum Kim on Aug 25, 2008 3:54 AM

    The below code is not generic one. I am just looking for generic one. You try to fix it using the similiar approach.
    REPORT  ZTEST_ALV_DEC.
    data: fcat type lvc_s_fcat,
          tfcat type lvc_t_fcat.
    data: begin of itab occurs 0,
          carrid(10),
          quan type DEC_16_02_S,
          end of itab.
          itab-carrid = 'AA'.
          itab-quan = '-10000.00'.
          append itab.
    fcat-fieldname = 'QUAN'.
    fcat-tabname = 'ITAB'.
    fcat-decimals_o = 2.
    fcat-edit_mask = 'V__,___.__'.  "This is not generic
    append fcat to tfcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
       I_CALLBACK_PROGRAM                = sy-repid
       IT_FIELDCAT_LVC                   = tfcat
      TABLES
        t_outtab                          = itab
    EXCEPTIONS
       PROGRAM_ERROR                     = 1

  • How to Calculate Line items Total of Matrix Column

    hai experts,
                  Im facing a problem like
                   1. i have a matrix with a column Labour Costs in that im taking some cost.
                   2. in footer a have a Edit Text like Total Labour Cost
                   3 when i enter amount in matrix column it sholud disply that value in total labour cost and when we add new row ,labour cost it should add to 'total labour cost' in footer.Like Invoice Documents.

    Where do you want to implement this like sapscript / smartforms or adobe forms? please specify.

  • How to calculate the Grand total

    Hi all,
    I have a table that has three column as Instrument_Name, Instrument_Currency , Value.
    I am using the "table view" to show the data on dashboard.The table shows instrument name , its currency and a value(in that currency).
    Could it be possible that while displaying the grand total of "Value", i should convert the value in a single base currency as USD.
    Thanks

    Hi,
    Well you can and should create a total on the calculation of the Margin%
    But you have to define the calculation correctly, for example if you will use in the calculation the fields without aggregation
    you will get wrong output but if you'll define the calculation as something like:
    CASE WHEN ( SUM(Revenue)+SUM(Cost)) = 0 THEN 0 ELSE SUM(Margin)/( SUM(Revenue)+SUM(Cost)) END
    and then create a total with SUM Aggregation I think you'll get what you asked for

  • How to calculate totals in Blocked ALV Report

    Hi All,
    Can any body tell how to calculate totals & sub totals in
    Blocked ALV Report[Blocked List].
    Thanks in advance
    Thanks & Regards,
    Rayeezuddin.

    read this it might help
    Sums                                                       
    15. No_sumchoice(1) TYPE c : This parameter allows the choice for summing up
    Only by fieldcatalog.
    Value set: SPACE, 'X'
    'X' = fields which are to be summed, passed by the calling program (FIELDCAT-DO_SUM = 'X'). The user should not be able to change this value interactively.
    16. No_totalline(1) TYPE c : Removes the option of having totals after sub-totals.
    Value set: SPACE, 'X'
    'X' = no total record is to be output. Subtotals can still be calculated and output. The fields in the subtotals are flagged DO_SUM = 'X' in the field list.
    17. No_subchoice(1) TYPE c : Does not allow the user to interactively change the field chosen for subtotals.
    Value set: SPACE, 'X'
    'X' = value whose change triggers subtotals, provided by the calling program. The user should not be able to change this value interactively.
    18. No_subtotals(1) TYPE c : No subtotals possible          
    Value set: SPACE, 'X'
    'X' = no subtotals.
    19. Numc_sum(1)  TYPE c : Totals only possible for NUMC-Fields.
    20. No_unit_splitting TYPE c: No separate total lines by inh.units   
    21.totals_before_items TYPE c: Display totals before the items   
    22. Totals_only(1) TYPE c :  Show only totals      
    Value set: SPACE, 'X'
    'X' = only total records are output.
    23. Totals_text(60) TYPE c : Text for 1st col. in totals   
    Value set: SPACE, string (max.60)
    ' ' = The first column in the total record contains an appropriate number of '*'s to indicate the total by default. If the first column is wide enough, the string 'Total' is output after the asterisks.
    'String’ = The string passed is output after the total indicated by '*', if the column is wide enough.
    24. Subtotals_text(60) TYPE c : Texts for subtotals
    Value set: SPACE, string (max.60)
    ' ' = In the first column of subtotal records, the subtotal is indicated by an appropriate number of '*' by default. If the first column is not a subtotal criterion, the string 'Total' is output after the asterisks, if the column is wide enough.
    'String’ = the string passed is output after the subtotal indicated by '*', if the column is wide enough and the first column is not a subtotal criterion. If it is a subtotal criterion, its value is repeated after the total, if the column is wide enough.
    ELSE TELL ME I WILL PASTE COMPLETE HELP
    regards

  • CFM /TR - how system calculate amount based on rate FX 60A

    Hi all,
    i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
    steps input:-
    1. header - comp code, product type, trans type
    2. partner
    3. purchase curr & amount (eg. IDR 8,345,545,500)
    4. sale currency only (amount system will auto calculate) USD
    5. rate field = 11.553
    6. spot rate will auto pick up from rate
    7. value date
    8. contract date
    upon TBB1 no error. posting log as follows:-
    FX1000+ : 40 8,345,545,500 IDR bank GL acc
                    50 8,345,545,500 IDR clearing acc
    FX2000- : 40 722370.42 USD clearing acc
                   50 722370.42 USD bank GL acc
    but upon TPM18 error occurred as follows:
    DBT_C009 - GL not maintain in acc symbol 5.3.4
    DBT_E039 - no posting spec assigned to update type
    DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
                       50 0 USD, 431,977,511 IDR clearing acc
    so, after maintained DBT_C009 as follows still error for DBT_E039:
    40  0 USD, 38 IDR clearing acc
    50  0 USD, 38 IDR P&L gl acc
    what i don't understand is how system calculate and get DBT_C009 & DBTE039.
    what is the function of TPM18?
    thanks.

    Hello Prarnod,
    I have done the first node only for actuals that come from the integration to the internal order.
    I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
    Thanks,
    Paul

  • How to calculate total number of pages in a script

    hi
    how to calculate total number of pages in a script

    Jyothsna,
    Date:-&sy-datum&
    Time:-&sy-timlo&
    Total No.of Pages:-&sapscript-formpages&
    Page No:-&PAGE&/&SAPSCRIPT-FORMPAGES&
    Give the above said lines in your text editor,and given the paragraph format.Better create one more window and give the above said lines in the text editor.
    K.Kiran.

  • Hi frinds ,how to calculate the  totals in smartforms

    1)how to calculate the  totals in smartforms .

    Hi,
        To calculate totals and sub totals in sap scripts you can use subroutines.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly it will be in footer window)
    Then create subroutine pool program and you have to write the code.
    FORM F_GET_PRICE tables int_cond structure itcsy
    outt_cond structure itcsy. data : value type kbert.
    statics value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    regards..

  • How to calculate total for field for particular day. in smart forms

    hi,
             pls help in this problem,
    how to calculate cumulative totals for the particular field in samrtforms

    Hi ,
    Either you can calculate the sum in driver program with
    Loop at where Condition .
    Sum the required field .
    endloop .
    Then pass it to smartforms
    Or
    Double Click on table node .
    In the conditions tab give the required condition .
    select calculation tab.
    In operation select Total , in field name give the name of the field you want to sum
    and in targer field name specify the name of the field that should contain the result .
    To convert the total in to words use the function module in program lines
    CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
    EXPORTING
    amt_in_num = w_total
    IMPORTING
    AMT_IN_WORDS = w_total_words
    EXCEPTIONS
    DATA_TYPE_MISMATCH = 1
    OTHERS = 2
    Regards

  • Urgent : how to calculate sub total and grand total in smart forms

    Hi Friens..how to calculate sub total and grand total in smart forms..How to print them in smart forms...Also kindly explain how to handle events in smart forms..Thanks in advance

    Re: Subtotal with Table Node in smartforms

  • How to calculate total no of days in List column

    Hi,
    I've start date and end date. Can you please help me how to calculate total number of days.
    Column Name = Leave Start Date (05/02/2015)
    Column Name = Leave End Date (19/02/2015)
    Column Name = Total Days (This is calculated column)
    I used below formula but its showing only 14 days however it should show 15 days
    =DATEDIF([Start Date], [End Date],"d")
    Thanks,

    I got the answer
    Formula is
    =DATEDIF([Start Date], [End Date]+1,"d")
    Thanks.:)

Maybe you are looking for