Dynamic filter on last 13 months ?

Hello,
i've read some threads about this but not sure they can fit my requirments
BO XI 3.1 SP2 FP 2.6 on SAP BW 7.01 SP5
my requirements:
-having an dynamic filter (condition) on my fiscal periods which filter on the last 13 full loaded monthes depending on the day we are (refreshing date)
- this filter must be optional (does not concern all reports built on the universe)
- no prompt : if i have a prompt , the report cannot be scheduled or can be schedule but prompt must be updated each month => no way
- if i use a Sap customer exit declared as an optional variable (for my requirement N°2), the variable gives the 13 fiscal period interval as default values and transfer default values to BO reports . We have seen that if we remove default values in BO prompt (optional prompt) default values stays in BEX queries and the report is filtered anyway...
I know how to do that when i built reports and universe on RDBMS database but in OLAP?
please advise
Many thanks in advance,

Hi,
I am not sure if this would satisfy all your requirement- but the way to build dynamic filters against OLAP universe  is to create predefined filters with the appropriate MDX expressions.
The regular syntax is
<FILTER EXPRESSION="IIF([Measures].[Quantity] = 2000, 1, 0)">
. You can check the OLAP universe best practices guide for more samples.
Edited by: ramaks on Apr 14, 2010 3:44 PM

