Month Range Selection in OBIEE against Essbase

OK. I am pretty knowledgeable on the Hyperion side, but new to the OBIEE world so I am looking for some major assistance in getting this to work.
We currently have an Essbase outline that is built with the Year and Periods combined like the below example from 2001 - 2015:
YrPeriod (generation 1)
-----2011 (generation 2)
----------201101 (generation 3)
----------201102
----------201103
----------201104
----------201105
----------201106
----------201107
----------201108
----------201109
----------201110
----------201112
-----2012
----------201201
----------201202
----------201203
----------201204
----------201205
----------201206
----------201207
----------201208
----------201209
----------201210
----------201211
----------201212
ETC...
What we are trying to do in OBIEE is build a dashboard that shows multiple reports (analysis) that are graphing 25 months of data (customer request). I have tried to:
1. use the dashboard prompt to select a Start_Month and a prompt for the End_Month. These were selecting the Gen3 members of the YrPeriod dimension and saving to a Presentation variable. This allows the users to select from the dropdown list all the Gen3 members of the dimension which I want. Those presentation variables where then selected in the BETWEEN filter for the Analysis on the YrPeriod dimension. HOWEVER, it seems to only select the first member in the range which is the START_MONTH presentation variable. Not sure if this approach will work or not.
SO I tried to do it a different way.
2. I created Session_Variables, but I am not seeing a way to use them in the BETWEEN filters on the Analysis for YrPeriod dim. It only allows you to select Presentation variables or Request Variables.The only way I have gotten them to work was to add a sql on the Initialization block for the session variable:
One FOR THE START MONTH - select to_char(add_months(sysdate,-25),'yyyymm') start_month from dual ;
AND THE END_MONTH - select to_char(add_months(sysdate,-1),'yyyymm') Ending_Month from dual AND) .
When added to the BETWEEN filter this works in getting the full 25 month range!
HOWEVER, I would like to give the users the ability to change the run period range and not be stuck with just the system date.
Ideally, I would like to have just 1 prompt for the Run period and have it update the range based on the selection.
I hope I have given you all enough info to let you know what we are trying to do and what I have tried to this point. Hopefully this is something relatively simple and I am just missing it completely!
Thank you in advance for any and all your help with this!
Robert
Edited by: user627522 on Nov 12, 2012 3:08 PM

A web search for "OBIEE rolling months" comes back with i.e. this one: http://shivabizint.wordpress.com/2008/09/19/rolling-months-data-for-year-month-prompt-in-obiee/
or this one: http://obieetutorialguide.blogspot.ie/2012/02/modeling-time-series-function-in-obiee.html
In earlier Siebel days, one also used to define multiple alias in OBIEE physical layer for DIM_DATE with different joins to different months. I needed to go this route in a project where we had MS-SQL as the back end where the at that time relatively new AGO and TODATE were performing very badly.
But now to solve your problem at hand:
In the very latest release the new OBIEE function PERIODROLLING was introduced. Not sure though how this is function shipped to Essbase, if at all.
You can read some more details about it i.e. here: http://gerardnico.com/wiki/dat/obiee/function_time
Thanks for letting us know if it works at all with Essbase in physical layer and if it works, what query is actually being sent to Essbase.

