IR Apply Filter for OLAP Query (Essbase)

Guys, this is what i am struggling with.
1. First Question - Finding the true level of the filter someone just applied:
- Someone selects product ABC from the filter prompt box in IR against Essbase. Product ABC is built like Products-->Total Products-->Brand A-->ABC. Now, through script, how do i know product ABC is below all the levels i just listed above?
2. Second - I cannot apply a limit THROUGH SCRIPT simply on "Products.ABC". The IR script errors out. The IR script only works if i have the following syntax "ActiveDocument.Sections["OLAPQuery1"].Filters.Add("Products.Total Products.Brand A.ABC");
Any IR / OLAP / Essbase experts out there that can help?
One question ... should i simply find ABC, look for a parent for ABC and keep going up the chain and document the structure and use that?

Hi, Shantanu,
This does what you requested:
SELECT    *
FROM       table_x
WHERE       incidence     = 'N'
OR       (    status               != 1     -- Cancelled
       AND  (   status           != 2     -- Closed
            OR  completion_date     IS NOT NULL
       AND  activity_status          != 'Cancelled'
;Among other things, this assumes that status and activity_status are never NULL. If they can be NULL, the solution is a little messier, but only a little: instead of things like
status   != 1you have to say
NVL (status, 0)   != 1 
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ {message:id=9360002}

Similar Messages

  • Need help to apply filter in my query

    Hi,
    I have records of incidence in my table. These incidences have two types, one is normal incidence where I have incidence flag N and other is altered incidence where I have incidence flag Y. These incidences can have multiple status like 1. Cancelled 2. Closed 3. Open etc.
    A single incidence can have multiple plan to complete this and further this plan contains multiple activities.
    Now I have to apply a filter for my report, based on below conditions.
    I want to show all the records of incidences for normal incidence.
    exclude records for altered incidence where incidence status = Cancelled
    exclude records for altered incidence where status is closed and plan completion date is null
    exclude records for altered incidence where activity status = Cancelled
    Your help will be greatly appreciated.
    Thanks,
    Shantanu

    Hi, Shantanu,
    This does what you requested:
    SELECT    *
    FROM       table_x
    WHERE       incidence     = 'N'
    OR       (    status               != 1     -- Cancelled
           AND  (   status           != 2     -- Closed
                OR  completion_date     IS NOT NULL
           AND  activity_status          != 'Cancelled'
    ;Among other things, this assumes that status and activity_status are never NULL. If they can be NULL, the solution is a little messier, but only a little: instead of things like
    status   != 1you have to say
    NVL (status, 0)   != 1 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • The query cannot be released for OLE DB for OLAP

    Hi,
    I have created a SAP BI query by query designer,which includes a replacement path variable.Query is working totaly fine.
    Now i want to use this query in SAP BO universe, so i have checked the query property Release for OLE DB for OLAP in Advance preoperty of query which allow external use of query.
    But after this when i try to run the query its showing error messages-
    The query cannot be released for OLE DB for OLAP
    Query ZBO_OVERDUE_CUST could not be opened.
    >> Row: 37 Inc: CONSTRUCTOR Prog: CL_RSR_OLAP_VAR
    Error when generating dataProvider
    If i remmove it,my query will work fine.But problem is here,i have to use both thing.
    I want repleasement path in query,and because i have to use query in Universe,so i have so allow external use of query.
    What should i do,how can i get my desire result.
    Thanks,
    Piyush

    I think it may be a limitation due to some of the logic in the BEx query.
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/99ea3bd7896f58e10000000a11402f/content.htm
    Release for OLE DB for OLAP
    External reporting tools that communicate using the OLE DB for OLAP interface use queries as data sources. If you want to release this query as a data source for external Reporting tools, select Allow External Access to this Query.
    Note: Queries containing formulas with the operators %RT, %CT, %GT, SUMRT, SUMCT, SUMGT, and LEAF cannot be released for OLE DB for OLAP. These operators are dependent on how the list is displayed in the BEx Analyzer and the formulas return unexpected values when using OLE DB for OLAP or MDX. You may be able to obtain the required result by selecting constants. For more information, see Selecting Constants.
    For more information about using formula operators, see Defining Formulas.
    For more information about OLE DB for OLAP, see Mapping Metadata.

  • OBIEE - ESSBASE   ERROR - 1200467 - Error executing formula for [MDX query]

    I have an issue on essbase with a query with 50 member filters.
    The environment is OBIEE 11g over ESSBASE 11.1.2 with an ASO cube.
    The user for essbase are with database access filters.
    I have the following issue, OBIEE returns a query that filter 30 members and the query runs ok, but the same query with a 50 member filter returns the following error when i execute it on MAXL :
    MAXL Error
    ERROR - 1200467 - Error executing formula for [MDX query]: status code [1130203] in function [].
    ERROR - 1241101 - Unexpected Essbase error 1200467.
    i paste an example of the query that returns OBIEE
    With
    set [_Account2] as '{Distinct({[Account].[Allocated FTE - Budget]})}'
    set [_Employee0] as '[Employee].members'
    set [_Fund4] as 'Generate([Fund].Generations(2).members, Descendants([Fund].currentmember, [Fund].Generations(4), leaves))'
    set [_Position4] as '{Distinct({[Position].[POS111165], [Position].[POS111166], [Position].[POS111167], [Position].[POS111540], [Position].[POS112331], [Position].[POS113201], [Position].[POS113247], [Position].[POS113248], [Position].[POS113540], [Position].[POS113618], [Position].[POS113954], [Position].[POS114109], [Position].[POS114194], [Position].[POS115224], [Position].[POS115912], [Position].[POS115913], [Position].[POS116727], [Position].[POS117229], [Position].[POS117491], [Position].[POS117587], [Position].[POS117610], [Position].[POS117979], [Position].[POS119456], [Position].[POS121262], [Position].[POS121458], [Position].[POS121698], [Position].[POS123368], [Position].[POS124027], [Position].[POS124028], [Position].[POS124110], [Position].[POS124396], [Position].[POS125623], [Position].[POS125624], [Position].[POS126476], [Position].[POS127960], [Position].[POS129352], [Position].[POS129468], [Position].[POS129494], [Position].[POS129535], [Position].[POS129608], [Position].[POS129679], [Position].[POS129730], [Position].[POS129905], [Position].[POS130010], [Position].[POS130144], [Position].[POS133456], [Position].[POS134943], [Position].[POS135231], [Position].[POS135404], [Position].[POS135734]})}'
    set [_Program3] as 'Generate([Program].Generations(2).members, Descendants([Program].currentmember, [Program].Generations(3), leaves))'
    select
    { [Budget Item]
    } on columns,
    NON EMPTY {crossjoin({[_Account2]},crossjoin({[_Employee0]},crossjoin({[_Fund4]},crossjoin({[_Position4]},{[_Program3]}))))} properties GEN_NUMBER, [Account].[MEMBER_UNIQUE_NAME], [Account].[Memnor], [Program].[MEMBER_UNIQUE_NAME], [Program].[Memnor], [Employee].[MEMBER_UNIQUE_NAME], [Employee].[Memnor], [Fund].[MEMBER_UNIQUE_NAME], [Fund].[Memnor], [Position].[MEMBER_UNIQUE_NAME], [Position].[Memnor] on rows
    from [BCPSASO2.BCPS_ASO]
    any suggestions ?
    Thanks
    Niko
    Edited by: user8367101 on Mar 1, 2011 10:31 AM

    Here it is:
    It is a Windows Server 2003 R2
    Processor 8393 SE
    31.9 GB of RAM
    32-Bit
    How does "memscaling" works?
    I also think that are high but it is the way it was configured before I managed the application. For my DB
    Index Cache setting: 205800
    Index cache current value: 205800
    Data file cache setting: 33768
    Data file cache current: 0
    Data Cache setting: 877273
    Cata cache current: 71540
    Block Size: 65408

  • How to Create Filter by date Query for access using Data base connectivity tool

    Hello,
    I had started my project by reading Access datas, by using an UDL connection,
    but now i want to create an access filter using a query that would permit to select two dates, and to obtain all corresponding datas, how to do it using the Parmetrized SQL query?
    Best regards,
    Remark: i dont know the SQL language
    ~~~~~~~~~~~~~~~~~~Looking for a LABVIEW JOB (In EUROPE)>~~~~~~~~~~~~~~~~~~
    **The Best Way To Predict**The**Future Is To Invent It**
    Solved!
    Go to Solution.

    Hi mike,
    I want to thank you for your help, i really appreciate it,
    i tried to make the code as ur picture, i had no problem to execute it, but i have no data's in the output
    i changed the date format, because i suppose that its a short date format in the database.
    can you just look at it, and tell me if you can find the problem,
    thank you again for your help
    Best regards,
    ~~~~~~~~~~~~~~~~~~Looking for a LABVIEW JOB (In EUROPE)>~~~~~~~~~~~~~~~~~~
    **The Best Way To Predict**The**Future Is To Invent It**
    Attachments:
    db.JPG ‏126 KB
    lav.JPG ‏82 KB

  • Pre-fill the OLAP cache for a query on Data change event  of infoprovider

    Hi Gurus,
    I have to pre-fill the OLAP cache for a query,which has bad performance.
    I read a doc 'Periodic Jobs and Tasks in SAP BW'
    which suggested sum steps to do this
    i hav created the setting for Bex broadcasting for scheduling job Execution with data change in info provider
    thereafter doc says  "an event has to be raised in the process chain which loads the data to this InfoProvider.When the process chain executes the process u201CTrigger Event Data Change (for Broadcaster)u201D, an event is raised to inform the Broadcaster that the query can be filled in the OLAP cache."
    how can this b done please provide with sum proper steps
    Answers are always appreciated.
    Thanks.

    Hi
    U need to create a process chain or use the existing process chain which you are using to load your current solution, just add event change process type in the process chian  and inside it add the info provider which are going to be affected.
    Once you are done with this go to the broadcaster  and  create new setting for that query...you will see the option for event data chainge in infoprovider just choose that  and create the settings.
    hope it helps

  • Hyperion Wired for OLAP v.4.1.2 compatiblity with Hyperion Essbase OLAP Server v.6.5.4

    Dear all,Our existing version of Hyperion products are as follows:1) Hyperion Essbase OLAP Server version 5.0.1 Patch 7 under SunOS 5.6 on Solaris Server2) Hyperion Wired for OLAP version 4.1.2 under Microsoft Win2000 Server on Intel machine.And we are going to upgrade Hyperion Essbase OLAP Server from 5.0.1 Patch 7 to 6.5.4 under SunOS 5.8 to get Windows XP support on Essbase client in client users' PC.Besides, we also intend to upgrade Hyperion Wired for OLAP v.4.1.2 to Hyperion Analyzer v.6.5. However, as client users' PC configuation don't meet the requirements for Hyperion Analyzer 6.5, we may need to postpone the Hyperion Analyzer 6.5 upgrade.Here, I have a question that can Hyperion Wired for OLAP v.4.1.2 can access Hyperion Essbase 6.5.4 OLAP applications.Finally, I also have a question that since Hyperion Analyzer 6.X, repository in Paradox format has been faded out, RDBMS for repository has been introduced since then. Then can we still keep using repository in Paradox format in Hyperion Analyzer 4.1.2/5.0.3 when upgrading to Hyperion Analyzer 6.5 or higher in the future.Thanks for your help and attention!Regards,zerolai

    I do not think wired will even work with the 6.x runtimes. Your only real option is to put off the move untill you can manage the a6.5 upgrade.

  • How to empty out Olap Cache for a query?

    Hi experts,
    I think the olap cache for a query should be resetted to zero after a data load (right?), if i have understood well how it works. Where can i check the olap cache for the query?  I'd like to ckeck the change of the Olap Cache for a specific query.
    I checkt in the Cache Monitor but I haven't found any data.
    Francesco

    Hi
    You can use the Transaction code RSRCACHE
    Regards
    N Ganesh

  • Accelerator available for the Apply Filter button

    Is there a shortcut (accelerator) available for the apply filter button in the connections tab. We have lots of tables, stored procedures etc and I am always using the filter to limit the entries shown. Would be great if there was a function key to do this.
    AD.

    I think its the expcted behaviour since its not been handled by the ADF framework.
    See this link on how to achieve this -
    Re: Filtering af:table Without Using ADF Model

  • Pre-define filter for query in a BEx Report

    Hi all experts, I have a question, I have created a report with WAD and Query Designer, and I need a pre-define filter for different user or different role. Anyone knows where should I set this pre-define filter to the query ? In the WAD itself, or must do it in backend ? My scenario is, lets say User A login to this report, he will have value A, B, C as filter value in characteristic Z, User B login to this report, he will have value D, E, F as filter value in characteristic Z. Perhaps you guys can understand what I trying to say.

    Hi,
    You can set a customer exit variable on characteristics Z. the value for Variable is populated in customer exit written in CMOD using I_STEP = 1.
    You also need to maintain a mapping table for value of characteristics Z to user. Now if user A checks the Report, using the sy-uname you lookup to the mapping table and get the corresponding values of characteristics Z and populate the default value of the variable or straight away restrict it in the query by not making it ready for input.
    Hope it helps....
    Regards,
    Umesh

  • Result Source Query Builder Filter for Content Sources

    I have several content sources that I want to add to a result source as a property filter. It works fine if I just have one but when I add multiple content sources it does not give me all the results. Is there a way to add more than one content source
    filter to one result source.

    Hi SpGurlz,
    How did you set the filter with content source in the query builder for the result source?
    I tested with more than one content source as filter in the query builder for the result source in my environment, and all the corresponding results were displayed fine.
    The query text for the result source was set like this: {searchTerms} contentsource:file1 contentsource:file2.
    Remember to add a space between the “{searchTerms}”, “contentsource:file1” and “contentsource:file2”.
    You can provide the query text of your result source here and I will help to check the logic.
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Alternative to a Named Sets in Microsoft Cube for Analysis Edition for OLAP

    SAP has told me via there support system that they do not support Named Sets in Microsoft Analysis cubes and I need to be able to create specific time parameters to ease reporting requirements.  We are migrating off ProClarity and onto Analysis Edition for OLAP and need to be able to create these specific time dimensions.  I don't want to use custom groups as this would be hardcoding the values for the dates.  Is there any alternative to have these dates available in the Analysis application?  Any help would be greatly appreciated. 
    Please note that the Business Layer on the Webi side supports named sets and I have already implemented this for scheduled reports. Below is the MDX Name Set query for the Previous month based on our time dimension.
    ---- [Previous Month] ----
    Intersect ([Time].[Time Fiscal Year].[Month].Members, LastPeriods (1, Tail(Filter([Time].[Time Fiscal Year].[Month].Members, NOT IsEmpty(([Time].[Time Fiscal Year].CurrentMember, [Measures].DefaultMember))), 1).item(0).Lag(1)))
    Our Current Version:
    SAP Business Objects BI Platform 4.1 Support Pack 2 Patch 2

    When connecting to SSAS in a cluster, you do not specify an instance name.  In your case, you would use the name of the SSAS IP address to connect.
    See:
    http://msdn.microsoft.com/en-us/library/dn141153.aspx
    For servers deployed in a failover cluster, connect using the network name of the SSAS cluster. This name is specified during SQL Server setup, as
    SQL Server Network Name. Note that if you installed SSAS as a named instance onto a Windows Server Failover Cluster (WSFC), you never add the instance name on the connection. This practice is unique to SSAS; in contrast, a named
    instance of a clustered relational database engine does include the instance name. For example, if you installed both SSAS and the database engine as named instance (Contoso-Accounting) with a SQL Server Network Name of SQL-CLU, you would connect to SSAS using
    "SQL-CLU" and to the database engine as "SQL-CLU\Contoso-Accounting". See
    How to Cluster SQL Server Analysis Services for more information and examples.

  • BEx formula change not working in existing Analysis for Olap/Analysis for Excel reports

    Hello all,
    I posted this in Analysis for OLAP, but there has been no response so I'm hoping perhaps you BEx experts can help me.
    I had to modify a formula in a Bex query to have it calculate the results of the formula by summation.
    I checked the query using BEx Analyzer and it summed correctly.  If I create a new analysis for olap report, it sums correctly.
    If I modify an existing report, it does not pick up the change.  Existing Analysis for Excel reports also do not pick up the new summary calculation.
    Using the CMC, I edited the connection and reselected the Bex query, but that did not work either.
    Here it is working in the query:
    Line Discount is a formula with logic checking to see if "product list price total amount" is 0, set the line discount to 0; otherwise calculate it as "product list price total amount" - Net Sale.  So the total needs to sum of the line discounts (0+2820+2820 = 5640) and not be the Overall result "product list price total amount" - Overall Result "net sale" (13960-96720= -82760).
    Here it is in an existing Webi report - working:
    Here is what is happening in an existing Analysis for OLAP report - not working:
    I also tried to unselect Line Discount as a key figure from the existing report and reselect it, but that did not work.
    I'd like to find a solution so that all the reports that use this query won't have to be rewritten.
    I'm on BW 7.0 EP 1 SP 10 and BI 4.0 SP7 Patch 5.
    Thank you for your help,
    Susan

    Hi,
    Apply Exception aggregation on line discount formula--Exception aggregation as Total---Reference characteristic as Promega product.
    Make sure to refresh the webi report once after the changes has been done.
    If this does not work then you can apply summation calculation for that column at webi level as well.
    Regards,
    AL

  • Applying Filter Error

    Hi
    when I set a filter for month(am extracting month name from date using the MonthName function), and, run the request , am getting an error
    "The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below."
    MONTHNAME(Encounter Date) is equal to Apr
    There is data available and when I remove the filter , everything works as intended.
    Can someone help me with this!!. Am using Oracle BI 10 1 3 2 on MS SQL Server.
    Thanks,
    Ram

    Hi
    If you are doing this way that will work but I think ther is one option MONTHNAME you can use it but in query field instant of using "is equal to/is in " use "contains" that will work.Actually "is equal to/is in " is used for integer or number and "contains" is used for String and this month name is Day
    Thanks
    Siddhartha P

  • EIS - Is there a way to filter entire OLAP Model or MetaOutline

    Is there a way to apply a filter on an entire metaoutline or OLAP Model to look at only the data for a single period during the outline extract vs. scanning the entire table? Or do you have to specify this in the filter for every dimension member?

    Glenn:
    Thanks for the response. Was wondering if you can provide some more specific info on how to define the selection for the OLAP model or metaoutline.
    I have looked at filters in the metaoutline but cannot see how I would put a criteria in the edit filter mode. I know about filters at the member level but was hoping that I would not to have to define the time dim criteria in a filter for every member in my metaoutline.

Maybe you are looking for