Similar Messages

  • Dynamic filter by Country, month and year

    Hi,
    I have a file extracted from SAP BI and incrusted in xls format in Xcelsius.
    I have to filter data by Country, year, and month.  I´ve seen the blog of Ingo Hilgefort 'Creating an Xcelsius dashboard on top of SAP BI that has a similar expanation of what I need to do. 
    Unfortunatelly, the problem I ´m facing is how to organize the data including the months in the spreadsheet incrusted in the Xcelsius.
    What I have at the moment in the spreadsheet is a column with countries (9),  an one column by KPI (10).  Beside the last column I have the inserted data column for the countries so in the dashboard I can pick a country and shows me the KPI´s by country.  What I still don´t found is how to make the selection also by month and year.
    If anyone could help, I would be grateful.
    Thanks in advance,
    Diego

    Charles,
    It seems to be what i´m looking for.  It is perfect to see the KPI´s by country and month in a year.
    But with that spreadcheet i still cannot choose only the KPI´S year values by countries (independently of the month).
    Another question I would like to make to you (as i told you i´m making my first steps in Xcelsius) is if you write the formula =BUSCARV($C$7;$C$17:$G$23;5;FALSO) manually into the excel.
    Thanks in advance,
    Diego

  • Fill Interactive report Filter function with the last month

    Version: APEX 4.1
    Functions: Interactive Reports - Filter
    Image: http://i.imgur.com/tG7si.png
    http://i.imgur.com/UCoZ5.png
    Is it possible to have a button when click would filter the last month of whatever the current date is. (Without making a 2nd interactive report)

    Hi,
    I went quickly over this:
    http://anthonyrayner.blogspot.com/2008/07/dynamic-date-filtering-in-interactive.html
    This should help. it shows you how to prepare the URL of the wanted report. and you can choose button action Redirect to URL.
    There is more ... give me one minute :)
    Ok.. This is what you need:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDDDFBF
    Regards,
    Fateh
    Edited by: Fateh on Jun 15, 2012 11:17 AM

  • Dynamic Variable for last day of month

    Hi all,
    I have created one report where in YTD is calculated based on stsyem date. NOw in this report the cal month is in row thus displaying data month wise. But i need one key figure which giving the last day vaue of every month that are displayed in YTD i.e this is based on cal day. Thus the report layout is as follows:
    if report is run in mar 2007 then it should display:
    calmonth            key figure due amount
    Jan 07                this should show due value on last day of jan 07 (i.e 31st jan 07)
    Feb 07               this should show due value on last day of feb 07 (i.e 28th feb 07)
    Mar 07               this should show due value on last day of mar 07(i.e 31st mar 07)
    customer exit variable can give me only one value at a time. How can I make it dynamic to take last day value of every month as per cal month. Could anybody explain me if worked on any such issue.
    If there is some how to paper kindly mail me at my email Id : [email protected]
    thanks in advance
    Regards,
    Wrushali

    Hi,
    We can assign multiple single values to the customer exit.
    So in the Query take CALMONTH in rows.
    And take your KF in column with Customer exit variable restriction on CALDAY.
    So in the code of this Cusotmer exit varible, from the Current date find out the year of the current date and then assign those 12 required days to this variable.
    With rgds,
    Anil Kumar Sharma .P

  • How to get current month and last month dynamically??

    how to get current month and last month dynamically
    like
    month = getCurrentMonth();
    lastmonth = getcurrentMonth() -1;
    please help
    thanks

    hi :-)
    /* depracated but can be still useful */
    java.util.Date dtCurrent = new java.util.Date();
    int month = dtCurrent.getMonth();
    int lastmonth = dtCurrent.getMonth() - 1;
    System.out.println("* " + month);
    System.out.println("* " + lastmonth);
    /* better to use this one */
    Calendar cal = new GregorianCalendar();     
    int imonth = cal.get(Calendar.MONTH);
    int ilastmonth = cal.get(Calendar.MONTH) - 1;
    System.out.println("*** " + imonth);
    System.out.println("*** " + ilastmonth);
    regards,

  • Fetch last month's data

    Version:10gR2
    I want all records created last month. The following query includes records created on October 2009, 2008,.... But i want the records created only this year.
    select * from dba_users where to_Char(created,'MM') = to_char(sysdate,'mm')-1I can't add a hardcoded year filter like
    AND to_char(created,'YYYY') = 2010The year filter should be dynamic.

    Hi,
    As Dombrooks said, don't convert from one data type to another if you don't have to.
    When run during November 2010, the solution Dombrooks posted
    select  *
    from    dba_users
    where   created >= trunc (sysdate, 'MM') - 1
    ;will find created dates on or after October 31, 2010.
    If you want created dates from October 1, 2010 through October 31, 2010, then use:
    SELECT  *
    FROM    dba_users
    WHERE   created >= ADD_MONTHS (TRUNC (SYSDATE, 'MM'), -1)
    AND     created <              TRUNC (SYSDATE, 'MM')
    ;

  • Dynamic selection of Calendar month/year

    I need to create a dynamic combo for calendar month/year, which will display the last 3 months.
    I have a query that displays the cumulated amounts for the last three months and I need to have a combo with the option to filter the query for only one of these months...
    How can I do that in Visual Composer?
    Thanks in advance,
    Cris

    Hi Cris,
    The simplest way is to create a service that's returns the correct month and use it as dynamic list for the drop-down.
    Hope it helps,
    Shay

  • Modelling "Last Month" figures in a Calculation View

    I am trying to create a Calc View to provide data for a report which for every slice of data should show some "this month" and "last month" data. My approach so far is to have a (graphical) Calc View which does Union of "this month" data (referred further as M) with basically the same data set (let's call it M1) where I only replace calendar month with another "calmonth1" column (I'm on SPS02 which doesn't have addmonth function yet, so had to make a Join with a month lookup table here).
    That approach works mostly fine -- I get the data for this and last month, and performance is reasonable. Except when I specifically filter the testing SQL query by Calendar Month: then the runtime jumps from 0.5 sec to 9 seconds!
    I have been able to narrow the issue down to the Union statement, where my two data sets have different fields (M.calmonth and M1.calmonth1) united in the resulting field U.calmonth. So, I guess, when I apply the filter to the field U.calmonth (effectively), the system cannot derive the corresponding values of M1.calmonth1 to cascade the filter down to dataset M, and tries to extract everything into M1, then does the Union with M, then selects what's right.
    The same thing actually happens with a Projection, which indicates the issue is not in Uniting results from two data sets but exactly with deriving "reversed selections".
    I went through HANA manuals, and the only related hint there was to have a JOIN ALL on key fields instead of a Union. I'm keeping it as a last resort, as I want to avoid scripting due to high maintenance effort.
    I would be grateful to hear about alternative designs. Thanks!

    Roman,
    You can push down your current month and last month logic into Analytical view.
    In Time Attribute view, create two claculated measure for calender month. You can build this using "NOW" function, left functions. Once you have current month create last month leveraging current month and casting (current month -1)
    Once you have these two calculated attribute ready in your Time attribute view. Bring it to Analytical view and using "if then" function you can calculate measures for Current Month and Last Month.
    This will improve performance as it avoids jumps between various engine.
    Thanks

  • PPS dynamic filter creation - not your normal thing but we need a solution, dont think Performance Point can handle it!

    My challenge at the moment is that I need to create a dynamic filter. To explain this is a cascading filter but not your normal cascading filter,
    ie, Year/Month/day etc.
    Here we have a single Dimension, Organisation. It contains every level of a business,
    Site,
    Dept, 
    Company name,
    Division
    Holding
    Strategic Area
    From these as a default we have 4 built hierarchies with a different combination of the above.
    Activity (Strategic Area, Dept)
    Organisation (company Name, site, Dept)
    Sites (Division, Site)
    Holdings(Holding, Strategic Area, site, Dept)
    At any given time we have have additional Hierarchies created within the Dimension, further adding to the hierarchy list.
    We now have a challenge where we require our users to be able to in the first filter select the Hierarchy they want to use, ie, Holdings, Site, Organisation
    or Activity. This should then cascade to the second filter and contain the relevant hierarchy and levels as a multi select filter. Of course this also needs to be connected to number of graphs, charts and scorecards on the page, dynamically. 
    I have gone around the houses to get this to work but not having any luck. Tried the variety of filters available, MDX, member selection, tabular,
    SharePoint, and attempted to mix and match to get this to work. I cannot find a way but I don't believe this is not possible.
    If it is not possible we must look around for another front end solution for our BI Dashboards which I would prefer to avoid. Any response or suggestion
    would be much appreciated.
    Regards,
    Sheb

    Hi Sheb,
    Please check the articles below and see if cascading filter in PerformancePoint Dashboard can be help:
    http://technet.microsoft.com/en-us/library/hh272541(v=office.15).aspx
    http://www.dotnetcurry.com/showarticle.aspx?ID=872
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Routine to capture last month data

    Hello Frnds,
    For a Dataload from the datasource Actual Cost Component Split(0CO_PC_ACT_10), we want to capture last month data ,
    we are planning to write a routine in infopackage level,
    using the option 6-ABAP routine, to select the last month data ,
    we have the time characteristics 0FISCPER, At present we managing the load by manually changing the selection for last month every time ,
    It would be a great help if anybody can show a sample code to select last month data,
    Thanks,
    saty

    If 'last month data' for you is equivalent to 'actual month data', post this code (corrected) into your IPACK dynamic selection:
    DATA: zyear type /BI0/OIFISCYEAR,
    ______zperiod type /BI0/OIFISCPER3,
    ______zfiscper type /BI0/OIFISCPER.
    CLEAR: zyear,
    _______Zperiod,
    _______zfiscper.
    MOVE sy-datum+0(4) to zyear.
    MOVE sy-datum+4(2) to zperiod.
    concatenate  zyear zperiod into zfiscper.
    l_t_range-iobjnm = '0FISCPER'.
        l_t_range-fieldname = '/BI0/FISCPER'.
        l_t_range-sign = 'I'.
        l_t_range-option = 'EQ'.
        l_t_range-low  = zfiscper.
        l_t_range-high = zfiscper.
        APPEND l_t_range.
    Message was edited by: Claudio Caforio

  • How to get the sales value of the last month in the quarter

    Hi,
    We have a requirement to get the "Sales" value against a quarter. We have 2 tables "Time" and "Sales". We want to display the Sales value against each quarter.
    But this should happen as follows.
    Consider quarter Q1 it should display the value of 3rd month, Q2 should display value for 6th month and so on..
    If in any particular Quarter we dont have a value for last month then it should display the value for 2nd month, if 2nd month value is also not present then it should display 1st month sales value.
    We are using excel as the database.
    Please let us know if anybody has a resolution to this.
    Regards,
    Apoorv Chitre

    hi,make an other column which will be the flag for the last months you want to be displayed...
    so ,in reports,you pass it as hidden column(by filter only the ones which have the appropriate flag),and then voila...
    i hope i helped
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • Dynamic calc to sum months across years

    I have an Essbase 6.5.5 cube with a periods dimension containing months and weeks as stored members, tagged as time. I also have a year dimension that contains fiscal years and these members are also stored. I need to add together the first month of this year and the last month of last year.
    I can do this:
    M12->LY + M01->TY
    This gives me the right answer and I could setup IF statements to cross dim to the correct LY value, but I would like the formula to dynamically select the correct LY based on the TY year the user sets up in their query. I tried a few combos using @prior and @shift and it is not working correctly.
    Here's what I thought would work:
    M01 + (@SHIFT(Year,-1));
    This formula results in summing just the M01 and nothing from LY. Any thoughts on how to set this formula up?
    Edited by: user11908498 on Sep 16, 2009 5:55 AM
    Edited by: user11908498 on Sep 16, 2009 11:42 AM

    My mistake Gary, the periods dimension is tagged as time and contains months and weeks as stored members. The year dimension contains fiscal years as stored members. I have updated my OP to state that correctly.
    Using your formula:
    "M01" + @SHIFT("M12", -1, @CHILDREN("Year"));
    I'm still just getting the answer of the data contained in M01.
    M12 is in the period dimension tagged as time.
    Year is the fiscal year dimension as a stored member.
    What I want to get is the sum of M01->TY + M12->LY without hard coding the year in a cross dim statement. It seems like this should be a simple formula, but its not working for me.

  • Dynamic Filter in Web Intelligence

    Hi!!!
    I need help about one issue. Let me explain my problem:
    I have a webi report, this report contain the sales by day. The problem is that my variable of day contains values from current month, last month and month of las year. Example:
    01.04.2010
    01.3.2011
    01.04.2011
    02.04.2010
    02.03.2011
    02.04.2011
    My variable of day has this behavior because i need to compare the sales of current month vs las month and current month of last year.
    The measure that has the sales is database delegated.
    In other view of my report, i need to show only the sales of current month, but when in my webi report filter the sales with the condition "is not null" (to hide the information about last year and last month) the intersaction between day and sales show me the following message:
                         01.04.2011
    Sales:      #NOT AVAILABLE
    I really need to reach this behavior, but i dont know how to do to work my filter.
    Someone can help me please?????
    Ruddy Alvarado.
    I am using BO XI 3.1 SP3

    Yes, let me explain the reason because sales have to be database delegated.
    In my case sales is not the sum of quantity of productos bought by a customer, sales is like a indicator that show me if customer bought or doesnt bought.
    For example David is my customer and i sell 3 types of products: A, B and C.
    Date 12.04.2011 David bought product A and B and 13.04.2011 David bought just product C.
    In my report if i want to analyze sales by day and customer i have to have the following result:
    *****Date 12.04.2011 and customer  Dave
                Sales = 1
    *****Date 13.04.2011 and customer  Dave
                Sales = 1
    In my report if i want to analyze sales by day and type of produc i have to have the following result:
    *****Date 12.04.2011 and customer  Dave
                Sales  Product A= 1
                Sales  Product B= 1
    *****Date 13.04.2011 and customer  Dave
                Sales  Product C= 1
    Can you see my point??
    In date 12.04.2011 i cant do a sum if i am analyzing sales by customer because if i do a sum dave show me a sales of 2.
    The only way that i found for this behavior is to use database delegated.
    I will wait for your answer.

  • Creating dynamic filter which shows next 30 days

    Hi,
    How to create dynamic filter which shows next 30 days?
    I've tried greater than or equal to TIMESTAMPADD(SQL_TSI_DAY, 30, CURRENT_DATE) but it doesn't work.

    Hi,
    I think it should be something like below (inclusive of current month)
    You may have to test this out
    (YEAR("Close Date".Date) >= YEAR(CURRENT_DATE) AND
    MONTH("Close Date".Date) >= MONTH(CURRENT_DATE)
    ) AND (YEAR("Close Date".Date) <= YEAR(TimestampAdd(SQL_TSI_MONTH,11, CURRENT_DATE)) AND MONTH("Close Date".Date) <= MONTH(TimestampAdd(SQL_TSI_MONTH,11, CURRENT_DATE)))
    Hope it helps
    -- Venky CRMIT

  • Last Month's data

    How do you report on last months data. I know there is a session variable for current month, i.e. VALUEOF(NQ_SESSION.CURRENT_MONTH), that I've used in a column formula to filter the data, but there doesnt seem to be one for last month, so how do I get around this? I'm creating a report for Sales Pipleline and trying to show the TCV for this month and last month in order to compare the two. Some assistance please?

    Hi Alex,
    Thanks for the reply. So Can you just confirm, are you saying that within analytics there is no way for me to get the TCV value of an opportunity as of last month or last week? I put together a report to try and show the TCV value from last week and I used a filter with the column formula for my TCV value, my formula was; FILTER("Historical Sales Stage".Revenue USING (Opportunity."Close Date" >=  VALUEOF("LAST_WEEK_BEGIN_DT"))), but from what you are saying I dont think this can work and I havent really had time to test it out properly. I then had another TCV column with a filter of; FILTER("Historical Sales Stage".Revenue USING (Opportunity."Close Date" >=  VALUEOF("CURRENT_WEEK_BEGIN_DT"))). At the moment I'm getting the same value which could be because I havent changed any data or like you say you can only report on current values. What do you think?
    Regards

Maybe you are looking for

  • Create PMD (Clinical Document) Document from Webdynpro ABAP

    Greetings everyone,        I have developed two PMD document category(Tcode :N2T6 ) for Clinical documents in SAP R/3 and somehow with the limitation of R/3 in terms of developing user friendly screens like Auto fill and image processing etc...,Users

  • Netui:tree and portal problem?

    I may have found a problem regarding using netui:tree & netui:treenode tags in a pageflow when that pageflow is placed in a portlet in a portal. The problem is that expanding and contracting the nodes does not work in this case....(it does work when

  • Extended Program Check - Warning

    Hi SDNers, I did my program well. but when i am doing Extended program check it shows warning that 'do not use fields, field symbols (itab) globally'.  This is the only warning i can not eliminate it. i dont want to hide using "#EC NEEDED. I have sea

  • Error at upload patch SAPKB70019

    Hello everybody,    i have been trying to upload the patch SAPKB70019 but it stop at DDIC_ACTIVATION Phase with error like that Error in phase :- DDIC_ACTIVATION Reason for error : TP_STEP_FAILURE Return Code : 0008 Field KEY: Component type or domai

  • Seemingly random "blank" videos.

    I apologize if this has been discussed, but I have been searching different forums here and elsewhere with no resolve to my problem. And I'm not completely sure if it's Adobe's fault, but I thought I'd give it a shot since this only happened recently