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

Similar Messages

  • How to calculate ' Month - 1' in web intelligence 3.1?

    Hello All,
    While designing webi report I want to display previous month in the table.
    eg:--
    Aug -- Jul -- June -- May -- June .............like wise.
    I know the inbuilt function to calculate previous date... that is ...
    =RelativeDate(CurrentDate();-1)
    but how to calculate previous month ?
    Thank you.
    Regard's,
    Bhushan.

    Hi,
    So If consider Island Resort Marketing, you have the following Objects:
    Country, Sales Revenue and Invoice date in format(dd/MM/yyyy)
    Current requirement is:
    to display say a crosstab:
                    Aug-10    July-10     Jun-10     May-10   April-10    March-10   Feb -10  Jan-10
    US                 103         343            34          34          5676           5656          565       565
    France            45            454          454         454 ......
    Japan
    Please correct me if that is wrong.
    If this the case then...
    1. Create an Object Month of year- [invoice date] where year="2010" or any other will be fine.
    2. use [YearMonthname] =FormatDate([Month of year]);"dd/MMM/yyyy"  to get the month name.
    3. Use Substr([YearMonthname];4;3) to get only Month Name, call it [Month Name]
    4. Drag the object to the report and apply Custom Sort to it to appear in the order in which you want it to display.
    5. if Year required along with Month then concatenate with Year too.
    If this is not the case then let me know.
    Regards,
    Velly

  • How to calculate monthly booked value in asset?

    Dear Experts,
    i have a query in asset accounting. we are developing a report in asset for calculating month till date and year till date value of asset under project or w/o project.
    Can anybody tell me the logic and fields and table for find out the monthly value of an asset means how much cost/expense booked for an asset under project or for asset w/o project?
    Regards
    Arun

    Hi,
      You can refer ANLA table and field POSNR for WBS element.
    Regards,
    B. Radhika

  • How to calculate month wise da+basic

    hello gurus,
    am new to ABAP platform and the company gave tasks for developing a report . which display salary i.e., DA+BASIC for every month in particular year .
    please help me :?:

    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 amount base on Num & Rate

    Dear all,
    I want to set the calculation in RULE to calculate amount base on number and rate:
    Amount = number * Rate.
    I tried:
    AMT=NUM
    AMT*RTE
    But I got error message: "Operatn AMT=N specificatn 'N' is only possible together with P0045 and PRT"
    Please help me how to make it.
    Thanks,
    SophieTran

    can you check the option of MULTI

  • How to calculate Maximum value in a single row in OBIEE?

    Hi,
    I have a requirement having 4 measures A,B,C,D ranked by period, P1,P2 for each branch.
    The measures are ranked for these meaures by each period and now the output is as
    Branch Name---> A for Period1-----> A for Period2------->Rank(A in Period1) ----->Rank(A in Period2)----> (and so on for other 3 measures)
    Br1---->1000---->2000---->1----->2----> and so on
    Br2----->600---->4000----->2----->1----> and so on
    From the above output, I need to calculate the top3 ranks for each branch..ie., row wise i need to calculate the top3 ranks for each branch.
    I tried using Evaluate(Greatest()) in OBIEE. But when i try to use Rank() inside Greatest(), the following error is thrown.
    Can anyone help me in this? Is there any way to achieve the output?
    Thanks in Advance.
    Regards,
    RB

    Step : 1
    Sort itab by <Field1> descending.
    Just sort the internal table by the field.
    STEP: 2
    Then read the table at index 1.
    Read table itab index 1.               
    ITAB-FIELD = MAX .                  " Max field will come in the first row of the internal table.
    Regards,
    Gurpreet

  • How to calculate and save planning data in bex input-ready query using keyfigures for calculation from different infoproviders

    Hi Dear All,
    We have two real time infocubes and two aggregation levels based on these cubes in one multiprovider
    first cube1 is like
    char1| char2| keyfig_coefficient(single value for each combination of char1 and char2)
    same aggregation level1
    (we have input query to fill coefficients by one responsible user)
    second cube2 is like
    char1| char2| keyfig_quantity| keyfig_result
    same aggregation level2
    Input ready query should be like (for all other users of different org units)
    char1|char2|keyfig_coeff| keyfig_quant(for input) | keyfig_result = keyfig_coeff*keyfig_quant(calculated value, should be saved to cube2)
    And we don't have pregenerated lines in cube2, users have to add new lines themselves by wad.
    Question is, what is the optimal (easiest) way to make calculation and save result data to cube2 where keyfigures for calculation should be used from different infoproviders. I need just a hint.
    Appreciate any help.
    Nadya.

    I found decision, agregation levels sould be based on multiprovider, not included.

  • 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.

  • How to calculate number of rows for perticular characterstic in SAP BI Bex

    Hi experts,
    Please let me know how to calculate  ' number of rows  ' for perticular characterstic in Bex query. 
    Thanks & Regards,
    Babu..

    Hello,
    You can try this
    Create a CKF and assign the vale 1 to it. Open the query and select Character where you want to display ' number of rows ', go to properties windows, select 'display', in the results row drop down box, select  'always display'.
    Thanks.
    With regards,
    Anand Kumar

  • How to calculate this column (Last Week of month)?

    I have a request where it shows some calculations month wise
    ex. This report is for Dec-2010
    reporting line | Declined Rate | Approved Rate | Last-Week Declined Rate |
    Report Asia---| ------20%----- | -----45%-------- | --------4%------ |
    Report Africa-| ------44% -----| -----21%-------- | ------12%-------|
    I am trying to calculate the Last Week Declined Rate column. The logic is just not coming to my mind.
    Can anybody suggest me how should I calculate this?

    Let's see. Running this report anytime after the previous month has closed...
    1) TIMESTAMPADD(SQL_TSI_DAY, (DayOfMonth(CURRENT_DATE))*-1, CURRENT_DATE) will give you the last day of the previous month...
    2) TIMESTAMPADD(SQL_TSI_DAY,DAYOFWEEK(TIMESTAMPADD(SQL_TSI_DAY, (DayOfMonth(CURRENT_DATE))*-1, CURRENT_DATE))*-1,TIMESTAMPADD(SQL_TSI_DAY, (DayOfMonth(CURRENT_DATE))*-1, CURRENT_DATE)) will give you the Saturday prior to the last week of the month.
    3) TIMESTAMPADD(SQL_TSI_DAY,1,TIMESTAMPADD(SQL_TSI_DAY,DAYOFWEEK(TIMESTAMPADD(SQL_TSI_DAY, (DayOfMonth(CURRENT_DATE))*-1, CURRENT_DATE))*-1,TIMESTAMPADD(SQL_TSI_DAY, (DayOfMonth(CURRENT_DATE))*-1, CURRENT_DATE))) will give you the Sunday of the last week of the previous month.
    Now that you have the beginning of the last day of the previous week, you can build your filter... It will be "between 3) and 1)" above...

  • How to get the monthly interest rate

    Hello!
    I have been using AppleWorks for 10 years.
    Since that time, I use a financial template named Mortgage Analyser.
    In this file, one can get the pmt if one provided the +pv, monthly interest rate and the number of periods.+
    What I get is the reverse, that is, how to get the +monthly interest rate+, if I provide the +pv, the number of periods and the pmt+?
    I think I had this in the past, but I can not find it.
    Thanks,
    Jorge Lucas (the guy from Rio Grande do Sul)

    Peter,
    I already saw that, but it does not give me what I want.
    That works only if you put a money at a savings account and DO NOT TOUCH IT for a given period.
    My need right now is to help a girl to buy a car in 36 or 48 monthly payments and calculate the real interest.
    I want to have this for any other similar buying.
    I can do it using the Mortgage Analyser template changing the MONTHLY RATE by *+try and error+* but — +since I am a High School Math Teacher+ — I would like to have the function directly.
    Another day I was looking on the Internet and it seems that there is no direct response for what I want, using AppleWorks.
    So, if I continue to use AW, I must calculate it by try and error.
    Thanks anyway!
    Jorge Lucas (the guy from Rio Grande do Sul)

  • How to calculate the salary of the employees when they are differentiated by monthly and hourly basis

    Hi all
    How to calculate the salary of the employees when they are differentiated by monthly and hourly basis
    How can we write the logic though sql
    Thanks in advance

    (case when pay_basis like 'HOURLY'
    then PROPOSED_SALARY_N*pay_annualization_factor
    when pay_basis like 'ANNUAL'
    then PROPOSED_SALARY_N*pay_annualization_factor
    end )
    I was actually trying to write the logic in this way but it was not calculating in correct format for hourly paid employees

  • How to Calculate column (Month, Year) from date or timestamp

    Hi,
    Name
    SQL Data Type
    Dimension
    Column Store Data Type
    Key
    Not Null
    Default
    Comment
    T_STAMP
    TIMESTAMP
    LONGDATE
    How to generate Month and Year from timestamp field in Analytic View.
    Please provide me some valuable input. I have searched SCN before posting this discussion.

    Hi KD,
    You can apply the following formulas in the expression:
    For Year :
    leftstr(string("Timestamp"),4)
    For Month:
    midstr(string("Timestamp"),6,2)
    Regards,
    Krishna Tangudu

  • How to produce the Month Growth

    Dear All,
    Help needed. I am having problem to produce a calculated sales measure which is the month growth where the exmaple is as follow:
    For the month growth of "Jan-2008", it has to take the sales for (Jan-2008 - Jan-2007) / sales for Jan-2007.
    Thanks in advance for the help.
    Best Regards,
    ERic

    Hi Amr Salem,
    Thanks for the suggestion. In fact, I am looking at the dynamic way to show at least 2 years of Month Growth. For example.
    Sales -
    >                    | Growth  --->
    Jan07 | Feb07 | Mar07 ... Jan08(Growth) | Feb08(Growth) | ......
    Kindly Help.
    Thanks.
    Regards,

  • Currency conversion to month end rate

    Dear Gurus,
    I need to store local currency amount in the cube as group currency amount . The logic of the calculation
    local currency amount * month end rate
    In other word the local currency amount need to be converted to group currency amount using the month end rate.
    Can anyone teach me how to do this
    Your help highly appreciated
    Thank you
    BR

    Hi Sarvanan,
                     You can write a routine to calculate this. But you will need some reference date field, like posting date for this.
    In your start routine, get data from table TCURR inside ITAB for monthend forecast rate.
    In routine, get corresponding rate by looking local currency and group currency from TCURR internal table. Multiply this rate with local currency amount to get desired result.
                 Please revert if you need more help on ABAP code to be written.
    Regards,
    Harpal

Maybe you are looking for

  • View multiple months in iCal?

    When in month view, I want to be able to view more than one month at a time (i.e. the last half of September and the first half of October; or view September and October at the same time). This seems like it should be relatively easy. It is in Entour

  • Where can I get patches to migrating Oracle 8.1.7.0 to Oracle 8.1.7.3 ?

    Hi, I'm looking for downloads for Oracle 8.1.7.3 to MS windows I can get Oracle version 8.1.7.0 from OTN but I want version 8.1.7.3 ! Please can someone tell me where I can download version 8.1.7.3 or patch to upgrade to 8.1.7.3 Any help would be gra

  • Photo black cartridge problem

    Why does my Photosmart 7510 constantly use up the Photo Black cartridge when I'm not printing photos? I have plenty of black ink, but I am constantly going through photo black cartridges. I have "plain paper" set as default.

  • How can i tell if i have flashback malware

    How can I tell if I have the flashback malware? Will installing the latest security update get rid of the malware /virus and protect my computer?

  • Minus operations on table

    Hi everyone, I am trying to find a way to do minus operations on table. I know this is possible in SQL, but I have yet to find out how to do it in ABAP. Can anyone help? What I need to do is the following. Let table A = (A,B,C,D,E) and table B = (B,C