Set variable offset

Hello BI Experts,
There is a variable zfisc in the selection screen to select the fiscal year single value. Once I have that I have to present values for zfisc-1, zfisc,zfisc1, zfisc2.
How to do this ?
Appreciate your suggestions.
Regards,
BWer

Pankaj,
Thanks for the reply. Actually I have to include one more fiscal period ranging from current -1 to -6 and current +1 to +6 in the same column section. And below these fiscal year -1 to +2 and fiscal year period, there comes the keyfigures.
What you have suggested may work well if i had only fiscal year selection right ?
can i still take your approach. or is there any other approach.
Bhanu, AHP , Ravi, Anil , Eugene please suggest.
Thanks in advance
BWer

Similar Messages

  • Variable offset for date - a year ago

    I have this sales report with the following columns:
    1. Current Day Sales
    2. Month to Date Sales (this Year)
    3. Month to Date Sales (last Year)
    I'm using a range variable for 0CALDAY for column 2 (Month to Date Sales this year).  i'm having problem with column 3.  how is it possible such that the date is automatically assigned to last year's values?  using offset would mean -365, however, this may not work during leap years?
    please help

    Hi,
    Refer the 'Examples for using Variables' in 'Bex Query designer' of sap help..
    Examples for Offset Variables
    You want to use a query to carry out a comparison of two years.
    Year Comparison
    You want to compare the costs of a year of your choice with the costs of the previous year.
           1.      In the Query Designer, create a new structure and add a new Selection for each year that you require.
           2.      Only use one key figure (for example revenue) in this example query. Add this key figure to the filter or add it to the selection.
           3.      Use a characteristic value variable for the characteristic Calendar Year (0CALYEAR):
    Select the characteristic value variables for Calendar Year and, from the context menu (right mouse click), choose New Variables. The Variables Wizard appears.
    If you always want to reference to the current year automatically, use the SAP Exit variable 0CALYEAR (or as appropriate for another time characteristic).
           4.      Move the defined characteristic value variable into the selection.
           5.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
                                a.      Select the characteristic value variable and from the context menu, choose Enter Variable Offsets.
                                b.      Enter –1 as the offset and choose OK.
           6.      Choose OK.
           7.      Enter a description.
    Example: Use the name of the key figure, for example, revenue, for the name and use a text variable for the name of the calendar year. See Using Text Variables.
    When creating a new text variable, enter Replacement Path as the processing type, and choose calendar year 0CALYEAR as the characteristic with display as key.
           8.      Create a second selection with the same characteristic value variable and do not set an offset here.
    Also use a text variable in the description in this case.
           9.      Move the required characteristic into the rows.
       10.      Save the query.
    After execution, the query should appear as follows:
    Variable screen entry: 2002 (or no entry when using the SAP Exit Variable).
    Year Comparison
    A characteristic
    Revenue 2001
    Revenue 2002
    Value 1
    100.000
      90.000
    Value 2
    200.000
    180.000
    Value 3
    300.000
    400.000
    Comparison with Cumulative Previous Year Period
    For example: You want to compare the periods 1-8 of a particular year with the same periods for the previous year.
           1.      Create a new structure in the Query Designer and add a new Selection.
           2.      Move a key figure, for example, Revenue, into the selection.
           3.      Use a characteristic value variable for the characteristic Fiscal Year/Period (0FISCPER):
    Select the characteristic value variables for Fiscal Year/Period and from the context menu, choose New Variable. The Variables Wizard appears.
    Use the SAP Exit variable Current Fiscal Year/Period (0FPER) if you always want to reference to the current year.  If you set the variable as entry-ready in the Variable Editor, after executing the query, the variable screen then appears with which you can change the default values were necessary.
           4.      Move the characteristic value variable, such as OFPER, into the selection.
           5.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
           6.      Under Selection, choose Value Area and choose the tab page Variables.
           7.      Add the characteristic value variable, for example 0FPER, to the selection once again for the second value of the interval.
           8.      Select the characteristic value variable and from the context menu, choose Enter Variable Offsets.
                                a.      As an offset, enter -3 as the from value and 0 as the to value. Choose OK.
                                b.      Choose OK.
           9.      Enter a description, such as Revenue for current year.
       10.      Choose OK.
       11.      Select the selection and from the context menu, choose Copy and then Paste.
       12.      Now select the second selection and from the context menu, choose Edit.
       13.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
       14.      Select the characteristic value variable again and from the context menu (the right hand button), choose Enter Variable Offsets.
                                a.      As an offset, enter -15 as the from value and -12 as the to value. Choose OK.
                                b.      Choose OK.
       15.      Enter a description, for example Revenue for previous year.
    Also use a text variable in the description in this case.
       16.      Choose OK.
       17.      Move the required characteristic into the rows.
       18.      Save the query.
    After execution, the query should appear as follows:
    Variable screen entry: 01. 2002 to 08. 2002
    Comparison with Cumulative Previous Year Period
    A characteristic
    Revenue 01. – 08. 2001
    Revenue 01. – 08. 2002
    Value 1
    100.000
      90.000
    Value 2
    200.000
    180.000
    Value 3
    300.000
    400.000
    Two text variables replaced with characteristic values were used for the descriptions here. One is filled with the from-value for the column with an offset of 0 and a length of 3, the other filled with the to-value with an offset of 0 and a length of 7. You can find additional information under Example for Variable Replacement.
    Comparison of Cumulated Values for Two Years
    You may want to compare the cumulated values up to the current period of the current year with those of the previous year.
    For this example, use the variable 0FPER (current fiscal year period) and the variable 0P_FPER (your chosen fiscal year period). You use these two variables to set the interval limits.
           1.      In the Query Designer, create a structure with two selections:
    ¡        1. selection: Cumulative Amount for current year
    ¡        2. selection: Cumulative amount for previous year
           2.      With the first selection (cumulative amount for current year) , move the time characteristic 0FISCPER into the selection and select it.
           3.      Choose Restrict from the context menu (right mouse click).
           4.      Choose Value Area between as the selection and go to the tab page Variables.
           5.      Double click to choose the variable 0P_FPER as the from value and variable 0FPER as the to value. The result is an interval from the chosen period to the current period.
           6.      Define the second selection (cumulative amount for previous year) and proceed as for the first selection.
    ¡        Add the variable 0P_FPER as the from value and variable 0FPER as the to value here.
    ¡        Set an offset of –12 for both the from and the to values:
    Select the interval and from the context menu (right click), choose Enter Variable Offsets. Enter –12 for each.
    The result is an interval that has been moved 12 periods ahead.
           7.      Add the key figures and additional characteristics for the query.
    After executing the query, you get a variable screen for the variable 0P_FPER. You need to enter the start period in the current fiscal year.
    You can also suppress this entry by deactivating the indicator Entry-ready in the Variable Editor for the variable 0P_FPER and entering a default value (for example, 001.2001 for 2001). You only have to change this value once per year.
    You have now defined a query that compares the cumulative values for two years.
    The variables with SAP Exit delivered by SAP have the following behaviors:
    Variable 0FPER (current fiscal year period): Displays the values of the current fiscal year period.
    Variable 0P_FPER (any fiscal year period): Displays the values of any fiscal year period. You can set the fiscal year period in the variable screen when executing the query in any way you require.
    Variable 0FYTCFP (fiscal year up to current fiscal year period): Displays the values of the first period up to the current period of the current fiscal year.
    Variable 0FYTLFP (fiscal year up to previous fiscal year period): Displays the values of the first period up to the previous period (current period –1).
    You need to use the variables 0FPER and 0P_FPER in the above example for the comparison of cumulative values for two years.  When using the variables 0FYTCFP and 0FYTLFP, only values for one month are displayed for year transitions with an offset of –12.
    Regards,
    Prema

  • Variable Offsets for Weeks

    We have a custom created infoobject for fiscal week, which is basically week number within fiscal variant, fiscal year, and fiscal period. So fiscal period 1 contains weeks 1-4, period 2 contains weeks 5-8, etc.
    Our problem is in the use of variable offsets in query definitions. If we use 0FISCPER, BEx knows that the "-1 offset" for 2005001 is 2004012, not 2004999. Similarly, for 0CALWEEK, the week before 200501 is 200452, not 200499. So for our custom infoobject, how do tell BEx that the fiscal week before 200501 is 200452? Anyone know how we can set this up?
    Thanks in advance for any info you can provide.
    Rachel McGregor

    Yes, we figured we would probably need to do something in the user exit. We did not create the infoobject with reference to anything else since we added some custom attributes.
    What exactly should we do in the user exit? We want to create a structure with a whole bunch of selections for week number, week number-1, week number-2, week number-3, etc. all the way back to week number-104 (i.e. we want 2 years' worth), with a single prompt to the user for week number.
    Any suggestions?
    Rachel

  • Special Periods and Variable Offset

    Our fiscal year variant includes 12 periods and one special period (Period 13).  I created a rolling 12 month query which uses variable offsets to define each column.  If the user enters 3/2006, I would expect to see the next columns to show 2/2006, 1/2006, 13/2005, 12/2005....
    Instead the query ignores the special period and jumps directly from 1/2006 to 12/2005 - therefore the postings for Period 13, 2005 are not displayed.  From what I've found so far this is standard SAP BW functionality, but has anybody had any luck getting around this?
    Thank you.

    Jeff,
    If I enter 13/2005 into the leading column variable, I can see that there are transactions posted to Period 13 which are not included in the results of Period 12.  We have another query where the user can enter a period range using an interval variable for 0FISCPER (i.e. from Period 10/2005 to Period 2/2006) and it brings back results for Period 13/2005.  However this other query that uses the variable offset to define the rolling periods does not return the Period 13 results.  I thought about adding Period 13/2005 to Table T009B, but I would prefer not to set this up in BW without doing the same in R/3, and I'm not quite sure about the implications of adding an extra (not special) period to the Fiscal Year variant in R/3.
    Sven,
    I use 0FISCPER for posting period, and I created a structure for the twelve periods.  There is a variable (0P_FPER) for current posting period in the first column, and the rest of the columns use offsets to go back the 12 months.  For example the second column is (0P_FPER - 1), the third column is (0P_FPER - 2), etc.  It seems that my problem is related to the fact that the offset ignores the special periods, while the fiscal period interval variable recognizes these periods.
    Thanks very much to both of you for your replies!
    Janet

  • Variable offsets skipping periods with no data?

    Dear Bwers,
    I have variable offsets defined for 0FISCPER in a query where i put an offset  -6  (with less than or equal to) for getting a six month rolling. When i put 10/2007 in the query i see the result displaying 6 periods of data but some of the periods are  not within the prior six periods. It looks like it is skipping the periods that do not have data in them and instead picking up the periods that have data although they dont fall in the offset range. Any ideas whats happening?
    Thanks
    Raj

    Hi ,
    I think if u need the range then u will have set the variable between and take the range option where u can set the offset for a variable (lets say ZVAR)  :
    Offset will range select between VAR-6 TO VAR-0 then it will pick only 6 periods range ...
    Just check with this logic it will works
    Thanks,
    Debasish

  • Using Spry Data Set Variable in Recordset

    I have a page that contains a spry data set and a recordset. The recordset uses one of the variables from the spry data set to filter its results. how do I apply the spry data set variable to the recordset?

    I believe passing this the variable through the URL requires you to update the page, right?
    Yes
    Is there anyway to grab the spry data set variable direct and apply it to your recordset filter?
    The SpryDataSet variable can only be used on the clientside (JavaScript) so you will have to get your recordset using JS.
    A page refresh can be set in motion if you add {useCache: false, loadInterval: 500} to your dataset to then set an observer to your dataset to invoke the page refreash function.
    Gramps

  • OBIEE 10g - Can I use logical SQL to set variable?

    I am trying to set value of a session variable in the Advanced tab Prefix box of a request.
    Assigment of absolute value like this is working good:
    SET VARIABLE MYVAR=1;
    Can I set the variable using logical SQL? Something like:
    SET VARIABLE MYVAR = (SELECT table1.col1 from catname where table1.col2=1)
    Thanks in advance.

    Hi,
    You can create a session variable or dynamic variable in the RPD and try using it in here at the Advanced Tab prefix.
    But still check yourself if you need multiple values returning in the SQL statement.
    Hope this is helpful/ useful.
    Regards
    MuRam

  • Problem with variable offset for 0CALMONTH

    Hello Community,
    I have a problem with using variables offset for time characteristic 0CALMONTH
    Let's say my current query looks like this:
    ...................01.2006..........02.2006..........03.2006   (0CALMONTH)
    Sales ..............100..................125................200   (Keyfigure)
    What I want do now is to add a previous year comparison. So that it should look this way:
    ...................01.2006..........02.2006..........03.2006   (0CALMONTH)
    Sales ..............100..................125................200   (selected months)
    LY_Sales...........50..................100................100   (selected months - 12)
    (LY_Sales should show figures of 01.2005, 02.2005 and 03.2006 in this example)
    I used new selection for LY_Sales with variable offset for 0CALMONTH -12 but that didn't work. Figures in second line are zero. The desired figures would show up (if I expand the selected time intervall wide enough) in 01.2005, 02.2005 and 03.2005 but that's of course not what I want.
    Please help if you can!
    Regards,
    Ulrich

    Hi,
    We can get an an other way by using CELL editor caoncept.
    First create teh query like this:
    ...................01.2006..........02.2006........12.2006.....01.2005...02.20005...12.2005  Sales ..............100................125..............200.............50...........100.........100 
    Sales ..............100................125..............200.............50...........100.........100
    Then hide the 2005 years' kf:
    ...................01.2006..........02.2006........12.2006
      Sales ..............100................125..............200 
    Sales ..............100................125..............200
    Though the call editor concept overwrite the second rows(selection) content with hidden columns of second row(selection) one by one .i.e first cell of 2nd row will be overwritten by 13 th cell of second column.similarly second cell of 2nd row will be overwritten by 14 th cell of second column........
    First row(selection) : Cal year Charactertic with restriction 2006.
    second row(selection) : Cal year Charactertic with restriction 2005.
    With rgds,
    Anil Kumar Sharma .P

  • Variable Offset not working in BI 7.0

    Hi ,
    I am facing an issue with variable offsets in queries in BI 7.0.
    I created simple keyfigures with variable offset for fiscal year period with -1,-2,-3...etc to show different periods but I am getting 0 values for the same.
    Just to inform, we are on SAP GUI 7.10 and support pack 0.Are thre any issues in variable offsets with front end patch ?
    If so, pls let me know.Pls also let me know if we need to apply any notes to resolve this issue.
    Regards,
    Kumar

    Hi Joke,
    Thanks for ur reply. I just now downloaded and installing and after that I will test the variable offsets.
    Wond,
    Just to tell you that variable offsets are not also working in the web.Let me install this patch and try one more time...
    Regards,
    Kumar

  • Variable offset not working

    Hello Experts -
    I have a structure and a variable with single-value entry. The variable is on 0CALMONTH.
    If user input 06/2007, I wanted to see information for 06/2007, 05/2007, 04/2007. I'm using a variable offset. But my report output is always for 06/2007. I have data for 05/2007 and 04/2007 also.
    In the column header, it shows 04/2007, 05/2007 and 06/2007 but there's not data.
    Can someone please help me with this? What am I doing wrong?

    If you can see the offset result in header then it will surely work for data also.
    If u have a key figure amount.
    Then you need to restrict this figure for user inputed months variable - offset.  i.e different restricted figures for different months.
    I hope this is clear to you, if not then do let me know.
    Thanks
    Dipika

  • Need help with Different approaches to setting variables in a Flash movie in Adobe Flash CS3 Professional Version

    Hi,
    I'm using Adobe Flash CS3 Professional version of Flash
    software,
    I need help and guidance on
    Different approaches to setting variables in a Flash movie,
    what I should do in the fla file, and in the html file.
    Thanks, Gil

    Hi petro_jemes,
    Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
    I hope this helps.

  • ODI-SET VARIABLE IN PACKAGE

    HI.
    I am using odi11g.
    i set variable "STARTTIME" To sysdate .
    And "END_DATE" to a default value-- '20-JUNE-1981'.
    Now in package i dropped the variable "end_date",and put the TYPE to "SET VARIABLE" and the value as below:
    #VARIABLES_STARTTIME.[ The projects name is VARIABLES]
    But the value of "end-date" isnt getting reset to STARTTIME.
    should there be a different syntax.

    HI,
    Refresing the variable is working thanks.BUT i was trying to use the variable in a loop.
    Where when the package is run fo rthe 1'st time the variable 'LAST_UPDATE' value should be '20-JUNE-1981' and then it should get set to the value present in 'STARTTIME" for the next time the package is run.
    So, in this case, i need to set the value of the variable in the package itself.
    #VARIABLES.STARTTIME isnt getting set.
    i tried the package as per the below link:[ i use odi1g though]
    http://blogs.oracle.com/dataintegration/entry/using_variables_in_odi_the_tim

  • Variable Offset for Customer Exit??

    Hi,
    is it possible to have a variable offset for customer exit time variables?
    E.g. I have a variable current month but can I also create a one-year offset of that?
    In our system that doesn't work (but also the current month variable doesn't work...)
    thanks
    Sabine

    Hi,
    As it is mentioned by Mr.Voodi,it definately works.
    You only has given the answer for your problem .i.e you need to make sure the Customer exit variable is working proper.So take a look on the code used for it.
    With rgds,
    Anil Kumar Sharma .P

  • Variable Offsets are working only partially

    Hello experts, at first I thought that an offset I placed on a variable for 0FISCPER was not working. I am trying to do a report which gives me the value of couple of Key Figure "Earnings", for a certain Fiscal Period and this same Period but for the last year. That is (please consider each "/" as a blank space):
    ////////////              Earnings  //////////////////               Earnings
    ///////////           on FiscPer   ///////////        on LastFiscPer
    ///////////           (E.G. 01.2008)  ////////      (E.G. 01.2007)
    Char1 /////////         $       ////////////////////////////                      $
    Char2 ////////         $       /////////////////////////////                      $
    Char3 ///////         $        //////////////////////////////                     $
    I am using a variable that I created, which takes a user input. On Selection "Earnings on FiscPer" I placed the variable with no offset. On Selection "Earnings on LastFiscPer" I placed the same variable, with a -12 offset.
    The problem I have is that it is not working. The offset is not working, it just displays the value for the Fiscal Period given by the user, not last year's Fiscal Period. However, the funny thing is that if I place the offset as +12 and give as input las year's Fiscal Period, the offset works and displays the value for the next year's Fiscal Period. So the variable offset works only on one side, with possitive offset values. I have tried different approaches (some coming from other posts from this forum) but I cannot get the offset to work with negative values.
    How can I manage to get this to work? Any ideas?
    Edited by: Pedro Olvera on Apr 28, 2008 6:17 PM

    Hi Pedro,
    i will try to answer your questions:
    a) range of values instead of individual value for variables:
    -> if u use a range of values for one KF u will always get cumulated values for this range
    -> for example: 0FISCPER3 with range 001-016 and 0FISCYEAR 2008 -> u get the sum of all periods for year 2008
    Idea : i have a query where i have a KF with a range. I defined a solid start period (0FISCPER3) for example 001 and have an input ready variable for end period, called "Period to". Also u have input ready variable for 0FISCYEAR. This KF shows me the sum until the defined end period for a user defined year.
    b) 0FISCPER3 in lines or columns:
    IF u now drop 0FISCPER3 in free characteristics in query designer, u are able to do a breakdown in BEx Analyzer for 0FISCPER3 in lines or columns.
    Szenario:
    1) u have created your KF as i descriped in IDEA
    2) u have dropped 0FISCPER as free characteristics in query designer
    3) At BEx Analyzer u go to query properties -> put 0FISCPER3 in columns (-> maybe u change with properties display options for 0FISCPER to text -> it dispays for 0032008 -> Mar 2008)
    4) Press ok
    5)  Right click on your KF and choose "Add drill down according to" -> Choose "posting period" (0Fiscper3)
    6) Do a horizontal drilldown for posting period with drag and drop
    -> Now u have a drill down for posting period in your KF, but also for all other KF too
    -> To avoid this u can customize workbook settings
    1) Change to design mode
    2) open properties for analysis grid and disable display options for "Hierarchy icons"
    Another way is to delete the hierachy icon
    -> u now only see a drilldown with posting period for these KF u wanted to have a drilldown to.
    If u now only want to see posting periods which have values and disable all which have no values, u can activate zero suppression for lines and columns in query properties.
    Voila, u have a worbook which now shows for your KF all availble posting periods in one year without creating 16 monthly key figures. In addition u can change the inner year range of summation of period values
    Hope it helps
    Regards
    Edited by: Tobias on Apr 30, 2008 8:35 AM
    Edited by: Tobias on Apr 30, 2008 8:36 AM
    Edited by: Tobias on Apr 30, 2008 8:36 AM

  • Variable Offset for Fiscal Year Not Working

    Hello,
    My fiscal year variable offsets are not working. I have an input-ready query setup with 3 restricted key figures.
    1) Restricted by FY Variable 0P_FYEAR, 0VTYPE = 20, KF = 0QUANTITY
    2) Restricted by FY Variable 0P_FYEAR (variable offset -1), 0VTYPE = 20, KF =0QUANTITY
    3) Restricted by FY Variable 0P_FYEAR (Variable offset -2), 0VTYPE = 10, KF= 0QUANTITY
    I have in my filter selections Fiscal Year Variant = K4
    Rows have 0STKEYFIG
    Columns have 0FISCPER3 (Posting Period) and the 3 Restricted Key Figures.
    When I run the query, the offsets are not being accepted.  Only the selected FY variable.  The first and second restricted kfs show 2009 data and not 2009, 2008 as it should.  Has anyone else had issues with this?  I am not using 0FISCPER but 0FISCPER3 but I am not sure how that would make a differnce.
    I have created new variables, tried to do positive offsets, tried to include and exclude values int the filter to no avail.
    Thanks,
    Cherie

    I kept my variable offsets in the restricted key figure and they aren't working.  When I just put fiscal year in the column and put the 0P_FYEAR and 0P_FYEAR-1 I get the 2 columns and the offsets filter through just fine.  It seems to only be messing up when they are in the restricted key figures themselves.

Maybe you are looking for

  • 5.0.1 update... any noticeable differences?

    Has anyone noticed any obvious fixes or performance changes after the recent 5.0.1 Keynote update? Just wondering...

  • How to install windows XP on 600E?

    am doing friend's computer. how to make it boot on the cd-rom? what choices should i make? anything that i might do to have it install properly? thank you in advance.

  • IWeb '08 Album Issue

    I've placed the new IWeb '08 Albums page on my website (web.mac.com/geopence.) Yesterday it was working just fine, but today I accessed the site and both the "play slide show" and "subscribe" functions are no longer working. The "slide show", "subsci

  • ZEN 4 GB + SDHC APACER 16 GB (needed to be inserted when the ZEN is turned on)

    Hi there, after using the Cowon D2 i am quite shocked with the ZEN player, but have to solve some issues.... Some cannot be solves, like the copying via internal and external memory, "expension" of SD without player funcionality, some other bugs The?

  • Playlist folders keep opening

    I just installed iTunes version 11.1.2 on my Mac.  Since I have done that, my playlist folders keep opening up when I do a search for a song.  I have 225 playlists, and have them broken down into 5 folders -- playlists 1-50, 51-100,etc.  Normally, I