Using YTD in BEx

Hi,
Fairly new to BEx. I'm trying to create a query that has the columns of Total and YTD and rows that show the past 3 years. My Total is being pulled directly from my multiprovider--so no issues. My YTD column is a restriction of this Total field, it is supposed to show the year to date total for each year (say if it's march then jan-march for 2011, 2010, 2009, etc). I have created this restriction by saying it should show values between the variables for first period of the year and enter fiscal period/year. My issue is that I am only getting results in the YTD column for the current year. I have tried setting an offset on the variable, but it is not working.
Any suggestions?

If you use variables on Fiscal Year Period, then the query would restrict to the year that the users enters for that variable. So you will not get any data for the two prior years that you are trying to get data for.
It will be lot simpler if you have Fiscal Year and Posting Period available in your MultiProvider. Then you can create variable for just posting period only and that will give you your desired result. I have done that for my YTD as well as trailing twelve month calculations. Works great.
Good Luck.
MP.

Similar Messages

  • How can i use Button in BEx  7.0

    Dear Folks,
    Could you help me please ..
    In BI 7.0, for BEx analyzer i see we can use button, combo box, analysis grid.
    If i have a requirement like this:
    1. I have sales report, where it has information about sales person.
    2. And i want to filter that report with the sales person that i choose from combo box.
    For that requirement, i tried to :
    1. I Create a query to Sales info-provider for displaying sales.
    2. I Create a query to either to MD Sales person / Sales info-provider in order to get Sales persons data.
    3. I assign point no 1 to Analysis Grid.
    4. I assign point no 2 to Combo box.
    My questions are:
    a. Is my techniques correct ??
    b. How can i use button to execute filter into the corresponding report ???
    c. Is there any tutorial regarding this ?? Could you share it to me please ..
    Really need your guidances..
    regards,
    Niel..

    Hi Niel,
    You can use the method you specified.
    In Bex Analyzer you have design mode where you can have the following items Button, Analysis Grid and Combo box.
    To work with the button you need to use the Command Wizard which consists of pre-defined functions, out of those select the one which suits your requirement and supply the parameters. As it is done thorugh a Wizard it would be easy to do.
    Also,
    The Button Name displays the name of the button, which is generated automatically and is unique. This name is used on the BEx Analyzer Design Toolbar menu to refer to a particular instance of the button.
    · Range u2013 Manipulate coordinates for a cell or cells in this field to move or resize the button.
    · Button Text - The text (caption) you want to display on the button. You can use this to describe the command the button executes.
    · Command Range (optional) - Specify a three-column range of cells in the worksheet that contains command parameters. In these cells, you provide the same parameters (Name, Index, and Value) as in the Static Parameters, but in the worksheet these can be variable, changing during
    navigation based on query results or on a value you manually specify.
    Button in Bex analyzer
    Regards,
    Neelesh Jain.

  • What is the use of transporting BEx query to production from development ?

    Hi !
    if create a query by copying an existing query and make some modification in production and sent it to client..and client is happy as it satisfies all his requirement .
    Then what is the use of creating Bex query in development and transport it in quality and then to production if we can create directly in production ?

    Hi,
    There is something called as SOX compliance..and three system landscape.
    First of all you are not suppose to make changes to standard qeuries.
    You can give it to the client a new copied query wirth required changes and it is very much accepted as well but how will it be tracked for future support.
    Suppose there is a change in the underlying cube...this will affect all the queries and the new copied query which no one knows about will be affected too.How will you test it if its workinf fine with the new flow.
    If you want to do the testing in production as well.... then you are not following SAP guidelines and may be you are violating the contract signed by you and your client.
    Thanks
    Ajeet

  • Can system use 7.0 AA while using 3.5 BEx Analyzer?

    Hi Experts,
    I seek your help here. I understand that there is a setting in SPRO that controls what security is being checked in BW system i.e. old 3.5 security or new 7.0 Analysis Auth security. Until, we explicitly set this setting to use new BW 7.0 AA, system checks access restriction against 3.5 roles & auth. This happens even when you are using 7.0 BEx Analyzer to run queries and workbooks. This scenario is not supported but still it works.
    Once we change the setting in SPRO, and move to 7.0 AA security, system starts checking access restriction against 7.0 AA.
    My question is, does this hold true even when we are using 3.5 BEx Analyzer?
    Regards,
    Purvang

    Hi Purvang,
    In BI 7.0, you can enable the analysis authorizations either from SPRO settings, or using transaction code RSCUSTV23.
    The authorization mode should be set to Current procedure with Analysis Authorizations, if you wish to enable AA.
    However, BEx basically check what authorization mode is set. If you are using BEx 3.5 with Analysis authorizations enabled, it will still check for the authorization restrictions at the InfoObject level.
    Viceversa, if the AA mode is disabled and set to "Obsolete concept with RSR Authorization objects", the Analysis authorizations will not be checked, even though you use the latest version of BEx.
    Hope this clarifies!!
    Best Regards,
    Raghu

  • How to use YTD values in webi

    hi
    normally in bex we can use variable , based on user entry we can calculate YTD values, and we will make structure like in column or rows.
    how to make ytd values in webi and create structures.

    HI,
    this needs to be done using EXIT Variables in the BEx Query.
    Ingo

  • BPC 7.5NW SP8 PERIODIC APP–EVDRE TOTALS USING YTD MEASURE ARE INCORRECT

    Hello u2013
    I have 4 application sets with periodic applications in which all measures are set up exactly the same in BPC 7.5 NW SP8. Time in each of the appsets includes months, quarters, seasons and year. Measures include Periodic, QTD, STD, YTD and Rolling12. All measures work correctly with the exception of one application in which the YTD measure is summing incorrectly. This issue exists in both the DEV and PROD environments for this application.
    The Time dimension is maintained using fiscal years. The fiscal yearu2019s months run from February -> January. Time uses the same setup in all 4 appsets.
    The following steps have been taken in an attempt to fix this issue:
    1.     Verified the Time dimension hierarchy and levels are set up correctly
    2.     Cleared client cache
    3.     Deleted Time dimension .xls, .xlt and .xml files from the BW and re-processed the dimension
    4.     Ran light and full optimizations
    5.     Verified the formula in the BW for this app is the same as the formula in the other apps
    6.     Refreshed client-side dimension files
    7.     Used the How-to-guide u201CHow to Maintain Measure Dimension for BPCu201D and verified the UJA_FORMULA_APP table and UJA_API_DATA_CHECKER function module are maintained automatically and no missing entry messages exist
    8.     Deleted the PARENTH1 hierarchy from the Time dimension, processed, added the hierarchy back into the member sheet and re-processed
    9.     Updated application description and modified application
    Has anyone else had this problem? Any assistance in resolving this issue will be most appreciated.
    Thanks,
    Carrie
    YTD Measure Formula:
    MEMBER [MEASURES].[YTD] AS 'IIF([%ACCT_TRANS%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",SUM(PERIODSTODATE([%TIME%].[LEVEL00], [%TIME%].CURRENTMEMBER),-[MEASURES].[/CPMB/SDATA]),IIF([%ACCT_TRANS%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIME%].[LEVEL00], [%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),IIF([%ACCT_TRANS%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%TIME%].[LEVEL03])),IIF([%ACCT_TRANS%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",-([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%TIME%].[LEVEL03])),-[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3
    *EVDRE RESULTS     *
    MONTH         YTD     
    FY2010 FEB     128,790,195      
    FY2010 MAR     214,054,796      
    FY2010 APR     63,828,203      
    FY2010 MAY     445,898,233      
    FY2010 JUN     377,079,009      
    FY2010 JUL     288,502,058      
    FY2010 AUG     517,947,504      
    FY2010 SEP     678,612,886      
    FY2010 OCT     593,190,135      
    FY2010 NOV     879,439,971      
    FY2010 DEC     784,580,667      
    FY2010 JAN     949,300,083      
    FY2010 TOTAL     949,300,083      
    TIME DIMENSION                 
    ID     PARENTH1     LEVEL     MONTHNUM     TIMEID
    2010.FEB     2010.Q1     MONTH     1     20100100
    2010.MAR     2010.Q1     MONTH     2     20100200
    2010.APR     2010.Q1     MONTH     3     20100300
    2010.MAY     2010.Q2     MONTH     4     20100400
    2010.JUN     2010.Q2     MONTH     5     20100500
    2010.JUL     2010.Q2     MONTH     6     20100600
    2010.AUG     2010.Q3     MONTH     7     20100700
    2010.SEP     2010.Q3     MONTH     8     20100800
    2010.OCT     2010.Q3     MONTH     9     20100900
    2010.NOV     2010.Q4     MONTH     10     20101000
    2010.DEC     2010.Q4     MONTH     11     20101100
    2011.JAN     2010.Q4     MONTH     12     20101200
    2010.Q1     2010.STD1     QUARTER     3     10000001
    2010.Q2     2010.STD1     QUARTER     6     10000002
    2010.Q3     2010.STD2     QUARTER     9     10000003
    2010.Q4     2010.STD2     QUARTER     12     10000004
    2010.STD1     2010.TOTAL           6     10000005
    2010.STD2     2010.TOTAL           12     10000006
    2010.TOTAL           YEAR     12     10000007

    Hi Carrie,
    Your configuration looks OK to me. Can you provide us the output of the same EVDRE using the Periodic measure? Also, have you raised a customer message with SAP?
    Ethan

  • How to buld Crystal report using data from Bex query

    Hi,
    I have requirment where the end user wants the query in Crystal.I built a Bex query in Bex query designer.I would like to know how to create crystal report based onthe Bex query.
    Thanks,
    Chandra

    Hi Chandra,
    Here is the docuemnt which explains you in detail about the steps to create Cyrstal Report using BEX Query.
    https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/004aacbb-4983-2b10-8da7-cdff5dcbb948&overridelayout=true
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    Regards
    SIndhu

  • Taking display value for calculations using structures in Bex query

    Hi
    I am using Bex analyzer to do a simple report with two key figures ‘Sales’ and ‘Plans’ from cube and two more calculated key figures ‘Abs Deviation’ and ‘% error’. The report displays at category and product levels. Category is higher and one category contains multiple products.
    The simple formulas for the two calculated KF are,
    1. Abs Deviation = Abs (Sales – Plans).
    Abs Deviation is set with the property Calculate result as ‘summation’ to add up Abs deviations at product level to show at Category level.
    2. % Error = Abs Deviation / Plan.
    The issue is with the % Error value at category level. At product level, all the values are showing correctly.
    To illustrate the issue with a simple test case,
    CategryProductSale-PlanAbs Dev----%Error
    C1--P1--100-60---40--
    67%
    C1--P2---50120---70--
    58%
    C1 Total--150180---110--
    17%
    Observe that in the output the calculation for ‘%Error’ at product level is correct all the way. But the summary
    calculation for ‘Error%’ i.e. C1 total which is showing as 17% is wrong. The correct value as per the formula should be 110/180 = 61%.
    SAP, through OSS replied that it is not a bug but the default behavior of OLAP calculation. OLAP processor first calculates the formula for % Error and then shows the display value at C1 total for Abs Dev. Meaning, ‘% Error’ is calculated first and next the summation for Abs dev is displayed. Abs dev 110 at C1 level is only a display value but not the value taken for % Error at C1 level. Instead OLAP calculates the Abs Dev at C1 level by Total sale – Total plan = 180 – 150 = 30 and the % Error calculation takes this 30 value in the formula and gives % Error = 30/180 * 100 = 17% at C1 level. But 17% doesn't make any sense to the user. Further, to display value of 61% at % Error at C1, it is being advised that by defining two structures, I can force the calculation to take display value of 110 in the % Error calculation at C1 level by using the cell editor.
    Has any body tried to achieve similar result as above by defining two structures and cell editor in the query? If so, can you please throw some pointers of how to define two structures in a query and how to force the % Error at category level to take the display value of 110 in the calculation? I have gone through the documentaion on structures and cell editor but the approach is not at all clear.
    Thanks in advance for your suggestions.
    Prasad
    Unilever Asia IT department

    Hi,
    Have u read aabout the Formula Collision.
    Take a look on this link .
    http://help.sap.com/saphelp_bw32/helpdata/en/d2/02223c5f00612be10000000a11402f/frameset.htm
    Read the Formula Collision, and let us know , whether your pb is solved by changing the Formula Collision of % error formula.
    With rgds,
    Anil Kumar Sharma .P
    Kindly assign points , If it really helps you.

  • WebI Report using YTD expression causes MDDataSetBW.GetCellData error

    Hello everyone
    We are using BusinessObjects XI 3.1 FP 1.8 on OS AIX 5.3 and we are obtaining information from SAP BI 7.0 Patch Level 19. We are using the Integration Kit for SAP Solutions.
    We are developing a report in which we are trying to create a Year to Date cumulative ratio in a universe connected to a BI multiprovider, we are using the next expression:
    <EXPRESSION>SUM(YTD(@Select(RatiosNúmero de Equipos Instalados)))</EXPRESSION>
    When we check the integrity and grammar in the universe is  OK.
    But if we export the universe and try to use the variable in the WebIntelligence report, we got the next error:
    u201CAn error in the database was produced. The database error text is: Error of MDDataSetBW.GetCellData. (WIS 10901)u201D
    Thanks in advance for your help!
    Edited by: Azucena de los Angeles Coronel Castañeda on Oct 8, 2009 11:00 AM

    Hi,
    whats the exepcted data volume ?
    how may elements did you include into the Web Intelligence Query Panel ?
    Ingo

  • Using alternative(anonymous) bex service for web app in portal

    We are trying to create a situation where certain web applications that will be rendered in the portal use an anonymus logon as opposed to the standard /sap/bew/bex service. We still wnat to use the standard service for the great majority of the time. However, we have special cases where we want all users to be able to view results of some very specific web applications.
    We have created a new service (ZBEXA) by copying the std bex service and entering anonymous logon informatoin. For the most part, this is working fine.
    However, we cannot seem to get this working thru the portal without 'hardcoding' the new bex service as part of the URL iview. (i.e. http://..../sap/bw/ZBEXA?....
    We do not want to do this, as we want to be able to trnaposrt these iviews between systems. Thus, we want to create them as BW Report iviews (or BEx web application ivews) and use the web aplication query sting in the form of "CMD=LDOC&TEMPLATE_ID=Zxxxxxxxx", thus making it possible to transport this to other portal environments.
    We have tried creating a new 'system' in the portal for the BW instance and changing the WAS path to /spa/bw/zbexa, but this does not change the behavior. Seems the system always wants to use std bex service.
    Any ideas?
    BTW - we are on NW2004s EP (sp8?) and BW3.5.

    Brad,
    I am trying to do bypass the login for a web template by programming the ZBEX web service with a logon and password and it is not working for me. If you are still using a solution like that, post a reply and I can ask specific questions.
    Thanks
    Vineet

  • Calculation of YTD in BEx for the user input

    Hi All,
    We have a requirement to show the YTD values in the report, Please see the discription below about the requirement.
    Month, Char1, Char2, ZAMT
    2011/01, C1, C2, 70
    2011/05, C1, C2, 10
    2011/06, C1, C2, 20
    User Input : Month in Range
    Input is from 2011/05 to 2011/06 then the output should display as
    Month, Char1, Char2, ZAMT, YTD
    2011/05, C1, C2, 10, 80(Sum of ZAMT from 2011/01 to 2011/05)
    2011/06, C1, C2, 20, 100(Sum of ZAMT from 2011/01 to 2011/06)
    YTD is year to date,
    If you look at the data in the top for ZAMT, it is the sum of YTD data in the 2nd table. Please help me to acheive this logic in Bex Query Designer
    Thanks and Regards,
    AVK

    HI,
    You drag the keyfigure ZAMT into coloums, create new formula,
    in formula editor you just keep ZAMT, and for that formula you go for cummulative option.
    Regards,
    Ranganath.

  • Query help: using ytd hours earned to calcuate hours accrued each month

    We’d like to calculate the hours accrued per month for each employee on both sick and vacation leaves between January and June. (EmployeeID 002 just started in April).
    We only know the year-to-date hours earned for each employee and hours accrued each month could vary. We can use the lag function to calculate the hours earned for every other month, except for the beginning month (please see the column named monthly_earned_using_lag_function, where the monthly_earned data are missing for 001 on January and for 002 on April. Is there any way that we can include the hours accrued for the beginning month? The final result we expect to achieve can be seen from the column named monthly_earned_with_correct_result.
    Bunched of thanks to your advice in advance.
    The sql we used looks like this:
    Select id, plan, month, ytd_hours_earned, ytd_hours_earned –lag( ytd_hours_earned) over (partition by id, plan order by id, plan, month) as monthly_earned_using_lag_function from leaves
    id   plan         month     ytd_hours_earned       monthly_earned_using_lag_function       monthly_earned_with_correct_result
    001     sick             01             8                                                                                          8
    001     sick             02             16                         8                                                             8
    001     sick             03             22.5                          6.5                                                          6.5
    001     sick             04             28                        5.5                                                          5.5
    001     sick             05             34                             8                                                             8
    001     sick             06             43                             9                                                             9
    001     vacation     01             14                                                                                      14
    001     vacation     02             28                           14                                                           14
    001     vacation     03             42                           14                                                           14
    001     vacation     04             56                           14                                                           14
    001     vacation     05             70.5                       14.5                                                         14.5
    001     vacation     06             85.5                   15                                                            15
    002     sick             04             8                                                                                                   8
    002     sick             05             16                             8                                                             8
    002     sick             06             24                             8                                                             8
    002     vacation     04             10                                                                                      10
    002     vacation     05             20                           10                                                           10
    002     vacation     06             30                           10                                                           10

    Hi,
    You can use LAG for that. The optional 3rd argument to LAG is the value to return in case there is no prior row.
    SELECT    id
    ,       plan
    ,       month
    ,       ytd_hours_earned
    ,       ytd_hours_earned – LAG (ytd_hours_earned)
                                     OVER ( PARTITION BY  id
                                    ,           plan
                                    ORDER BY          month
                                  ) AS monthly_earned_using_lag
    ,       ytd_hours_earned – LAG (ytd_hours_earned, 1, 0)                -- ***** NOTE 3rd argument *****
                                     OVER ( PARTITION BY  id
                                    ,           plan
                                    ORDER BY          month
                                  ) AS monthly_earned_correct
    FROM      leaves
    ORDER BY  id
    ,            plan
    ,       month
    ;By the way, there's no point in ORDERing BY an expression that's in the PARTITION BY clause. If you say "PARTTIION BY id", then two rows will be compared with each other only if they have the same id, so they will always tie when you ORDER BY id.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • Error using variables in BEx

    Hi experts
    We use NW 04s BI SP09 and NW 04s EP SP09. We have made two queries that work fine. We have tested them in RSRT and the variables (both have customer exits and manual input) are filled. They work fine if we run them in our portal one by one. If we put one of the queries in a web template it still works fine. The problem occurs when we put two or more queries (with customer exits in both queries) into one template and use the variable screen. If we don’t use the variable screen (VARIABLE_SCREEN = OFF) the error don’t occur. I pasted a typical error message we get below (using variable screen).  The error message is displayed after the variable screen has been filled out (0P_KAYD2) and checked. 
    Specify a value for variable 0P_KEYD2
    Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    System error in program SAPSRRK0 and form APPEND_KHANDLE_1-02- (see long text)
    Log ID: 0003BA0F39140062000007F200004B9A0004233B75B61056
    Initial cause
    Message:
    Termination message sent ERROR BRAIN (629): Specify a value for variable 0P_KEYD2  MSGV1: 0P_KEYD2ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION  MSGV1: SAPMSSY1  MSGV3: UNCAUGHT_EXCEPTION
    Does anyone have the same problem?
    Kind regards
    Erik

    Yes, we are getting the same issue.  Check out thread Error while executing query on portal-SAPMSSY1 method : UNCAUGHT_EXCEPTION
    On my current project, the SAP team member said the fix would also be coming in Support Pack 11 at the end of Dec 2006.

  • Subject: Where are SAP Exit Variables and how to use them in Bex Query

    I have seen references to variables:  0cyear (Current Year), 0CALYEAR (current year), oCALMONTH (Current month/year).
    Under 0CALMONTH characteristic or 0CALYEAR I do not see any of the variables, so how does
    one use these variable in the query. For example I want to create a restricted key figure:  Duration restricted by Current calendar year (e.g.  2009 if I am in 2009, 2010 if I am in 2010..).

    Thanks a lot. Actally, I was looking in my production system and under varaiables I did not find any SAP Exit variables,
    but in development envrionment I do see some.
    Why will it not show me these variables in production? Is it because:
    1. Some special premssion is required to view this type of variable
    or
    2. THese varaiables were not installed from Business Content
    It is hard for me to beleive, it is permission issue.

  • Where-Used list for BEx query chars & KFs

    Hello everyone.  I am trying to find a way to identify what Characteristics and Key Figures are used withing an infocube in BW.  I think that the BW Statistics cubes may help, but that was going to be my fallback option. 
    I couldn't find a way to do a where-used list for characteristic and key figures when in the Query Designer.  I can do a where-used on restricted key figures and char. variables.
    Does anyone know of other ways to do this.  How about looking in some of the core BW DB Tables (eg. RS*)?
    Thanks,
    Kevin

    Oh my, I just realized that I typed in my question wrong.  I am sorry.  That's what I get for doing this during a long meeting!
    Here's the right question (I double-checked this time):
    I am trying to find what queries contain some specific chars & KFs.
    So you are exactly right that the previous suggestion for using RSD1 would work to find what infocubes they are used in.
    Sorry for the confusion.
    Kevin

Maybe you are looking for

  • How do I call a sub vi and have the window appear in a certain location that I specify?

    I have a vi that will be used to control a robot. I am using a sub vi that is a sort of joystick-drag the mouse to move the robot. This pops up as a dialog when the user moves the mouse over a graph, but it appears in the middle of the screen. I want

  • SAP system copy error

    Hi Experts, I am currently facing an issue/error while doing a homogeneous system copy with SAP NW 7.4 (SAP ERP 6.0 Ehp7) servers. Both source and target systems are test/demo servers and system copy procedure needs to be established as a part of imp

  • Label Data view in the material master

    Hi all, I read this SAP help portal that said "The Label Data view in the material master allows you to display or  edit label data that is specific to the material. ".. may I know where I can find this view in the material master? Thanks Karen

  • Mac Book Pro-- Xtremely Slow

    Recently my computer has been really slow. It takes ages to laod up something. I have had this comp for about 3 years now. Pls help me.

  • Two Mail Error Msgs: Message Can't Be Saved/Drafts & Invalid Text Encoding

    My Mail was working fine until just recently. Now when I am replying or composing emails, out of the blue, in the middle of typing my message, I will get this error message first: "This message can't be saved to the Drafts mailbox." After closing tha