Current Month condition for SSAS OLAP universe

Hi,
I am using XI 3.1 SP2 and SSAS 2008 OLAP cubes. My requirement is to create the following 3 conditions/dimensions in my BO universe on the OLAP cube to be used in the scheduled reports.
1. Current Fiscal Qtr
2. Current & Prev Fiscal Qtr
3. Current & Prev Year Same Qtr
The fiscal year is unique and does not start from the 1st of any month. It starts from the Last Sat of Jan till the Last Fri of next year Jan.
Its an urgent requirement. Please let me know a solution for the same with exact syntax.

Hi,
take a look here:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb
Ingo

Similar Messages

  • How to get the current month value for a customer exit variable?

    How to get the current month value for a customer exit variable? 
    And also if we have an InfoObject with date value (including date, month, year), then how to derive the month value from this date type of Char.?
    Thanks!

    Hi Kevin,
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    Regards,
    Vijay.

  • Current Month - Last 12 Months in OLAP Universe

    I need to create a conditional objects at OLAP Universe and use it in WEBI report to run for last 12 months from Current Month.
    We have exit variable for CM (Current Month). Can any one advise how to create the conditional object at Universe level to restrict always 12 months worth of data. I need to schedule the report and when ever it runs, it shouls pull only last 12months.
    Can I implement like  [0CALMONTH].CurrentMember - 12  , I need to get last 12 months. I need to do this only with Time dimension, I dont want to have any measure assosiated with just like in regular RDBMS definitions in Universe. 
    Thanks
    Pat
    Edited by: patnaik24 on Apr 12, 2010 10:50 PM

    Hi
    I would recommend to modify the existing customer exit variable so that it will restrict the data for the last 12 months. You can then create a prompt in your web intelligence report that limits additionally the data to the current month when necessary.
    Regards,
    Stratos

  • Current Date in Olap Universe basead in Bex Query

    Hi All!
    I'm having some problems as the current date in the universe.
    I need the report that runs in background and a filter has the current date, I mean current month and year. The universe is based on a query Bex, and the query have a variable with the current month and year.
    I canu2019t filter int the query because it always bring the current month, and a only need that for a few reports, the others it gonna be filter by date choosen by the user.
    To resolve this I made this filter:
    <FILTER KEY="[0CALMONTH].[LEVEL01]">
    <CONDITION OPERATORCONDITION="Equal">
    <CONSTANT CAPTION ="Dec 2010"/>
    </CONDITION>
    </FILTER>
    And to my surprise it worked!
    I wonder if there is any way to make a filter with the current date dynamic?
    I tried in the constant caption : "[0CALMONTH].CurrentMember" or "[0CALMONTH].DefaultMember", but didnu2019t work, the query returns blank. Is there any way to do this? Is there any variable that the BW understand that I want the current month and year?
    Tks a lot!
    Livia

    Sorry! I didn't see that, but i already posted in the right forum.
    In the Universe.
    But it could be done with a filter in web i report also.
    Any ideas?
    Tks!
    Livia

  • OLAP universes and Crystal Reports

    Hi everybody,
    as we know Crystal Reports can not use OLAP universes as data source. The details about that have been discussed several times in this forum, for example in the threads:
    Logon failed with Universe data source
    Logon failed when trying to connect to a SAP BW related universe
    The possible data sources are perfectly explained in the Blog from Ingo Hilgefort.
    /people/ingo.hilgefort/blog
    But... why these connection type is not possible???
    From my point of view these missing functionality comes with a lot of drawbacks. The universe has a lot of advantages, and first of all it is isolating the business users form technical complexities. But if the business users can not access to the OLAP universe they have to face to technical complexities.
    Another point: Consider a perfect integrated SAP BW environment with Business Objects Enterprise and Crystal and Xcelsius. The administrator can now define a perfect universe structure, tailored on the particular business needs of the end users. This universe structure can be used for Web Intelligence and Xcelsius (QaaWS). But for the Crystal Reports I have to define another interface to the BW data sources, which can not be done by the Administrator.
    So, some open questions:
    - Why is the connect to OLAP universes not possible - does that make sense?
    - Will the connectivity be available in future - is that part of the actual roadmap?
    - What is the recommanded approach for a business case as shown above, meaning how can I isolate my business users from technical complexities by using SAP BW as data source for Crystal Report.
    Thank you for any comments and advises,
    Sebastian

    Hello to everybody.
    When I was starting to work on the BO products I had exactly the same question.
    Why were the OLAP Universes not supported in Crystal Reports?
    Well, I have a few facts in my mind, I explained the decision of SAP in this case with for myself.
    1. Very simple and my first thought: monetary aspects. There excist the SAP Integration Kit. These drivers work pretty fine. So for what reason SAP should invest money in an other technique to access the SAP data?
    2. It excist a server solution for small and medium-sized companies named Crystal Reports Server. I'm not sure but I don't think this package contains the Universe Designer. If acces on SAP data over the OLAP Universes would be possible, the Crystal Reports Server customers should also get the Designer tool and the Translation tool, too. Less profit margin.
    3. Creating a Universe out of OLAP data destroys the moredimensionality. Universes are flat constructs. So maybe it makes no sense to use this meta layer.
    4. A typical Crystal Report user isn't someone who had no technical understanding. For me these users should know and understand the data source very well. So an Universe would limit there the possibilities for building a report.
    5. I think the SAP itself did not know where the journey should go with this toolset. A roudmap that changes severalt times in one year an many many rumours about these tools proof this.
    So I think maybe we just have to wait a few months and the support for the OLAP Universes will come with a fix pack.   Who knows...
    Greetings,
    Sebastian

  • Dynamic Conditions in OLAP universe

    Hi all,
    we want to use conditions that are derived from the current date to provide easy filters to our users. Like "Current Month" derived from the current date w/o users having to enter any value. In the old 5.1 Business Objects version this was working properly.
    We use Webintelligence BO XI 3.1 with Fixpack 3.3 on top of SAP BW (BexQuery) which means we are dealing with an OLAP universe.
    The Condition we want to use as an example is:
    <FILTER KEY="@Select(Dates\Invoice Month)"><CONDITION
    OPERATORCONDITION="Equal"><CONSTANT CAPTION="MonthNumberOfYear
    (CurrentDate)"></CONSTANT></CONDITION></FILTER>
    It parses correctly, yet when applied as a filter in a web intelligence report it does not return a result.
    The ultimate goal would be not the "Current Month" but a date range "Previous YTD".
    I have found many threads dealing with similar questions, but non seemed to fit - we want to avoid that users have to enter a date, and we want to avoid increasing the number of measures. (And we want to avoid the worst case to have to do it at the BexQuery level due to performance aspects)
    Any idea would be greatly appreciated.
    Thanks
    Norman

    Hi,
    such filtering needs to be done using EXIT Variables in the BEx query.
    ingo

  • SSRS Date parameter - current month from SSAS cube

    I have a SSAS cube with a date dimension called Posting Period and now I would like to have my report parameter using this date dimension to show the current month.
    So far I have worked out the following expression which are working(Fiscal year calendar going from May to May) for the year component - but I can't figure out how to get it to work on Quarter date part (and the month) so as you can see
    the Quarter and month is hardcoded in the below expression:
    ="[PostingPeriod].[Posting Period].[Year].&[" + CStr(Year(Today())-1) + "].&[Q4].&[10]”
    Any help would be appriciated.
    Tx

    Hi HCMJ,
    In your scenario, you use the expression
    ="[PostingPeriod].[Posting Period].[Year].&[" + CStr(Year(Today())-1) + "].&[Q4].&[10]”
    to set the default value of the parameter and then use it in the MDX query, right?
    If in this case, you can use the expression below
    ="[PostingPeriod].[Posting Period].[Year].&[2013].&[Q" & DatePart(DateInterval.Quarter,today()) & "].&[10]”
    to set the value on Quarter date part.
    And it returns:
    If I have anything misunderstood, please point it out and elaborate the meaning of "but I can't figure out how to get it to work on Quarter date part (and the month) so as you can see the Quarter and month is hardcoded
    ", so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Sales report for current month and year a go month

    i could you please guide me builting report for current monthwise for current month and year a ago month
    report parameter month_year='06-2010'
    tables = sales and below are the table fields
    customer_id
    invoice_dt
    invoice_am
    thanks
    nhm

    Okay, Still you did not mention how you will pass value in report while generating.
    Anyway the query with UNION ALL will work. For Example.
    I am assuming that the parameter for date/month you will pass in range like 01-JUN-2010 to 30-JUN-2010
    SELECT customer_id, SUM(curr_value) curr_value, SUM(past_value) past_value
    FROM
    SELECT customer_id, NVL(SUM(invoice_amount),0) curr_value, 0 past_value
    FROM sales
    WHERE invoice_dt BETWEEN :P_FROM_DATE AND :P_TO_DATE  -- here P_FROM_DATE and P_TO_DATE will be the date range for current year as i showed above.
    AND  -- Any Condition goes here...
    GROUP BY customer_id
    UNION ALL
    SELECT customer_id, 0, NVL(SUM(invoice_amount),0)
    FROM sales
    WHERE invoice_dt BETWEEN ADD_MONTHS(:P_FROM_DATE,-12) AND ADD_MONTHS(:P_TO_DATE,-12) -- This add_months function for the previous year same month.
    AND -- Any condition goes here...
    GROUP BY customer_id
    GROUP BY customer_idNow using the above query you can design the tabular report as you showed the format.
    -Ammad
    Edited by: Ammad Ahmed on Jul 3, 2010 7:55 PM
    added GROUP BY

  • What is the definition of open orders for the current month ??

    Hi all,
    I need to calculate Net Sales for the open orders of the current month in my report.
    Can you please tell me the condition required to be put on Net Sales for Open Orders.
    Which characteristic is actually required? Should I restrict the Net Sales by  the Overall Delivery Status of ordered items(0dlv_stso)?
    With Thanks and Regards,
    Mukul Singhal,
    Software Engineer,
    SAP-BW Practice

    http://www.apple.com/batteries/iphone.html  look here Apple-batteries-iphone.

  • Get data for current month in VC from query - Urgent

    Hi all,
    I have designed a query for cube FIAR_C03 for overdue items and query output contains customer, net due date, document date, fiscal year period and amount. I want a chart for that query in VC that only contains those items in which net due date is in current month. How can i do that?
    Where I can place the condition to display only those items in vc in which net due date is in current month and how ?
    Please respond.
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd.

    Hi Aisha,
    It is possible to do with following steps:
    1. In Query Design make your field 'Net Due' filter with variable for date input (0CALMONTH for example where your date should be this format MMYYYY). Test your query and see if you input a month/year date it would would work;
    2. Build one table from output of your query (choose fields);
    3. In Visual Composer, drag your query into your board and from 'Varaiables' port  (NOT FROM INPUT) drag a line to create a Start point. As soon you realease to create 'Start' a box will ask which fields you want. Choose your date as field;
    4. Select the line between Start point a query. In Input Field assigned the following formula (DSTR(NOW(),'MMYYYY') *
    5. Deploy your model
    at this formula I said: transform NOW(), current date, in Text with format MMYYYY (012002 for example).
    It works!
    Assigned points if was helpful.
    Kind Regards,
    Gilson Teixeira

  • Setting a Prompt value for KeyDate in WebI on SAP OLAP universe

    I have a webi report which has as its dataprovider a query against an SAP olap universe against a BEx query which has the KeyDate parameter exposed.
    Iu2019d like to get at this prompt from the SDK.
    In infoview if I run the report it pulls up the keydate prompt (a special dialogue which seems to be implemented as part of the connection definition) - this prior to pulling up the full prompts dialogue and showing all universe based @prompt filters.  In WebI I can see the prompt value entered using =UserResponse("dp.kd.value") .   So it does seem to see the keydate as a prompt of some sorts.
    I've got a little jsp that allows me to set prompts very nicely (and packeaged as a jar in the CMC that schedules ok as well) but when I put it against a report with a key date u201Cpromptu201D it just wonu2019t see it.  When I call a getCount() as below it returns 0.
    oDocumentInstance.getDataProviders().generateQueries();     
    Prompts oPrompts = oDocumentInstance.getPrompts();
    out.print(oPrompts.getCount());
    This is all in an attempt to get around the scheduler limitations of key date which would give me two queries, two universes and two reportsu2026 one report for scheduling (using a customer exit to set key date) and a second for user refresh  (with a prompted key date)  which would all be rather messey to say the least!
    So any cunning ideas on how I can get hold of this key date thingymebob in the SDK?
    (ps. "Fixed in V4" would be nice to hear as an aside to thisu2026 In playing with the ramp up Iu2019ve got the same issues however so Iu2019m not to hopefull )
    Thanks!
    Jeremy.

    Hi,
    First I think you have to create a support ticket because normally the object in the universe must be generated with data data type nad it is not the case.
    We are awere of some limitations with data types.
    Secondly, if you want to have users entering date you have to specify date in the prompt data type like this:
    <OPTIONAL><FILTER KEY="[PERIOD SD].[DB Full Date].[DB Full Date]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT CAPTION="@Prompt('Enter Date ','D',,mono,free)"></CONSTANT></CONDITION></FILTER></OPTIONAL>
    Regards
    Didier

  • 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

  • OLAP Universe Filter for Constant

    Hello
    I am trying to create a universe filter. We have a BO OLAP Universe on top of MSAS 2008. We are at  BOXI 3.1 SP2/FP2.2
    <FILTER KEY="[Date].[Calendar Date].[Date]"><CONDITION
    OPERATORCONDITION="InList"><CONSTANT
    CAPTION="[Today].item(0).MEMBER_CAPTION"/></CONDITION></FILTER>
    Where [Today] is a calculated member.
    This one parses fine, however when it comes to MDX which i capture via
    profiler
    WITH SET NS28B9BE741FD446A5A0414EA718F8FC_0 AS Filter([Date].[Calendar
    Date].levels(4).allmembers,((([Date].[Calendar
    Date].currentmember.properties("CAPTION")="[Today].item
    (0).MEMBER_CAPTION"))))
    SELECT { [Measures].DefaultMember } ON COLUMNS ,
    NS28B9BE741FD446A5A0414EA718F8FC_0 DIMENSION PROPERTIES
    MEMBER_UNIQUE_NAME, MEMBER_CAPTION ON ROWS FROM [My Cube]
    This returns empty. However it works fine and returns value if i remove "" wrapping
    [Today].item(0).MEMBER_CAPTION and run this query in SQL Server Management Studio ( MDX query)
    However i cannot introduce the same in the filter - if i try it gives
    me a parse error.
    i.e the following doesnt help
    <FILTER KEY="[Date].[Calendar Date].[Date]"><CONDITION
    OPERATORCONDITION="InList"><CONSTANT
    CAPTION=[Today].item(0).MEMBER_CAPTION/></CONDITION></FILTER>
    Can you kindly advise if you have seen similar errors and what i can do possibly in this case to workaround this?
    Edited by: ramaks on Oct 26, 2010 2:35 AM
    Edited by: ramaks on Oct 26, 2010 2:36 AM
    Edited by: ramaks on Oct 26, 2010 2:37 AM

    Hi Didier,
    Thank you for your response. That was exactly my original design - but it has performance implications for us. Please see an earlier thread of mine.
    Query Performance in OLAP MSAS Universe using Filter
    In this Case the MDX will become as below.
    Which means every additional dimension i add creates multiple cross joins, and the filter will go through all possible cross-join combination to filter out that one record for that particular date. My original thread explains this more clearly.
    Is there no other way to implement such a filter?
    WITH
      MEMBER [Measures].[2FF3DF31-5D02-4A9B-A8,BC,E7,25,C2,30,1B,61] AS
        IIF
            [Date].[Calendar Date].CurrentMember.Properties("CAPTION")
          =
            [Today].Item(0).Member_Caption
         ,1
         ,0
    SELECT { [Measures].DefaultMember } ON COLUMNS ,
    ,NON EMPTY
        Filter
                  CrossJoin
                AddCalculatedMembers
                  [Date].[Calendar Date].[Date].MEMBERS
          [Measures].[2FF3DF31-5D02-4A9B-A8,BC,E7,25,C2,30,1B,61] = 1
    DIMENSION PROPERTIES
    MEMBER_UNIQUE_NAME, MEMBER_CAPTION ON ROWS FROM [My Cube]
    Edited by: ramaks on Oct 26, 2010 4:26 PM

  • To get Current,Last, Next months data for Efashion report

    To Create a report with the user input prompt on Year and Month:
    If user select year as 2005 and month as 2 (Feb), revenue should be displayed for previous Month (Jan) and next month (March) of selected year.
    Sample output should looks as below.
    Year : 2005
    State
    Prev Month - Jan
    Current Month - Feb
    Next Month - Mar
    AAA
    $100
    $100
    $600
    BBB
    $200
    $400
    $200
    CCC
    $300
    $300
    $300
    I have created dimensions in universe premonth=(@Select(Time period\Month) -1) & Nextmonth=@Select(Time period\Month) +1) & taken 3 dataproviders from efashion universe .these are not working for year ends

    Hi
    solution found, taken 3 data providers & added below filters for 2 &3 data providers
    DP2
    @Select(Time period\Year)=iif(@Prompt('Enter Month','N','Time period\Month',,)=12,@Prompt('Enter Year','A','Time period\Year',,)+1,@Prompt('Enter Year','A','Time period\Year',,))
    @Select(Time period\Month)=iif(@Prompt('Enter Month','N','Time period\Month',,)=12,1,@Prompt('Enter Month','N','Time period\Month',,)+1)
    DP3
    @Select(Time period\Year)=iif(@Prompt('Enter Month','N','Time period\Month',,)=1,@Prompt('Enter Year','A','Time period\Year',,)-1,@Prompt('Enter Year','A','Time period\Year',,))
    @Select(Time period\Month)=iif(@Prompt('Enter Month','N','Time period\Month',,)=1,12,@Prompt('Enter Month','N','Time period\Month',,)-1)
    Thanks

  • Filter for the current month

    Hi all,
    Our client wants to see the report for the current month whenever he opens the report. We have a field called date which shows the date when PO was created in the format of mm/yyyy and mmm yy(JAN 2004 or JAN 2007. How should I create a filter report or Drill not Query to filter the data for the current month only.
    Regards,
    BOB

    Bob,
    filter the data for the current month only.
    It will work best setting up a filter at the Universe level.  You don't mention the database vendor, but for instance if it was SQL Server you could use something like this:
    select convert(char(11),getdate(),101)
    Essentially you'll take the current date and modify it to conform to the MMM/YYYY format....
    thanks,
    John

Maybe you are looking for