Similar Messages

  • Need help with select that month range with flexible first date

    Hello everyone,
    I am trying to create a selection of month range (will be in a WITH clause) for a report to display monthly data. But the first month start date can be any date. (Not necessarily the first date of the month)
    Examples:
    Report input parameters:
    Start Date: 08/10/12
    End Month: Dec 2012
    I was trying to build a with select that will list
    Month_Start, Month_End
    08/10/12, 31/10/12
    01/11/12, 30/11/12
    01/12/12, 31/12/12
    OR
    Month_Start, Next_Month
    08/10/12, 01/11/12
    01/11/12, 01/12/12
    01/12/12, 01/01/13
    End month is optional, so if no value the select will list only
    08/10/12, 01/11/12
    Oracle Database Details is
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    My code so far is
    VARIABLE  P50_START_DATE  VARCHAR2 (10)
    VARIABLE  P50_END_MONTH    VARCHAR2 (10)
    EXEC  :P50_START_DATE  := '10/10/2012';
    EXEC  :P50_END_MONTH   := '31/12/2012';
      SELECT  to_char(:P50_START_DATE) AS start_date
            ,  ADD_MONTHS( TRUNC(to_date(:P50_START_DATE,'DD/MM/YYYY'),'MONTH'), 1) AS next_month
      FROM dual
      union
       SELECT to_char(ADD_MONTHS( TRUNC(to_date(:P50_START_DATE,'DD/MM/YYYY'),'MONTH'), ROWNUM-1)) AS start_date
       ,      ADD_MONTHS( TRUNC(to_date(:P50_START_DATE,'DD/MM/YYYY'),'MONTH'), ROWNUM) AS next_month
       --, rownum
       from all_objects
       where
       rownum <= months_between(to_date(NVL(:P50_END_MONTH, :P50_START_DATE),'DD/MM/YYYY'), add_months(to_date(:P50_START_DATE,'DD/MM/YYYY'), -1))
       and rownum > 1If I put comment – on line and rownum > 1, as
    -- and rownum > 1The result I get is
    START_DATE                     NEXT_MONTH               
    01/10/12                       01/10/12                 
    01/11/12                       01/11/12                 
    01/12/12                       01/01/13                 
    10/10/2012                     01/11/12    But when I try to remove the duplicate period (of the first month) out by restrict rownum, it do not return any rows for the second select at all. The result I get is:
    START_DATE                     NEXT_MONTH               
    10/10/2012                     01/11/12    Can anyone advise what wrong with the select statement ?
    Thanks a lot in advance,
    Ann

    Hi,
    Here's one way:
    WITH   params      AS
         SELECT     TO_DATE (:p50_start_date, 'DD/MM/YYYY')     AS start_date
         ,     TO_DATE (:p50_end_month,  'DD/MM/YYYY')     AS end_date
         FROM     dual
    SELECT     GREATEST ( start_date
               , ADD_MONTHS ( TRUNC (start_date, 'MONTH')
                            , LEVEL - 1
              )               AS month_start
    ,     LEAST     ( end_date
              , ADD_MONTHS ( TRUNC (start_date, 'MONTH')
                          , LEVEL
                        ) - 1
              )               AS month_end
    FROM    params
    CONNECT BY     LEVEL     <= 1 + MONTHS_BETWEEN ( end_date
                                      , TRUNC (start_date, 'MONTH')
    ;:p50_end_month doesn't have to be the last day of the month; any day will work.
    If you want to generate a Counter Table containing the integers 1 througn x in SQL, you could say
    SELECT  ROWNUM  AS n
    FROM    all_objects
    WHERE   ROWNUM  <= x
    ;but, starting in Oracle 9.1, it's much faster to say
    SELECT  LEVEL   AS n
    FROM    dual    -- or any table containing exactly 1 row
    CONNECT BY  LEVEL <= x
    ;Also, x can be greater than the number of rows in all_objects.

  • Set range selection on a clip using "X" not working!

    So I just downloaded FCPX this afternoon and am trying to select a range on a clip in the Event Browser to then drag that selection down to the Timeline.  On a 20 second clip, I press the "I" at 7 seconds in, then I press "O" at 14 seconds.  That's the part of the clip I want.  So then the FCPX Online User Guide tells me to do this:
    In the Event Browser or the Timeline, move the skimmer (or the playhead) over a clip and press X.
    Final Cut Pro sets the range selection start and end points at the clip start and end points.
    Note:  To use this X key method with connected clips or clips in a connected storyline, move the pointer directly over the clip and press X.
    BUT, when I press X, it discards my "I" and "O" points and puts the yellow selection box around the entire clip again!  It's very frustrating.  Please help me, what am I doing wrong, or is this a bug?  I'm up against a deadline and this is preventing me from moving forward because it won't "store" or remember, I don't know what to call it, my in and out points and the yellow bounded selection range on the clip!
    Thank you!
    Paul

    Huh?  Tom, thank you, but I'm not supposed to use the manual?  I desperately need a User Guide.  Is there one? And you did not explain what X does then, or what I am supposed to do?  If the X does not do what that manual says, then how do I set the In and Out points on the clip?
    Confused,
    Paul

  • Doing OBIEE with Essbase as datasource, anybody who has experience?

    Hello guys
    Does anybody have good experience dealing with essbase data on OBIEE? Essbase doesn't seem to be a relational database like oracle, data are stored as cube. One cube contains dimesion and fact attributes with hierarchical levels defined in essbase.
    I don't have experience dealing with these type of scenario, therefore I run into a lot of issues when I try to create report on answers..
    Typically, when I apply any conversation functions or "SQL expression" values on date column filters or contents (such as cast(column as date), or filter on current_date on SQL Expressions) and create reports with measures, I get errors: [nQSError: 42043] An external aggregate is found in an outer query block. (HY000)
    If create reports only with date column alone with the above applied, I get errors like inconsistent data type or something..
    I believe that for some reasons when OBIEE sends the query to essbase and get converted into MDX, something got lost in translations.
    With the same environment, I imagine if I were to create some dynamic variables with select statement, it will also not work since there is no "column" and "table" in essbase the same way as in relational database. So how would I define dynamic variables with max sales or something?
    So is there any help I can get in terms of dealing with essbase on obiee?
    Any pointers will be greatly appreciated
    Thanks

    Without access to the rpd you're not going to get far. Yes, you can achieve both things, but it will mean writing MDX and to use MDX in both the filters and the columns is not something I'd recommend since you'll be facing loads of issues.
    Date filter:
    The "normal" function you're using won't work. That's for sure. You will have to wrap the whole thing into an EVALUATE and write MDX...like the Lag function I mentioned before. If your time dimension is just taken over from Essbase in the normal drag-and-drop way, then it won't be a full "time dimension" anyway.
    A column formula along the lines of this:
    EVALUATE('[Time Period].[2009-04-15].Lag(7)')
    Measure calculation:
    Again, without access to the rpd this will be pretty hard to do due to the question where the aggregation actually happens. Venkat wrote about that recently.
    http://oraclebizint.wordpress.com/2009/04/06/oracle-bi-ee-10134-and-essbase-connectivity-understanding-aggregations-part-1/
    http://oraclebizint.wordpress.com/2009/04/07/oracle-bi-ee-10134-and-essbase-connectivity-understanding-aggregations-part-2/
    http://oraclebizint.wordpress.com/2009/04/09/oracle-bi-ee-10134-and-essbase-connectivity-understanding-aggregations-part-3/
    http://oraclebizint.wordpress.com/2009/04/13/oracle-bi-ee-10134-and-essbase-connectivity-understanding-aggregations-part-4/
    Cheers,
    Christi@n

  • How to make two Range Selection at the same time?

    In a single clip, at the same time, in two locations, I would like to have Range Selection.  Then I would like to switch between the two and play within the range one after the other immedeately. Is this possible?  Thanks.

    success1975 wrote:
    In a single clip, at the same time, in two locations, I would like to have Range Selection. 
    You can mark multiple range selections in a clip by clicking and dragging with the Command key down – or marking in and out points with  Shift+Command.
    I don't know what you mean when you say "at the same time".
    Then I would like to switch between the two and play within the range one after the other immedeately. Is this possible?  Thanks.
    Forward slash plays betweeen the in and out. The only way I know to play them one after the other "immediatelly" is to edit the two selections to the timeline.
    Russ

  • HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.

    HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.
    how can we add range selection in screen painter.
    regards.

    Hi,
       create two input fields and a push button like select option in the screeen.
    Try checking this logic
    <b>Program:</b>
    <b>ranges</b> ra_matnr for mara-matnr.
    <b>Layout field name declaration:</b>
    Give the low field name as ra_range-low
      and high field name as ra_range-high.
    extension for pushbutton.--exten(function code)
    next -- function code for the enter key.
    PBO
    module status_3000.
    PAI
    module user_command_3000.
    <b>module user_command_3000.</b>
    if sy-ucomm = exten.
      call screen 400. (screen which shows extension values can be kept).
    elseif sy-ucomm = Next.
    if ra_matnr-low is not initial.
        ra_matnr-SIGN = 'I'.
        ra_matnr-OPTION = 'EQ'.
        APPEND ra_matnr.
        clear ra_matnr.
    endif.
    if ra_matnr-high is not initial.
        ra_matnr-SIGN = 'I'.
        ra_matnr-OPTION = 'EQ'.
        APPEND ra_matnr.
        clear ra_matnr.
    endif.
    endif.
    endmodule.
    module status_3000.
    read table ra_matnr  index 1 into ra_matnr .
    set pf-status '3000'.
    set title '3000'.
    endmodule
    Br,
    Laxmi.

  • OBIEE with Essbase as datasource-what I need to know

    I am getting into a project where Essbase is the datasource. I know nothing about Essbase but I an experienced OBIEE prof. Can anyone tell me the things I need to know about integrating Essbase with OBIEE, using Essbase cubes in obiee. I looking for some basic fundamentals of Essbase so I could successfully use Essbase cubes with OBIEE.
    I find lot of materials online but not sure what I need to know for using Essbase as datasource for OBIEE. Any insight / links would be of lot of help. Thanks a million

    It really depends on what you plan to do and which products in the stack you're going to use for what. If you intend to use Essbase as an aggregation layer to speed up you analysis, then you should look into learning more about fine-tuning your Essbase applications in terms of data loads, aggregation, optimizing calculations,...in terms of languages MDX and MaxL.
    If you're looking to integrate applications like Workspace as well then you'll have to look at those as well.
    Both areas are vast in terms of applications and functionalties so I'd suggest learning the basics and then deepening your know-how according to needs.
    Cheers,
    C.

  • Multiple Range Selection for field Material in CS14

    Hi friends ,
    Is it possible to make multiple range selection for material field in tcode CS14 [used to compare primary and secondary BOM] i have made it ZCS14.
    if i make matnr2 to matnr2-low
    but my doubt is it feasible solution
    please through some light on this
    regards
    soorya

    Dear Soorya,
    What's your requirement? is that to compare the Alternative BOM's for multiple materials at the same time?
    If it's going to be for comparing one more alternative for the same material,then it's a good report.
    As per to my knowledge if the report is going to be for a list of materials Alternative BOM's means I dont
    think whether it will be a fast(time wise) report.
    Check & revert back.
    Regards
    Mangalraj.S

  • Date Range Selection in Query Templates

    Hi,
    Can someone please tell me how to use <b>Date Range Selection</b> Tab details in SQL Query and TAG Query (Using Examples).
    Thanks in advance
    Muzammil P.T

    >>>>>>>>>>
    Re: Date Range Selection in Query Templates   
    Posted: Feb 15, 2007 6:43 AM    in response to: Muzammil Ahamed       Reply      E-mail this post 
    Hi Muzammil,
    In data range section you can have multiple options like setting start datetime and end datetime.. And you can set the shift (or) time period and also the format of the time periods.
    Primarily we use the start date and end date querying to fetch data between two time labels. I can explain this one with example..
    You have batch production table with columns Production Time, Batch Id, Production Qty. Then you want all the details between the 02/02/2007 to 05/02/2007.
    Solution :
    1.Map 02/02/2007 with Start date.
    2.Map 05/02/2007 with end dare.
    Now these two become the variables [SD] and [ED].
    Now you have mentioned the date range, but you need to mention for which column these things to be applied. For that
    3.In Query tab enter Production Time column name in Date column at the bottom.
    Now you have written query like Select * from batch prodcution where production time > 02/02/2007 and production time < 05/02/2007.
    4. Even those values you mapped (SD and ED) you can change from the front page through Java script.
    Like wise you have so many other advantages also.
    If you have any other specific doubt let me know.
    Thanks,
    Rajesh.
    PS : Please ward points if answer is useful. <<<<<<<<
    Message was edited by:
            David Dreyer

  • How to make direct selection handles visible against pasteboard?

    When I go to transform/resize images inside frames using the direct selection tool, I can't see the handles of the actual image because they are white against a white pasteboard.  I am using InDesign CS5 (ver 7.0.4) on a Mac. I have been using InDesign for a few years and never noticed this was a problem; all of a sudden, the handles seem invisble. I don't remember what the color scheme was before. (Maybe I am losing my mind). Did the colors change with an update? There is an option in preferences to select the color of the pasteboard, but this doesn't seem to have any effect. In the meantime, I can't find the handles to resize/transform images. I can input a percentage for scaling, but this is only useful sometimes. How do I make direct selection handles visible against the pasteboard?

    Not specifically a path. When I select an image in a layout with the selection tool, yes the frame border is the color of the layer. When I select the same image with the direct selection tool to see the full extent of the uncropped image, the border of the image is white with white handles. Since my pasteboard is white, I can't see the image border when it extends off my color layout and onto the pasteboard.

  • OBIEE and ESSBASE federated queries..

    Hello all ,
    I am working on a requirement that requires configuring federated queries using OBIEE and Essbase as an aggregation layer. I am able to configure everything except for one dimension where this dimension in Essbase uses shared members. Any help /guidance is greatly appreciated.
    Thanks
    Sunil

    Thanks for the response. I did go further from that day on the issue. But this is where I currently am stuck.
    The issue is on this:;
    1. Have a Measure in Essbase at a Grain higher than then OBIEE grain for a dimension and I need to create a report which calculated based on both the essbae measure and the OBIEE measure.
    I have to create a report which would take the Essbase Measure, Divide by the OBIEE measure and display the value (Note: This OBIEE measure and the grain is only available at the OBIEE layer)
    Ex:
    Essbase Info:
    D1 D2 Amount
    x y 200
    OBIEE Info:
    D1 D2 D3 Percentage
    x y z1 30
    x y z2 70
    Desired Output
    Is
    D1 D2 D3 New Amount
    x y z1 60
    x y z2 140
    The behavior I am noticing is , since D3 has no relationship to Essbase Measure, the report results with a null for the Essbase Measure (Amount in this case). I understand this is natural but am not able to figure out any other means to address this requirement. I am exploring using EVALUATE and MDX, but am not sure, if I would be able to get the desired output.
    Thanks
    Sunil

  • Calculate Month Range from Single Month input

    Hi Gurus,
    In a particular query, the mandatory input is 0calmonth. Variable used is 0PCALMON.
    When user inputs 12.2007, then during runtime one of the keyfigure i need to calculate is quarter quantity for the month range 10.2007 to 12.2007 as 12.2007 falls in this quarter.
    Similarly if user inputs 03.2008, quarter quantity will be for these months 01.2008 to 03.2008.
    Plz tell me the steps from variable creation and writing code in cmod.
    Thanks in advance.
    Vaishnavi.

    Hi Jaya,
    I have written this code in cmod and activated.
    when 'ZMQ_RNG'.
    Data : ZYear(4) .
    Data : ZMon(2) type N .
    loop at i_t_var_range into loc_var_range
    where vnam = '0PCALMON'.
    clear l_s_range.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    ZYear = loc_var_range-low(4) .
    ZMon = loc_var_range-low+4(2) .
    If ( ZMon = '04' or ZMon = '05' or ZMon = '06' ) .
    l_s_range-high+4(3) = '06' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '04' .
    l_s_range-low(4) = ZYear .
    Endif .
    If ( ZMon = '07' or ZMon = '08' or ZMon = '09' ) .
    l_s_range-high+4(3) = '09' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '07' .
    l_s_range-low(4) = ZYear .
    Endif .
    If ( ZMon = '10' or ZMon = '11' or ZMon = '12' ) .
    l_s_range-high+4(3) = '012' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '010' .
    l_s_range-low(4) = ZYear .
    Endif .
    If ( ZMon = '01' or ZMon = '02' or ZMon = '03' ) .
    l_s_range-high+4(3) = '03' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '01' .
    l_s_range-low(4) = ZYear .
    Endif .
    append l_s_range to e_t_range.
    exit.
    endloop.
    ZMQ_RNG variable is customer exit, not ready for input, and mandatory field whereas oPcalmon variable is user entry, ready for input, mandatory.
    I have a RKF with 0CALMONTH restricted with ZMQ_RNG on quantity. free characteristics i have ocalmonth with variable 0pcalmon.
    Still my RKF doesnot calculate quantities for the 3 month range..
    Plz help.
    Rgrds,
    Vaishnavi

  • Color range selection + layer styles

    Hello--
    Help me if you can!
    I have had it on good authority (my photoshop instructor) that color range selection hasn't been working correctly for some time.
    I'm using CS2, version 9.0.2 on an IMac os X version 10.5.8.
    I am often working with multiple layers that are not similar at all.  When I have one layer active and do a color selection, it may also select the color range on inactive layers.  Then, if I do a fill, for example, it may affect areas on other layers that were inadvertantly color selected.  I know there are ways to ask photoshop to perform a function on all layers, but I don't see this as an option or setting with color range selection.  I had started to assume it was sort of like crop, which affects all layers, but when I asked, my teacher says it should only be selecting/affecting the layer that is active. 
    I found I can deal with this by 'closing the eyes' (making non-visible) the other layers...but that is a hassle and sometimes hides exactly what I need to see.
    Then noticed, just lately, that when I use a layer style, it is no longer showing up on my layer palette.  Maybe I don't understand correctly, but I thought any layer style addition would show up on the palette under the name of that layer.  If I happen to remember that a particular layer used a layer style, I can still click on the layer styles icon and alter it, but it isn't displaying on the layer palette any more--so I cannot toggle or discard the effect simply, and it is hard to know why a layer looks the way it does without that information.
    Could be I'm corrupted and need to deinstall/reinstall?  Is there something I'm missing about these functions , or something I accidentally changed?  I would really appreciate any help or information.

    Yes your instructor is wrong, it always selects visible pixels, and always has. You can however create a selection before you go into Color Range, and it will only work within that selection though.
    If you want Color Range to work in precisely the same way as it always did in the old versions you need to make sure that you ..
    • Highlight a non masked layer and
    • Uncheck the somewhat bizarrely entitled "Localised Color Clusters" checkbox
    The changes to Color Range happened a few versions ago, to my memory it was with CS4 .  The main improvement was that they made it more powerful with the capability to produce better more refined selections. They also unfortunately made the daft mistake of making the command work DIFFERENTLY depending on whether you have a masked or a non masked layer selected. This is not very logical really because it just causes confusion, and doesn't really achieve anything constructive in my opinion. No one who knows what they are doing wants to modify an existing mask using Color Range.

  • How to do range selection for connected clips?

    How to do range selection for connected clips? Whenever I press I or O, it only selects the primary storyline. I want select a portion of the connected clip and trim it.

    If you're using the 10.1.x, and if you set the playhead, so that the circle is over the connected clilp (you don't even need a range selection OR have the clip selected) you can type Option - [ to trim from the beginning of the clip to the playhead; you can type Option - ] to trim from the playhead to the end; or if you do set a Range selection, you can type Option - \ (backslash) to trim both ends off the clip preserving the range selection.
    If that circle isn't over the connected clip you require (perhaps you have a stack of clips) then you will need to click on the clip you need to have selected for the trim operation.

  • About Date Range Selection in Contributor Recognition Program- List

    Hello SCN,
    Happy that we have a classified date range selection like Year wise, Contest period wise and also with date range in the Top Contributors list. However earlier we had a luxury to see the point classified as  "All Time Contribution".  I personally feel to get back this option as well in the list.
    Dear SDNers share your suggestion on this.
    Thanks,
    SaNv....

    Hi,
    If you want the user to select the date directly rather than entering, you need not to have a dropdown menu in WAD. Directly go to the query which you have selected for the object in WAD, there create a variable with calendar. Put it mandatory, so that the user selection of the date will be mandatory. The variable will be automatically be available when you execute the template inn the browser.
    Assign points if this helps u.
    Regards,
    Koundinya.

Maybe you are looking for