Bex dynamic calculation of months

Gurus,
How to populate he dynamic months in Bex query ,by just having like 1 variable as an input.
I do not want to create 12 months as hard coded in the query as restricted key figure as if we have like 5 different KPI then it would be like 12*5 = 60 hardcoded RKF to be created which we do not want.
any help pls
thanks

1)goto Columns
Drag and Drop KF = 0AMOUNT
R-CLICK 0AMOUNT>EDIT>add 0CALMONTH and variable with interval option from and to
2)Take 0CALMONTH from time dimension,drag and drop on top of the KEYfigure structure
Hope it Helps
Chetan
@CP..

Similar Messages

  • Dynamic calculation of prior 2 months

    Hi all
    Please help me out in solving this issue
    In my quuery out put will be as follows
    jun07 jul07 aug07 sep07
    quantity 45 50 60 70
    2m Offset quantity 45 50
    Issue:
    for 2m offset quantity we need to take quantity value two months prior.
    Example For sep07 it should display value of Jul07.
    I tried eith variable offset values. but they are taking current perid and substracting 2 months.
    i need dynamic calculation for every month.
    thanks
    srteelatha

    Hi,
    By Using 2 structures in the query , that means you have to take a selection in the columns area and you need to take 6 selections under this structure, you will get a chance to use the cell editor concept.Here first 2 selections will be hidden.
    that means first selection for APR.
    2nd selection for MAY.
    3 - June
    4- July
    5- Aug
    6- Sep
    In the cell editor concept ,you can overwriet the 2nd row values of the last 4 selections .That means 2nd row's 3rd(june) column value will be overwritten with  2nd row's 1st column value(APR) &
    2nd row's 4th column value(July) will be overwritten with  2nd row's 2ndt column value(May) &
    2nd row's 5th column value(aug) will be overwritten with  2nd row's 3rd column value(june) &
    2nd row's 6th column value(Sep) will be overwritten with  2nd row's 4th column value(July) &
    With rgds,
    Anil Kumar Sharma .P

  • Calculating MoM (Month-over-Month)

    I wrote the following script, but I am unable to validate it. I get the following error message; Error: 1012016 Cannot calculate dimension member [MoM] with restricted member [M01]. When I remove the Year Total from the Fix, then I'm getting another error message.
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    SET UPDATECALC OFF;
    SET AGGMISSG ON;
    /************* Calculate MoM, QoQ *************/
         FIX(&PriorYr, &CurYr, @RELATIVE("Year Total",0),
    @RELATIVE("Function Code",0), @RELATIVE("Entity",0), @RELATIVE("Line of Business",0),
    @RELATIVE("Local 1",0), @RELATIVE("Local 2",0), @RELATIVE("Scenario",0))
    "Mom"(
    IF (@ISMBR("M01"))
    "MoM" = (&CurMth) - (@MDSHIFT("M12",-1,Years,));
    ELSE
    "MoM" = @VAR(&CurMth, &PriorMth);
    ENDIF)
    ENDFIX

    OK, so in the Period dimension you are FIXing on the level-zero descendants of 'YearTotal' (which does not include MoM) and then attempting to calculate a member in the Period dimension that does not fall within that FIX. As the Error Message Reference says re the code you're getting:
    "The calculation script contained a calculation that tried to calculate a member after restricting the calculation to a different member in the same dimension."But regardless of why you're getting this specific error, I can't see how what I think you're trying to do is ever going to work with 'MoM' (your month-on-month movement) in the same dimension as the Periods. Think about what an Essbase retrieve looks like - how would you query 'MoM' for a specific Period? They're both members in the same dimension - any one cell in your retrieve can only relate to either 'MoM' or a specific period.
    Generally this type of functionality is achieved with a separate 'Analytic Dimension' that contains the variance members, often dynamically calculated.

  • Dynamic calculation of prior perod

    Hi all
    Please help me out in solving this issue
    In my quuery out put will be as follows
                            jun07    jul07    aug07  sep07
    quantity            45            50       60     70
    2m Offset quantity                          45        50
    Issue:
    for 2m offset quantity we need to take quantity value two months prior.
    Example For sep07 it should display value of Jul07.
    I tried eith variable offset values. but they are taking current perid and substracting 2 months.
    i need dynamic calculation for every month.
    thanks
    srteelatha

    Hi ,
    how are you getting the first 4 months? Is there one variable? Which one?
    Cornelia

  • How to do dynamic calculation on PDF Form

    Hi friends,
    I need to to create a invoice page using Adobe PDF dynamic Form.
    Business Requirement:-
    1. User will select predifined product, Quantity, Rate and Amount would be calculated. Tax would be calculated from the below data.
    2. I have a  tax table
        0      - 1000    2%
        1000 - 2000   5%
        3000 - 4000   7%
    Queries:-
    - how to write script to calculate Tax based on above tax table data?  How to ref. a table data?
    - how to write script keeping in mind about adding new percentage in future?
    Cheers,
    Victor

    The attached form will help you in understanding the dynamic calculations.
    Reading the table data with changes in the future..
    a) If your application is a standalone application, (means you distribute the .PDF file directly to the users instead of rendering the PDF based on request), then you may need to hard code the data inside the form itself. - In this case, if the table data changes, you need to change the PDF and re-distribute the form.
    b) If you are rendering the PDF on the fly based on the request, then you have the option of reading the data from the table (you need to do this in the parent application which is invoking the rendering process) and make it part of the input XML at the time of rendering. You need to write your code to read the XML and do the calculations for each request. - In this case, if the table data changes, PDF will get the latest information beacause the latest info is available in the input XML.
    Thanks
    Srini

  • Calculating prior months using off-set and crossing to prev year

    Gurus,
    I am getting current month period based on user entered value and calculating prior month by off-setting current month by 1.
    it works fine when current month value is greater than 1. If it is 1, prior month does get evaluated as 12 of previous year.
    Example...
    If Current period is - Feb, 2008 (02/2008). previous period comes fine as Jan, 2008.
    If current period is Jan, 2008 (01/2008) perious period is unknown. (I want it to be 12/2007).
    is there way to handle this without too much coding etc?
    Regards,
    -SM

    Mayank,
    What is SAP variable for Fical Year/Period, which will have both month and year value? (I guess I need to Fiscal posting period rather than Cal month?)
    Also what is SAP variable for Quarter/Year? I need to off-set of quarter also.
    Thanks, -SM

  • Transparent partition and Dynamic Calculation

    I've setup a target cube which collect the results from two different source cubes: one for historical data, the other one for the current period. I've put formulas on accounts in the target cube. Those formulas refer to both historical and current periods. Those accounts are also set in the source cubes as dynamic calculated. But even by setting them as stored members, the target dynamic calculated members do not take the precedence. How to solve this ? <BR><BR>Stéphane

    <blockquote>quote:<br><hr><i>Originally posted by: <b>stephane.huber</b></i><BR>I've setup a target cube which collect the results from two different source cubes: one for historical data, the other one for the current period. I've put formulas on accounts in the target cube. Those formulas refer to both historical and current periods. Those accounts are also set in the source cubes as dynamic calculated. But even by setting them as stored members, the target dynamic calculated members do not take the precedence. How to solve this ? <BR>Stéphane<hr></blockquote><BR><BR>Stéphane,<BR>The quickest solution is to modify your mapping so that all of the dynamic calcs are in the target partition. In other words, limit the scope of the accounts dimension in the partition so that none the dynamic calcs are in the source of the partition. This means making a subset of the accounts dimension that includes only those accounts with data and not those that are dynamically calculated.<BR><BR>If you have an accounts dimension with three members: COGS (loaded), Sales(Loaded), and Margin (dynamic calc: Sales - COGS), the source partition should only include COGS and Sales, not Margin, allowing the margin calculation to occur in the target cube.

  • I have monthly subscription app how can i know about who cancel subscription ? and how i can calculed the monthly revenue ?

    i have monthly subscription app how can i know about who cancel subscription ? and how i can calculed the monthly revenue ?

    Apple20141 wrote:
    Or open sim tray and find out the carrier ring the carrier and give them numbers on sim
    The carrier will not give out information about the owner of the phone.

  • Unknown calculation type [0] during the dynamic calculation

    Dear Experts,
    I've received the following error when I try to run a business rule (Run on save) attached to a data form:
    "Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled"
    Thanks in advance..

    Log into Oracle Support and have a read of
    "Error "1012703 Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled" During Calculation [ID 744529.1]"
    "Error: "Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled." [ID 593227.1]"
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Dynamic calculation of diff. beween various months values

    The requirement is: If the users input values for calmonths say, may'05 to aug'05, then the query will be able to calculate net value for four months (i.e it should be able to create 4 columns) and the diffence calculations from may'05(net value) - aug'05(net value) should be dynamic. Similarly, if it from say, june'05 to nov'05 then there will be six columns values dynamically and the diff bewteen values june'05 - nov'05 should be dynamic. How this can be achieved in BEX? Please give me some tips on this asap.

    Hi,
    You cannot achieve this directly.
    Though, you can get some kind of approach:
    Show all month in one columns and in another column – the difference between entered months. After clicking on calmonth (free char) you can get all individual columns for all month range, but difference calculated is wrong.
    So, applying and removing drilldown you can switch a report between individual columns for months and all month in one column and a difference.
    If this is suitable for you, I can provide more details.
    Without doing some coding in VBA, I quess it’s the best you can achieve in query designer.
    Best regards,
    Eugene

  • How to create a dynamic sum of month in webi

    Hello, i am afraid because i could realize easily a report in BEx and i don't arrived to do that in Webi (XI R2)....
    To simplify i want to do that:
    Month _____________| January_|  Feb_|_March_|_Apri_|_May_|_June_| ...
    Sales __________ ___|_10_____|_30__|_15___|_12___|_16___|_20__| ...
    sum of next 2 month |_55_____|_57__|_43___|_48___|_36___|_20__| ...
    The sum have to choose dynamically the month of the date (like a restrict ratio with an offset variable on the month).
    Thanks by advance for the answer!

    Have I missed something that the Adobe Bridge Output Module didn’t seem to offer a printing option?  Tried the older plug-in which is what I was familiar with, but that seems to download all the plug ins, not just contact sheets. Do I have to download the whole shebang?

  • Calc script for calculating current month data after loading

    Hi,
    I'm trying to write a script to do a calculation to all dimension after load current month data; it ran successfully but current month data is all zero; can someone tell me what i'm doing wrong?
    SET CACHE HIGH;
    SET UPDATECALC OFF;
    SET CALCPARALLEL 4;
    FIX (&CurMon, &CurYr)
    AGG (Sparse2, Sparse3, Sparse 4, Sparse 5, Sparse 6);
    ENDFIX
    Dense1 – Dynamic Calc
    Period: Dense – Dynamic Calc
    Year: Sparse – Dynamic Calc
    Sparse2 – Label Only
    Sparse3 – Label Only
    Sparse 4– Label Only
    Sparse5 – Label Only
    Sparse6 – Label Only
    Thanks!

    Natilie,
    If I understand you correctly, you are loading data, then clearing out the current month->current year, and then aggregating current month->current year? There isn't going to be any data there -- you've cleared it out in your second step.
    I think the order you want is:
    1) Clear out the current month->current year to be sure it's a good load
    2) Load the current month->current year
    3) Aggregate the current month->current year
    This could be done with a single Maxl that controls two calc scripts and one import database (clear, import, agg) or you could do it manually.
    The default calc is (generally) equivalent to CALC ALL using db properties (UPDATECALC, AGGMISSG, etc.). There shouldn't be practical difference between that and the AGG portion of your calc.
    I would again confirm that all of your data is at the lowest level, i.e., you can navigate to leaf level on all dimensions and pull a data value before you aggregate. Perhaps you are loading to upper level members and don't realize it. I often use the Excel add-in's Styles to tell me if I'm at the lowest level of a db or not.
    Regards,
    Cameron Lackpour

  • Dynamic calculations in a materialized view

    Hi,
    I have a problem. I created a materialized view which works perfectly. But now I need to perform some calculations with the data in my view . The view contains the working hours of employees who worked in different projects. Every project has a fixed amount of time (time_available) in which the employee has to finish the project. I aggregated the working hours to month for better presentation. What I want to accomplish here is a "simple" subtraction of "fixed amount for a project" minus "working hours" for the employee.
    The problem here is that some project have duration of more that just one month. Naturally all my values are in one tuple for every month. So when I have 3 month of working hours for a project my view looks like this:
    MV_Working_Hours:
    Project --- Time_Available --- DATE --- Employee --- Working Days
    Project A --- 50 Days --- 2011-05 --- Mr. A --- 15 Days
    Project A --- 50 Days --- 2011-06 --- Mr. A --- 16 Days
    Project A --- 50 Days --- 2011-07 --- Mr. A --- 16 Days
    What I want to do is to calculate the remaining days like this :
    Project --- Time_Available --- DATE --- Employee --- Working d in Month ---reaming days
    Project A --- 50 Days --- 2011-05 --- Mr. A --- 15 Days --- 35 Days
    Project A --- 50 Days --- 2011-06 --- Mr. A --- 16 Days --- 19 Days <--- I get here 34 which is for my need wrong !!!
    Project A --- 50 Days --- 2011-07 --- Mr. A --- 16 Days --- 3 Days
    Is there a way to realize this with "just" sql or do I have to use pl/sql in the OWB? I use the OWB version 11gR2
    thx

    For everybody who is confronted with the same problem I have - here is the solution: (thx to "spencer7593" and "Justin Cave" from StackOverflow)
    SUM( "Working Days" )
    OVER (PARTITION BY "Product", "Employee"
    ORDER BY "DATE"
    ROWS UNBOUNDED PRECEDING)
    and please check out the link from oracle for _"SQL for Analysis and Reporting"_: http://download.oracle.com/docs/cd/E14072_01/server.112/e10810/analysis.htm

  • Bex dynamic header problem

    Hi All,
    I have 2 problems..
    1) I have to print the vendor statement of account for 1 year. Now for each vendor the vendor code name and address comes followed by other columns of account information related to it. My requirement is that i want the vendor code name and address to appear in header line and then all other information for that vendor comes beneath it. Meaning the vendor name and address comes in 1st line , and from 2nd line all account information related to that vendor comes. then say on 60th line another vendor name and address comes...and from 61st line accoutn information of the 2nd vendor comes.
    How to do it???
    2) i want to ghet dynamic header in the bex report based on the iunformation filled in the selection option. Eg: if user entered a posting date then that posting date should appear in the report header.
    both these are urgent requirements....Plz help soon
    Thanks & regards
    Akash

    Hi , thanks for ur reply but the Report designer is not working , givng me error
    RFC destination NOT_CONFIGURED.
    The main problem is i have to display the name and address of Vendor in a separate row i.e. vendor name and address shud appear in the row and then in following rows the other details.
    Eg.
    11000 Shashi Kapoor  Jaipur         31.12.2006     doc no type etc
    12000 Kamla Verma    Mumbai      12.10.2006    doc no type etc
    Now final putput will be like
    11000
    Shashi Kapoor
    Jaipur
    31.12.2006    .................................
    12000
    Kamla Verma
    Mimbai
    12.10.2006.........................................
    Thanks .

  • Dynamic calculation of values at query runtime

    Hello, Everybody,
    I have situation in which I have calculate the value for characteristic at query runtime.
    Query is based on Infoset SEMPLDATA. In Infoset I have fields u201CEmployee IDu201D, u201CBirth dateu201D, u201CAgeu201D dedicated as virtual variable, u201CNumber of Employeesu201D.
    Then I execute query I enter a value for variable u201CDateu201D. After that query should calculate age for employee: for example ( variable u201CDateu201D u2013 u201CBirth dateu201D )/365. And query result is listed like this: u201CAgeu201D, u201CNumber of Employeesu201D.u201D Ageu201D is dynamic it depends on variable u201CDateu201D.
    Iu2019m doubting will virtual characteristic help me. Could you give your suggestions?
    Thanks in advance.
    Best Regards,
    Arunas Stonys

    Hey.  You can do this with a virtual characteristic.  I'm not fond of them because of performance, but it should work.  I am also assuming you have date of birth as an available field to do the calculation.
    So, you could implement code in the variable user exit.  After "Date" has been entered and the exit code is invoked you can pass that date to memory.  Something like export "date" to memory ID xxxxx.  I would create the memory ID object based on user ID running the query and date, or something like that.  Then when you are processing in the virtual characteristic user exit, just do an import from memory, referencing the same memory ID as when you exported.  Then you should be able to just do the date of birth - "date."  
    I have done this in the past to be able to retain user selection information for use in the virtual object calculations.
    Just thought I would add a bit more here.  You could also use formula variables based on your "Date" variable and "Date of birth" and do the calculation in a formula.  Not completely sure about your situation, but that's another idea.
    Hope this helps.
    Thanks
    Edited by: Siboda_Eric on May 12, 2010 4:21 PM

Maybe you are looking for

  • JDBC to Mail scenario with XSLT mapping

    Hi all, I am working on JDBC to Mail scenario. We have to pick the data from Oracle system and mail has to be sent with an attached Excel file. I am doing this scenario by using of following blog. eMail Report as Attachment (Excel/Word) I am getting

  • How can I get a VGA card to run anLCD

    I have a mac 2.66 quad core intel xeon with three graphics ports. I have been using an Apple 30" lcd which has worked fine. I just acquired a smaller apple LCD and plugged it in one of the extra ports. When you push the on button (lower rt side) the

  • Folio appears as blank gray page in DESKTOP Viewer

    Hello, I am working on OSX Mountain Lion 10.8.2 InDesign 8.0.1 (CS6) Adobe Air 3.5 Adobe Content Viewer.app 2.9 Recently I reformatted my hard drive to make a very clean install of OSX Mountain Lion. Then I installed the CS6 (Creative Cloud Suite). E

  • Jsp hosting web

    I'm looking for a true free server hosting jsp & mysql ? Thank's for your help

  • [Solved]nano regression?

    I admit that I wasn't paying attention enough to know when this happened, or it might be an issue with my config, but.... When I paste indented code into nano, it doesn't keep its format anymore. It used to look like this; text text text text text te