BEX Query: by selection of actual month/year also shows month/year-1

Hi
When I set the selection value 11.2010 or also 11/2010, as result of the Query I get the values for 11.2010 but I also receive 11.2009.
This also when I use the selection with 11/2010, I get also 11/2009 too.
Can someone tell me how I can set the query, that it will stick with my values and not add the previous year?
Thank you very much for your help.
Petra

Check whether the variable created for month year is a customer exit Variable.
In a customer exit variable the code can be written such as to bring the data from current year current month to the last year current month.

Similar Messages

  • Bex query- Dynamic selection of next 4 periods according to Month drilldown

    Dear All.
    I am working in BI 7.0.
    I want to do a report which shows Begining inventories and Forecast. The report will be drill down by Year/month which filters Begining inventory. For Forecast, I would liek to see 5 months of forecast in 5 different colums, starting from the month of begining inventory.
    As an example:
    Month     FORECAST1 FORECAST2 FORECAST3 FORECAST4 FORECAST5                    
    01.2009     01.2009     02.2009     03.2009     04.2009     05.2009
    02.2009     02.2009     03.2009     04.2009     05.2009     06.2009
    03.2009     03.2009     04.2009     05.2009     06.2009     07.2009
    04.2009     04.2009     05.2009     06.2009     07.2009     08.2009
    The colums month is the drill down of Year/Month characterisitic. The values on forecast represent the selection of period for each column for the forecast data.
    How could I build this? Is there any way to do this?
    Thanks a lot and best regards,
    Alfonso.

    This report is similar to YTD report I hope. But this will have to be done the hard way only. Why not consider like this..
    Your Existing Query O/p:
    >Month FORECAST1 FORECAST2 FORECAST3 FORECAST4 FORECAST5
    >01.2009 01.2009 02.2009 03.2009 04.2009 05.2009
    >02.2009 02.2009 03.2009 04.2009 05.2009 06.2009
    >03.2009 03.2009 04.2009 05.2009 06.2009 07.2009
    >04.2009 04.2009 05.2009 06.2009 07.2009 08.2009
    Trial Solution 1 : Considering you enter a particular Month-Year (say Jan 2009), you'll get the data like this, best way is to think in SWAP Axis approach. Helps when most reports looks terribly difficult to move on. Considering you create a 0CALMONTH varibale X, then you need to add X1, X2 and so on.
    O/p:
    >MonthForcst | 01.2009 | 02.2009 | 03.2009 | 04.2009 *** This can be done by using VARIABLES. Create 0CALMONTH Variables
    >FORECAST1 | 01.2009  | 02.2009 | 03.2009 | 04.2009  |
    >FORECAST2 | 02.2009 | 03.2009  | 04.2009  | 05.2009 | 
    >FORECAST3 | 03.2009 | 04.2009  | 05.2009  | 06.2009 |
    >FORECAST4 | 04.2009 | 05.2009 | 06.2009 | 07.2009 | 
    >FORECAST5 | 05.2009 | 06.2009 | 07.2009 | 08.2009|
    Trial Solution 2 : User Customer Exits. Design a exit which will populate each Month's data (Note: Here data is aggregated on basis of Month you have assigned). For particular HEADING (i.e. 'MonthForcst' you need, plan your variables by using multiple inputs for which all month you need.) If you need any help in Customer Exit for this kind of solution, I'll attach a sample code as here on request. This is the best way, as you can always transfer data through the exit.
    Example. If you want to select Apr`09, as month selection will vary through the year - You need to get the values for selected period to end of year. Then, design it so that choosing Apr`09, system will gather data for 2009 & based on availiablity of data it must populate the MONTHS/Forecast directly.

  • Group by month, and also show months with no records

    hi - having a major mental block this morning, pretty sure this is an easy one so just need one of you expert types to point me in the right direction..
    Using the sample data below, I just need to generate a report to show userid, mon-yy, count of transactions. I need to show the full 12 months, so with a zero if there's no transactions.
    I'm not sure if this is the right approach but I'm using a subquery to generate the 12 months, as obvisouly they're not in the transaction data. The fact I have to to_char against the subquery kind of set alarm bells ringing though, I think there's a better solution but as I say, mental block.
    The query at the end was to show the subquery thing works, but for the life of me I can't think today how to extend this to include the userid and give me the desired result (bottom code block).
    Frustrating when this should be relatively simple!?!
    thanks in advance all :o)
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    create table trans (pkid number, userid number, transdate date);
    insert into trans values (1, 10, sysdate-300);
    insert into trans values (2, 10, sysdate-100);
    insert into trans values (3, 20, sysdate-100);
    insert into trans values (4, 20, sysdate-50);
    insert into trans values (5, 20, sysdate-20);
    commit;
    select * from trans;
          PKID     USERID TRANSDATE
             1         10 05-AUG-10
             2         10 21-FEB-11
             3         20 21-FEB-11
             4         20 12-APR-11
             5         20 12-MAY-11
    select sub.mon, count(t.transdate) from trans t,
    (select to_char(add_months(sysdate, -level),'MON-YY') as mon
    from dual
    connect by level <=12) sub
    where sub.mon = to_char(transdate(+),'MON-YY')
    group by sub.mon
    order by to_date(sub.mon,'MON-YY')
    MON    COUNT(T.TRANSDATE)
    JUN-10                  0
    JUL-10                  0
    AUG-10                  1
    SEP-10                  0
    OCT-10                  0
    NOV-10                  0
    DEC-10                  0
    JAN-11                  0
    FEB-11                  2
    MAR-11                  0
    APR-11                  1
    MAY-11                  1
    12 rows selected.Desired:
    10  JUN-10  0
    10  JUL-10  0
    10  AUG-10  1
    ...and so on until...
    10  MAY-11  0
    20  JUN-10  0
    20  JUL-10  0
    20  AUG-10  0
    ...and so on until...
    20  FEB-11  1
    20  MAR-11  0
    20  APR-11  1
    20  MAY-11  1

    Hi,
    That's what a Partitioned Outer Join does:
    select        sub.mon
    ,        count (t.transdate)
    from        (
              select      to_char ( add_months (sysdate, -level)
                        , 'MON-YY'
                        ) as mon
              from      dual
              connect by      level      <= 12
           ) sub
    left outer join trans     t     PARTITION BY (t.userid)
                        ON      sub.mon = to_char (transdate,'MON-YY')
    group by  t.userid
    ,       sub.mon
    order by  t.userid
    ,       to_date (sub.mon,'MON-YY')
    ;A regular outer join guarantees that you'll get each row from the driving table displayed at least once. But you want each row from sub displayed n times, where n is the number of distinct userids found in t. "PARTITION BY t.userid" means "treat each distinct value of userid as a separate table", and the results will all be UNIONed together.
    Partitioned outer joins were new in Oracle 10. Before that, you had to form a result set of the distinct values of userid, then cross-join that with the distinct months from sub, and finally outer-join that to the real data.

  • Bex Query calc key figures in Crystal report not showing technical names.

    Hi,
    I have created calculated key figures in a BEx query for which the data comes from a SAP BW cube. I have assigned each of the calculated key figures a proper technical name which I expect to see when I bring it to crystal report. When I bring that query in Crystal as a data source the calculated key figures show a wier network id names instead of the technical names. I am having a problem in using those wierd technical name in my report and my formula's as I am not able to identify what is what.
    Please urgent help requested.
    Thanks
    Mahendra

    I dont have an account on such website. I will explain u the problem in detail.
    When I create a calculate key figure in SAP BEx query designer I assigned a technical name to it, a meaningful one. In my case one such example is Actual_revenue is the name that i have assigned and the description is Actual revenue. When I create a crystal report from it and in that report if i create a formula.
    I get this {ZIC_COPA_Z_SALES.[Measures]-[25V1KYL4VE92X0T4OMHVYM90V]}
    If u see it its a wier 25 digit name.
    Instead of this I want to see
    {ZIC_COPA_Z_SALES.[Measures]-[ACTUAL_REVENUE]} which is what I have given in the query. I am using the SAP BW MDX driver to connect to Bex query.

  • Totals in BEx query not matching with actual total

    Hi,
    We have one report in BI, the total for few columns (Given by BI system i.e system generated) for the values of the key figures is not matching with actual total of that values...
    I am confused to see, how sap BI can do the totaling mistake...
    Please suggest and help....
    Thanks,
    Nitika

    Hi
    Please check following things
    1. Check key figure aggregation properties, how it is defined, it might have been defined as Avg, Last,first value or it might using exceptional aggregates.
    2. Double check your process of validation between cube and bex report for totals.
    Thanks
    Raghu.

  • Bex query. Select single values in variable time out.

    I have created a variable on characteristic 0profit_ctr which works fine for all queries on all Infoproviders except for one.  With this particular Infoprovider, which is a DSO when the option to show u201CSingle Valuesu201D is selected in the variable screen the query just hangs and eventually time-outs. I have tried including the DSO in a mult-provider but still have the same issue. The variable works on other DSOu2019s with exactly the same settings. This DSO has less data than the other DSOu2019s which work fine.
    I know that 0profit_ctr is compounded with 0co_area which I have tried restricting with no change in the result.
    I would be grateful of any ideas.
    Thanks
    Jenny

    Hi Durgesh.
    I checked the settings and although they were the same as other infoproviders I changed the query filter value to use the values in the master data table and this has solved my problem.
    Thanks for your tip.
    Regards
    Jenny

  • Doubt on Rows and Coloums in BEx Query Designer.

    Hello, Experts.
    I have a Doubt in BEx Query Designer.
    In the Rows I have a Fiscal year Period,  if the user enters the Fiscal year period for e.g. : 001/2006  .  
    in the columns i have  forecast for the Fiscal year period which user entered ( 001/2006 ),   and we have another column pervious ( Prior )fiscal year period ( 001/2005 ). 
    My Questions is ,  as we are Restricting with 001/2006 will the query retrieve the values of 2005 or not?
    Thanks in Advance .
    Sharp

    yes i am  Doing Offest.
    I moved this Fiscal year Period to Free char,   and i Restricted with Pervious Fical Year period and Fical year period .  it worked.  but
    when i kept this in Rows and deleted Previous Fiscal Year period .  it is displaying blanks.   in prior years forecast.
    is it because i am Ristricting it to only fical year period  which user entered
             Colums-->  Forcast ( User Entered year )          Prior year
    Rows
    Fiscal year period
      Fiscal year period( user enterd )
    Thanks

  • How to Hide the Column Heading of BEx Query Output

    Hi Experts,
    I Designed  BEx Query for BO Xcelsius, at the time of showing Bex Report in  Xcelsius
    it is displaying the like
                 Calday           01.01.2010      02.01.2010.............
    Plant     keyfigure
    P1        Plan                 10                         9
    P1        Actual               8                          5
    P2        Plan                 12                          6
    P2        Actual               9                          4
    we need display without  keyfigure - row like follwing ( when we run report on analyzer it showing without  keyfigure - row,but problem is when we Run in web)
    Plant     Calday           01.01.2010      02.01.2010.............
    P1        Plan                 10                         9
    P1        Actual               8                          5
    P2        Plan                 12                          6
    P2        Actual               9                          4
    Or with out Header Row
    P1        Plan                 10                         9
    P1        Actual               8                          5
    P2        Plan                 12                          6
    P2        Actual               9                          4
    How can we achive this
    In Bex query design
    Rows - Plant, Key figures - Actual,Plan
    Column - 0Calday
    Thanks,
    Chandra

    We do not have any direct setting in BEx to do it. You can write a VB macro code in BEx to achieve this.

  • Problem with bex query listing sales "this month" and "same month last year

    Hi,
    I've created a query in BW BEx, where I have a mandatory variable for 0calmonth, and I list 0material and sales (in volume, liter). And I have a restricted key figure giving me sales (volume in liter) restricted with 0calmonth = variable - 12, to give me the sale for the same month the user select, previous year.
    This seems to be working, the sum is correct, but when adding up the number for the sales in the month previous year, the numbers does not fit the sum in the end.
    I think the report only lists materials with sales the month selected in the variable, if a material has not been sold that month, but in the same month last year, it's not listed in the reports, but it's added in the sum in the end.
    Example.
    We have three records like this:
    material - calmonth - volume
    101 - 01.2010 - 5
    101 - 01.2011 - 8
    201 - 01.2010 - 7
    The report will give the following (calmonth variable = 01.2011)
    Material - volume this month - volume same month last year
    101 - 8 - 5
    Sum 8 - 12
    Any way to solve this issue? We noticed because we run BO - Webi on top of the BEx query, and BO sum's the values per material, and in webi the report would give us the sum 8 and 5.
    Any input is appreciated.
    Regards,
    Øystein

    Hi,
    thanks for your reply.
    The error is that the report only seems to list materials that has been sold "this month", and if the same material was sold the same month last year, it will also list the volume for this.
    But if the material is only sold in the same month last year, it's not listed in the report, but it's calculated into the sum at the end.
    The report is listing material, which is why the error presents itself, as you said
    Getting 8 minus 12 is correct unless you drill down by material. In that case, it should be 8 minus 5 and 0 minus 7.
    The row with 0 - 7 is not shown, and my guess is that the report will only list materials that has sales this month (which has been selected in the variable)
    Regards,
    Øystein
    Edited by: Oystein Gundersen on Mar 21, 2011 4:36 PM

  • Bex Query report error in cal month /year column

    Hi Experts,
    We have a bex query on virtual provider with only one column in it i.e 'cal year / month'( This virtual provider ahs been created from planning area). I'm having the problem with this column.
    In the excel output of this report the cal year /month is displaying as follows.
    01/0000 02/0000 03/0000 04/0000 05/0000 06/0000 07/0000 08/0000 09/0000 08/2008 09/2008 10/2008 11/2008 12/2008 01/2009 02/2009 03/2009 04/2009 05/2009 03/2010 04/2010 05/2010 06/2010 07/2010 08/2010 09/2010 10/2010 11/2010 12/2010 01/2011 02/2011 03/2011 04/2011 05/2011 06/2011 07/2011 08/2011 09/2011 10/2011 11/2011 12/2011 01/2012 02/2012 03/2012 04/2012 05/2012 06/2012 07/2012 08/2012
    I'm not getting why the first 9 columns its displaying as 01/0000 02/0000 03/0000 04/0000 05/0000 06/0000 07/0000 08/0000 09/0000 .
    It should display as
    08/2008 09/2008 10/2008 11/2008 12/2008 01/2009 02/2009 03/2009 04/2009 05/2009
    06/2009 07/2009 08/2009 09/2009 10/2009 11/2009 12/2009 01/2010 02/2010 03/2010 04/2010 05/2010 06/2010 07/2010 08/2010 09/2010 10/2010 11/2010 12/2010 01/2011 02/2011 03/2011 04/2011 05/2011 06/2011 07/2011 08/2011 09/2011 10/2011 11/2011 12/2011 01/2012 02/2012 03/2012 04/2012 05/2012 06/2012 07/2012 08/2012
    My data source is fetching the correct data including this cal year/ month.
    Thanks in advance for your help.
    Regards,
    Brahma Reddy

    I assume you are running Crystal for enterprise 4.0 SP02 Patch 08 !!
    According to OSS note 1651521 , This issue has been fixed in FP3 which is planned to be released in first quarter of 2012 !!!!!! ouch !!!!! 
    I am facing same issue , Pls let me know if you already solved it.
    Regards,
    Miraj Desai.
    Edited by: Anne Howard on Nov 29, 2011 6:58 AM

  • Bex Query which uses Dynamic columns to display actuals

    Hi Bex experts,
    I have a query issue/question.
    I currently have a Bex query which shows me the the planned values for each period, spanning 6 years into the future. My Key figure columns are defined as follows:
    Value type  = '020'
    Version  = mandatory variable, entered at execution.
    Posting period (FISCPER3)  = These columns are fixed values using periods 1 to 12 for each column.
    Fiscal year (0FISCYEAR) = Each column contains SAP exit for current year, and using the offset +1, +2, +3, +4 etc, when I define the future years coulmns.
    Currency = fixed 'USD'.
    Fiscal year variant = fixed 'Z4'
    The above works fine for plan data.
    I want to now include is:
    Seperate 'Dynamic columns' to show only actuals for period ranges from period one to the previous period (or current period minus 1). Each period should have it's own column for actuals.
    The dynamic actuals columns should be grouped together to the left of the plan columns.
    Actuals are only for current year, so I will still use the SAP EXIT for current year in the column definition.
    Example: If I am currently in period 10, the query should show me actuals from period 1 to period 9 in seperate columns, then continue to show me my plan values columns that I have in place already.
    How can I construct these actuals columns in to my existing query. If you have possible screens shots.
    Thanks, and maximum points will be alotted.

    The way I have approached this you may not like as it involves quite a bit of coding
    12 CKFs
    each CKF adds up 2 RKFs
    So 24 RKFs
    example Column 6 CKF
    Adds Column 6 RKF Actual and Column 6 RKF Plan
    Column 6 RKF Actual contains Actual version + key figure + Period variable column 6 Actual
    Column 6 RKF Plan contains Plan version + key figure + Period Variable column 6 Plan
    Period variable column 6 Actual
    is a cmod variable which reads the entered date
    if the period of entered date is LE 6
    then return period 6 into "Period variable column 6 Actual"
    else put 0 into "Period variable column 6 Actual"
    Period variable column 6 Plan
    is a cmod variable which reads the entered date
    if the period of entered date is LE 6
    then return period 0 into "Period variable column 6 Plan"
    else put 6 into "Period variable column 6 Plan"
    Now what happens is that if you enter period 6 in your selection screen all the Actuals of columns greater than 6 all have period 0 put into their selection so return 0 and all the columns less than or equal to 6 return the values for the fiscal period (ie column 1 gets period 1)
    And in addition all the Plans columns return the value of their column ie for their period for those greater than 6 and for those less than 6 they all return 0
    It's convulted - but you get the idea - and yes it works
    There may be a better way to do it - and I am open to suggestions
    (this does assume that NOTHING is posted to period 0 otherwise it won't work)

  • Bex Query - Months & Weeks

    I want to create a graph in Bex Wad that shows key figures in Months & Weeks. Can this be done? For example in my graph I want the previous 6 months of key figures but for future key figures (it's forecast data) I want to show it in weekly time buckets. At the moment I have it in my head that I have the key figures as rows on a query and the calweek as the column. This will display the data for the time period I filter in on in weeks. How do I then introduce the previous months so I can then do the graph?

    Hi Joel.
    You need to use a structure for your time buckets to achieve this, because as you noticed, you can't show months when the object you have in the columns is weeks.
    So you need to know how far back and how far ahead in time you are going to go with this query/graph. You then have to create a selection in a structure for each of the required time buckets. The easiest will probably be if you can convince the user that the total time horizon is always based on the current date, because then you can use exit variables for your historic months based on the system date and likewise for your future weeks. If the user wants to input fx a week, it becomes more tricky, because some weeks belong to 2 different months and so you would need to know if the offset in time should be based on the start of the chosen week or the end.
    If you can get away with changing the requirement a little so that the historic months are not actually months but based on say 4 week intervals, you can do without exit variables and just use the regular offset functionality on variable for weeks.
    Good luck!
    Jacob

  • Constant Selection in BEx Query Designer on BI7

    Hi guys
    According to this blog <a href="/people/prakash.darji/blog/2006/09/19/the-hidden-secret-of-constant-selection Selection</a>, we can create constant selection on both Characteristics and Key figures. I understand how to do it with restricted key figures.
    Can anyone give me a step by step guide on how to create constant selection for a Characteristic in BEx Query Designer on BI7. I can't find options for 'constant selection'
    Or is this the same thing when you include or exclude values?
    Message was edited by:
            jimi ogun

    Thanks Krishna
    I am actually using a Multiprovider for my queries but business requirements mean I need to create joins.
    I am trying to avoid Infosets and I believe another way is to use the Constant Selection feature in Query Designer.
    Going back to my previous posting, I know how this is done with a restricted KF but I don't know how when it comes to characteristics.
    Can anyone help?

  • Variable Selections in BEx Query Variants

    I am trying to save a variant for a BEx query that uses a floating date range.  I want the date range to move with the calendar.  I r/3 this is done with the variable selection.  In BW 3.5, I don't see how this is possible.  I only see options for TVARVC which are user exit selections.  Can someone point me in the right direction.
    Regards,
    Kevin B

    Hi Kevin
    Your requirment is that date range should move with calendar (ex. In first week , the date range should be from 1 to 7 of the current month & in  second week the date range should be from 1 to 15 of current month) ...if it is like this then you can go ahead with - create a variable and do the coding with sydatum (system date ) and embed the required logic. But if your requirement is completely random then you can not use this.
    Hope this helps
    Regards
    Pradip
    (Rewarding points is the way of saying thanks on SDN !!)

  • OLAP Universes - Based on BEx Query - Month and Previous Month Functions

    Hi,
      I created a Universe based on SAP BEx queries and I like to create a filter so that I use in Web Intelligence report to run for "Previous Month" data always. There are "Date" filelds in BEx Query(No Month info only date data). I have no knowledge of SAP BEx Queries and new to OLAP universes. Could you help.
    How to create filter that show Previous Month.
    Nanda Kishore
    Edited by: Nanda Kishore B on Dec 26, 2010 6:15 AM

    The easiest way  (but NOT the most efficient one) is to create a local variable (Dimension) in your report with the following code:
    =if (Month(CurrentDate())=1 AND Month([[MyDate]])=12 AND Year([[MyDate]])=(Year(CurrentDate())-1)) OR (Month(CurrentDate())>1 AND   Month([[MyDate]])=(Month(CurrentDate())-1)) then 1 else 0
    where MyDate is the field from your query containing the data information
    Activate the report filter area in your report design panel by pressing the Report filter icon and drag and drop your variable there and apply it to the entire report. Filter value 1 and you will get the data for the previous month.
    Keep in mind that this approach is not optimal especially if you do have many rows of data delivered to your WebI report because filtering takes place only AFTER the data is retrieved. The Best practice here is to work with BEx variables.
    How many rows of data does your WebI report normally fetches?
    Regards,
    Stratos

Maybe you are looking for

  • Error while processing a response

    Hi, i have the next error while my class is processing the response. The error is: java.lang.NoSuchMethodError at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWe bflowServlet.java:214) at javax.servlet.http.HttpServlet.se

  • Logic Express 8 glitches with Mountain Lion - will I lose stuff if I re-install?

    I use Logic Express 8, but it has been acting up since I upgraded my iMac from Leopard through Snow Leopard to Mountain Lion. The sliders for navigating around my song projects are not working properly, which makes it difficult to zoom in on details.

  • ECC quotation creation through CRM 2007

    Hi Gurus, I am trying to created ECC quotation in CRM 2007. The RFC integration between ECC and CRM has been done. Once the opportunity is created, then follow up document is created (ECC quotation).At the time of creation of ECC quotation through CR

  • Downloaded Items Freezing Causing a Hard Shutdown of PC

    I am having difficulty watching anything I may have downloaded because my screen is changing to a striped view and stops completely causing me to do a hard shutdown of my pc. I went through the problem with Dell and they believe it is an issue with I

  • Hide/show dock no longer works

    Out of the blue, the dock has gone wonky. I have always had it set to hide/show, without problems. Now mousing over the bottom of the screen doesn't bring up the dock anymore. Even CMD-OPT D doesn't make the dock show its face, so I have to leave hid