How to calculate percentage growth rate

Hi guys,
Please I am trying to calculate the percentage of growth rate using MDX query.
I have tried this but it keeps returns a null value.
Create Member CurrentCube.[Measures].[Monthly Growth Internet Sales Amount]
As [Measures].[Internet
Sales Amount]/
([Date].[Month of Year].CurrentMember,[Measures].[Internet Sales Amount])- 
([Date].[Month of Year].PrevMember,[Measures].[Internet Sales Amount]), 
FORMAT_STRING = "Currency", 
VISIBLE = 1
I need your assistance please.
me

Are you trying to return a percentage? If so, your format_string needs to have a percentage format.
Also, are you trying to return [Internet Sales Amount] change vs last month? 
If so, the query should be something like this...
Member CurrentCube.[Measures].[Monthly Growth Internet Sales Amount]
As
(([Date].[Month of Year].CurrentMember,[Measures].[Internet Sales Amount])-
([Date].[Month of Year].PrevMember,[Measures].[Internet Sales Amount]))
/ [Measures].[Internet Sales Amount],
FORMAT_STRING = "0.0%",
VISIBLE = 1
Please mark as answered, if this is what you are looking for.

Similar Messages

  • How to calculate percentage of errors in DP

    Hi Gurus,
                 Can anyone tell me How to calculate the percentage of errors? 
    I had generated forecast and wanted to know how much is the error we have .
    Please let me know your answers
    Thanks a Lot
    regards,
    Raj

    Hi Gurus,
                  I just wanted to know how to get lowest percentage errors for my forecast and make business happy ?
    I am using "Auto Model selection-2" and i wanted to have lowest percentage errors and what should i do for it?
    What alpha , Beta and Gamma values need to keep in forecast profile?
    Please let me know it will be really great
    Thanks for the answers
    Regards,
    raj

  • How to calculate percentage and difference of two values in matrix report in ssrs 2008

    Hi everyone,
    DB--SQL server
    SSRS-2008
    I am creating matrix report with grouping on WEEK and Fiscalyearweek,
    I need to calculate of difference between FY14W01,FY15W01 ande  percentage of those..
    how to calculate in ssrs level.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, you want to calculated the increment percentage and difference between two fiscal year week within each week. Right?
    In this scenario, since we need to do calculation based on values between dynamically generated cells, we can't simply use expression to achieve this goal. In this scenario, we need to use custom code to record the value for fiscal 14 and fiscal 15, then
    we can calculate the difference and percentage within the column group. We have tested your case in our local environment, please refer to the steps and screenshots below:
    1. Add the custom code below into the report (you may need to modify the data type based on your scenario:
    Public Shared Value1 as Integer
    Public Shared Value2 as Integer
    Public Shared previous as string
    Public Shared previousweek as string
      Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
    If product =previous and Week =previousweek  Then
         Value2=Value
    Else
    previous=product
    previousweek=Week
    Value1=Value
    End If
         return Value
      End Function
      Public Shared Function GetPct()
         return (Value2-Value1)/Value1
      End Function
    Public Shared Function GetDiff()
         return Value2-Value1
      End Function
    2. Design the matrix like below:
    3. The result look like below:
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to calculate file tranfer rate

    I am working on applet which uplaod the files on ftp now i want to add progress bar on it which tell me exactly how much time it takes to upload or how manay percent it completed.
    import cz.dhl.ftp.Ftp;
    import cz.dhl.ftp.FtpConnect;
    import cz.dhl.ftp.FtpFile;
    import cz.dhl.io.CoFile;
    import cz.dhl.io.CoLoad;
    import cz.dhl.io.LocalFile;
    i am using these libraries

    So what's the question?I think it is how do I put in a progress bar which means I need to know how to calculate the file transfer rate.

  • How to calculate percentage old school

    I am looking for a calculator aps that can calculate percentage like in the 1980 Casio calculator,
    Example:
    100 x 25% +
    That would equal 125 and not 50
    Merck

    Meg St._Clair wrote:
    By the way, 100x25% =25, not 125 or 50. What your asking is 100 + (.25x100). At least, as best I can tell.
    What you missed - and I missed it as well at first is the + sign in the OP's post which then makes the calculation...
    100 x 1.25 + = 150 where the + adds the 25 back onto the subtotal.
    100 x 1.25 = 125 + 25 = 150.
    That is how I interpret what the OP wants to do.

  • How to calculate different tax rates for  same material in single invoice.

    Dear All,
    If the excise rates are changed during the budget and the stock is lying with the client with the existing rate.
    After effective date of new rates we receive the good with new rates.The new and the old rate stock is sent to a customer in single invoice.How can we configure such case. The excise should calculate by old rate to old stock and new stock should be calculated by new rate.
    Please guide in such case.
    Thanks in advance.
    deepti

    Hi Deepti
    In copy control you will have to redeterfine taxes whilst billing.
    If you want you change this and keep it as copy pricing. This won't change anything. Else use Copy prices and redetermine tax. You can find this setting in VTLA and VTFA in item category Pricing type.
    You can't have both of then in the same invoice as procedure is decided for the whole invoice and not a single Item. You can rather have two different item category type. TAN and ZTAN you redetermine taxes for tan and copy them as it is for ZTAN.
    Regards

  • How to calculate percentage in alv

    hi guru,
    i have 2 vaues one is onspec total = 543 . 00
                                 grand total    =  1098.00
    how i caculate percentage means i want (543 / 1098)*100
    help me in alv ....
    thanks

    I too have searched for a complete answer.  I have managed to calculate the percentage and update the subtotal line, but cannot force this data to the grid on first display.  I set the DO_SUM = 'X' in the field category and the SUBTOT = 'X' in the sort table.  The following code will change the subtotal line.  Any help with forcing the new subtotal to appear in grid at first display will be greatly appreciated.
    Get the sort criteria before subtotaling changes
        CALL METHOD G_GRID->GET_SORT_CRITERIA
          IMPORTING
            ET_SORT = GT_SORT.
    Get the subtotal structure
        CALL METHOD G_GRID->GET_SUBTOTALS
          IMPORTING
            EP_COLLECT00 = TOTAL
            EP_COLLECT01 = SUBTOTAL.
        ASSIGN TOTAL->* TO <TOTAL>.
        ASSIGN SUBTOTAL->* TO <SUBTOTAL>.
        CLEAR W_PLNHR.
    Recalculate the % done in subtotal line
        LOOP AT <SUBTOTAL> INTO WA_TOT.
          IF WA_TOT-PLNHR > 0.
            WA_TOT-PLNPR = WA_TOT-ESTHR / WA_TOT-PLNHR * 100.
          ELSE.
            WA_TOT-PLNPR = 0.
          ENDIF.
          WA_TOT-GJAHR = SGJAHR.
          MODIFY <SUBTOTAL> FROM WA_TOT INDEX SY-TABIX.
        ENDLOOP.

  • How to calculate percentage based on key figure maximum value

    Hello everybody!
    I need your expertise on a query 'issue' I'm facing. Let's say I have a query getting me the Number of Open Items per Week (starting from billing document's Issue Date).
    My client wants to be able to see the percentage per week and not the actual number.
    So, what I have is below:
    <b>Wk</b><b>"OI Nr"</b>
    1                                "68.801"
    2                                "66.288"
    3                                "59.344"
    4                                "50.506"
    5                                "20.950"
    And what I want is below (in italics):
    <b>Wk</b><b><i>"OI %"</i></b>
    1                       "<i>100%   </i>"           (i.e. 68.801 / 68.801 * 100)
    2                      "<i> 96,34%  </i>"         (i.e. 66.288 / 68.801 * 100)
    3                      "<i> 86,25%  </i>"         (i.e. 59.344 / 68.801 * 100)
    4                       ......
    5                       ......
    Is it possible to achieve sth like this by altering some key figure properties or in any other way?
    Thanks in advance.

    First u need to create a calculated Key Fig globally. You can do this at the extreme left end of the query Designer. Just right click on the Calculated key Fig and say <b>New Calculated Key Figure</b>
    Give the description of the Key Fig and in the formula section just put the the key fig . <b>'OI Nr'</b> in you case
    When u say ok it will open the properties of the key fig there u can see <b>Enhance>></b> at the bottom. Click on that make the <b>exception aggregation</b> to <b>maximum</b> and <b>refernce characteristic</b> for the one which u are having the values 68.801, 66.288, 59.344, ..
    Save this calculated key fig
    now in the Columns create a <b>new selection</b> under the key fig.
    drag the newly created calculated key fig in this <b>new selection</b> and say ok.
    Now right click on this <b>new selection</b>, go to the <b>Calculated Single Value</b> as drop down and make it <b>Normalize-Sub Totals</b>
    Tick the checkbox  <b>Also Apply to result</b>
    and select <b>Calculate Along Columns</b>.
    Save the query and execute. This should solve youe issue
    Hope this helps.

  • ALV Grid( How to calculate percentage) using alv gridfunctional module.

    Dear Gurus,
    In my report first coulmn and second column are sales and margin but third coulmn is margin%. now at last of report i want to display total sales and total margin and overall margin percentage. I am able to do total of sales and margin by using standard functionality of grid. I need to know to calculate overall percentage. I am not using alv oops method . I am using fucntional modules .
    Thanks in advance.
    Regards
    Dave

    Hi Devendra shrama,
    Percentage calculation in ALV
    The following method is a bit of a mission but it
    seems to be the only way around this at the moment.
    Also it only works with an ALV Grid not an ALV List.
    You have to take over the total lines manually.
    1. In the ALV output tab add extra fields that are the
    same as those on which you are sorting and contain the
    same values.
    2. In the Field Catalog you must add these fields but
    they must be hidden i.e. no_out = 'X'.
    3. These fields must be included in the Sort Catalog
    with subtot = 'X'.
    4. In order to handle the final total line in your
    layout for the ALV you must set field no_totalline'X' because you are going to be taking this over as
    well.
    5. Create a form called SUBTOTAL_TEXT or similar
    structured as follows:
    form subtotal_text using ep_subtot_line like
    output_tab
    es_subtottxt type
    slis_subtot_text.
    In this form you will do the percentage calculation
    again at total level. The structure ep_subtot_line
    will contain a field for each of the fields in your
    output_tab i.e. ep_subtot_line-sales,
    ep_subtot_line-cost and ep_subtot_line-margin. Put the
    margin calculation into ep_subtot_line-margin.
    6. In the eventtab that you pass to the ALV_GRID
    function module you must create a record with the
    field name = 'SUBTOTAL_TEXT' and the field form = the
    name of the form you created in step 5 above.
    This works OK.
    i hope it helps you.Happy solving.
    thanks
    karthik

  • How to calculate UOM conversion rate

    Hi All,
    Whether there is any Standard API available to calculate the UOM Conversion rate.
    There can be interclass intraclass or standard conversion.
    Please help.
    Thanks,
    Arun

    Hi,
    If the Business no longer uses the 500 pcs conversion, one could Inactivate the conversion and define a new one.
    If Business wants to have a choice of using 500 or 450 pcs, then a new Case UOM needs to be defined.
    I hope this helps.
    Regards
    Adarsh Krishna

  • How to calculate percentage

    hi,
    i have requirement below.
    i want to calculate 20 percent of wa_ameng .and if wa_menge value is more than 20 percent of wa_ameng  then i will capture that value to another varibale.how to write the code please help me
    data:wa_ameng type i,
         wa_menge type i,
         wa_percent type i.
    *DATA: BEGIN OF xe1edp10.
           INCLUDE STRUCTURE e1edp10.
    *DATA: END OF xe1edp10.
    LOOP AT dint_edidd
      WHERE segnam EQ 'E1EDP10'.
      CLEAR xe1edp10.
      MOVE dint_edidd-sdata TO xe1edp10.
    loop at DEKEH .
    move dekeh-ameng to wa_ameng.
    move dekeh-menge to wa_menge.
    endloop.
    ENDLOOP.

    Hi,
    Add decimals to it.
    data :wa_ameng type p DECIMALS 2,
          wa_menge type p DECIMALS 2 ,
          wa_percent type p DECIMALS 2 ,
          wa_percent1 type p DECIMALS 2 .
    Thanks,
    Sri.

  • How to calculate Month on Month growth rates in an OBIEE query?

    Dear all,
    I would like to ask your help on how to calculate Month on Month growth rates [(last month - previous month)/previous month*100%] in an OBIEE query. This ratio should be always calculated for the last 2 available months.
    I have the following query:
    Month0 | Month1 | Month2
    Product A 500 | 100 | 200
    Product B 600 | 300 | 150
    would like to add Month on Month column as following:
    Month0 | Month1 | Month2 | Month on Month(%)
    Product A 500 | 100 | 200 | +100.00%
    Product B 600 | 300 | 150 | -50.00%
    I tried to add a calculated item but it was not successful because I could not find out how to show only the calculated column as % with 2 decimals. Moreover, I would ideally prefer to have an automatic update but as far as I understood it can't be done in the calculated item automatically
    I also tried to add a new column in the column area and to filter the results for the last month, then for the previous month and then based on it to calculate the needed ratio but unfortunately it also does not work out.
    Thank you your hints in advance

    Hi,
    The best way to solve this is using the Ago function. With this you can create a logical column for the previous month. Then you will have 2 columns available with which you can do your calculations.
    If you want to do this with a calculated item (don't know if the formatting will work for you), but you can make the calculation more general by using $1 for column 1 and $2 for column 2 in your calculation. So the relative columns ($x) will change with the columns in your report.
    Regards

  • How to calculate the unit for RATE?

    Hey All,
    I am not sure if there is something standard for this or not.
    I am calculating the 'Rate' by using 'Value/Amount' and 'Quantity' as follows -
    Rate == Value /  Quantity
    I need to calculate the unit for the rate as below -
    Rate unit == Value unit (Currency) /  Quantity unit (Base_uom) 
    (for example -
    if value is 1000 USD and quantity is 10 TO then Rate should come out as 100 USD / TO)
    Could anyone please suggest how to calculate the unit in this case?
    Many Thanks!
    Tanu

    Hi,
    Go through the below link it may give some idea
    http://help.sap.com/saphelp_nw04/Helpdata/EN/19/1d7abc80ca4817a72009998cdeebe0/content.htm
    Regards,
    Marasa.

  • How to calculate difference and percentage in matrix report dynamic columns in SSRS 2008

    Hi Friends,
    I need to calculate Difference and Percentage In matrix report SSRS 2008
    1) Row grouping based On Product
    2) Column Grouping Week and Fiscal Year Current week  and Previous Year same Weeks 
    3)Data Invnetory(Value fileld)
    Example:
    If value1 and Value2 Available we need to calculate Percentage and Difference.Otherwise Not required NA I need to Show.
    For example If Particular week,Current year data is available,Previous year  week data is not available No
    need to cal Diff and Percentage we need to show Empty.
    Below Code is working for If two values is available.
    If any one of the fiscal year week data is not there it's taking some garbage values.
    I tries with If condition in GetPCT() and GetDiff() It's not working.
    Can some one please help me on this.
    I am using the custom code 
    Public Shared Value1 as String
    Public Shared Value2 as String
    Public Shared previous as string
    Public Shared previousweek as string
    Public Shared Function GetValue(Value as String,partner as String,Week as String) as String
    If partner =previous and Week =previousweek Then
    Value2=Value
    Else
    previous=partner
    previousweek=Week
    Value1=Value
    End If
    return Value
    End Function
    Public Shared Function GetDiff()
    return Value2-Value1
    End Function
    Public Shared Function GetPct()
    return (Value2-Value1)/Value1
    End Function
    How to handle this.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, if one of the fiscal year week doesn’t have data, the custom code returns false results.
    For your requirement, if NULL value exists in the database, we should replace it as zero then perform calculate. So within the code, we should judge whether the value is NULL. To achieve your goal, please refer to the steps below:
    1. Create a table like below.
    create table dif4
    ([Product Group] varchar(50),
    [Week] varchar(50),
    [Fiscalyearweek] varchar(50),
    value int
    insert into dif4 values
    ('Desktops','W01','FY14W01',0),
    ('Desktops','W01','FY15W01',45),
    ('Desktops','W02','FY14W02',null),
    ('Desktops','W02','FY15W02',30),
    ('Desktops','W03','FY14W03',12),
    ('Desktops','W03','FY15W03',50),
    ('Notebooks','W01','FY14W01',35),
    ('Notebooks','W01','FY15W01',56),
    ('Notebooks','W02','FY14W02',45),
    ('Notebooks','W02','FY15W02',87),
    ('Notebooks','W03','FY14W03',75),
    ('Notebooks','W03','FY15W03',105),
    ('Tablets','W01','FY14W01',34),
    ('Tablets','W01','FY15W01',46),
    ('Tablets','W02','FY14W02',49),
    ('Tablets','W02','FY15W02',96),
    ('Tablets','W03','FY14W03',42),
    ('Tablets','W03','FY15W03',113)
    2. Add the custom code in the Report Properties.
    Public Shared Value1 as Integer
    Public Shared Value2 as Integer
    Public Shared previous as string
    Public Shared previousweek as string
    Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
    If Value=Nothing Then
    Value=0
    End If
    If product =previous and Week =previousweek Then
    Value2=Value
    Else
    previous=product
    previousweek=Week
    Value1=Value
    End If
    return Value
    End Function
    Public Shared Function GetPct()
    If Value1=0 Then
    return 0
    Else
    return (Value2-Value1)/Value1
    End If
    End Function
    Public Shared Function GetDiff()
    return Value2-Value1
    End Function
    3. Design the matrix like below.
    4. Then get the expected results.<o:p></o:p>
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • 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

Maybe you are looking for

  • Error occurred while launching/running the application.

    Hello all, I'm using the "tutorial" demo from Vamp, and here's what happened after I chg the jnlp file: 1. Enabling MIME type on my HTTPD server 2. Disabling the proxy of my IE Browser 3. Installed /jdk1.3 4. JWS started with the following error: GEN

  • ANCHOR LINKS NOT WORKING!...STILL :(

    Well another Muse update has come out and to much disappointment the same issues still exist with anchors. They do not work in Safari 6 running Mountain Lion, or iOS. Anchors in iOS have been an issue since the Muse Beta days... so I am now starting

  • Coherence as like data access

    hi is coherence as like data access for toplink? if is possible , how configue for toplink without database? thanks

  • What is the best methodology to build modular applications?

    Hello, I am working on a project that uses database access quite heavily. Now, as I am a beginner, I wanted to go a very modular approach by building one module at the time and then assemble it in the overall application. I tried to use <SWFLoader> t

  • ThinkPad W530: Blank Screen/Weird Colorful screen on Lid Open

    Please see the picture below. This error happens randomly when I close my lid, and/or move my laptop fast from one place to the other. I get either the error screen below or a blank screen. Both the error screen below and blank screen require me to h