Fuzzy query in MDX ?

SELECT * 
FROM SYSTEMRESTRICTSCHEMA($system.discover_partition_stat
        ,DATABASE_NAME = 'hello world'
        ,CUBE_NAME = 'hello world'
        ,MEASURE_GROUP_NAME = 'Views'
        ,PARTITION_NAME='20120101'
How to modify above query to achieve:partition_name like '%2012%'
Thanks

Hi RedJack,
From your description, you want to use the fuzzy query in the DMV query, right? The DMV query syntax is based on the SELECT (DMX) statement. Although DMV query syntax is based on a SQL SELECT statement, it does not support the full syntax of a SELECT statement.
Notably, JOIN, GROUP BY, LIKE, CAST, and CONVERT are not supported.
Reference:
Use Dynamic Management Views (DMVs) to Monitor Analysis Services
SSAS
2008 RC0 – New function SYSTEMRESTRICTSCHEMA for restricted schema rowsets – DMVs
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • Crystal Report on BW BEx Query via MDX in SAP Portal

    Hi!
    We need to display a CR in the Portal. The CR is based on a MDx BW Query. To create and display the report is no problem. Even saving back to BW is working fine.
    But how do we get this CR displayed in the EP?
    Thanks in advance
    Jörn

    Hi,
    Should only the BO SAP Integration Kit iViews / URL iViews be used and are the Crystal Report iViews (http://help.sap.com/saphelp_nw04/helpdata/en/36/d4a94076b63713e10000000a155106/frameset.htm) obsolete?
    Yes as the Crystal Report iView are based on an older version
    If we export the Crystal reports to SAP BW, is it possible to call them with BEx iViews like the xCelsius reports? (Like with DASHBOARD=<report name> for xCelsius)
    From where can we get the Crystal Report ID, if we export them to SAP BW?
    You should use the BusinessObjects Integration Kit iView template for Crystal REports and the ID can be retrieved from the CMC
    Ingo

  • Cannot connect to BW query and MDX error

    i have few issue encountered on webi connected to SAP BI 7 and BW 3.x
    SAPBI7
    1)while select the cube/multiprovider on universe connection, i cannot see all the query availbale at BW, only show some query. but i can see all cube/multiprovider. whey?
    2)i hit database error when generate webi report from BI7.0 the error msg is "A database error occured the database text is : The MDX Querry SELECT {.....". it working fine when connect to BW 3.x.
    SAPBW 3.x
    1) i cannot see query from univese connection when connect BW 3.x, only can see cube/multiprovider. i using java connect
    SAP Java Connector 2.1.8 , SAP edge 3.1
    Please help .. thanks

    Hi,
    1)while select the cube/multiprovider on universe connection, i cannot see all the query availbale at BW, only show some query. but i can see all cube/multiprovider. whey?
    >> BW queries need to be released for external access in the Query Designer
    2)i hit database error when generate webi report from BI7.0 the error msg is "A database error occured the database text is : The MDX Querry SELECT {.....". it working fine when connect to BW 3.x.
    >>> Does the actual query that you were using work in transaction RSRT.
    SAPBW 3.x
    1) i cannot see query from univese connection when connect BW 3.x, only can see cube/multiprovider. i using java connect
    SAP Java Connector 2.1.8 , SAP edge 3.1
    >>> see above on item #1.
    Ingo

  • Build Query with MDX for BW cube

    Hi All ,
    I need to build a MDX query
    I need to pass range of values from select options in the where clause .
    thanks in advance for Any inputs .
    Vinay Kolla

    Classic Crystal Reports and Classic SAP connectivity questions
    Classic Crystal Reports and Classic SAP connectivity questions

  • Sorting query in MDX query filter in PPS

    Hi,
    Iam new to the PPS world. Iam using MDX query filter and I need to create a filter field using the [BusinessLine].[Department] dimension. I need to sort the display value of Department in descending order in the filter and Iam using the following
    Order([BusinessLine].[Department],[BusinessLine].[Department],DESC) in the query window while creating the filter. But Iam getting 'No value found'! result.
    Please let me know Iam doing any mistake in this

    Hi Umair,
    Thanks for the reply
    The department here is Attribute and BusinessLine is dimension in my cube.For other requirement(the department has to be sorted based on the creation date attribute) purpose I have kept department as composite key with other attribute called CREATE_DATE
    with named column as department
    Order (
    [BuisnessLine].[Department].[DEPARTMENT],
    [BusinessLine].[CREATE_DATE].Properties("Name"),
    DESC
    Iam just replacing the above query as it is in the Enter MDX formul? page
    Is it correct.

  • Fuzzy query search

    is there a function that will allow a fuzzy or regular expression type search?
    I need to find about 20k records in an address table based on the address description.
    for example I was given the following address to look for:
    2941 N. Commerce Pkwy.
    But what I actually find in the oracle table maybe something like the following:
    2941 N Commerce Pkwy
    So I need to develop a "smart" type query that is able to find minor variences like the above example. I don't know what the differences may ahead of time.
    Thanks.

    Hi,
    First, write a function that standardizes names as much as you can. That is, something that capitalizes, looks for the whole word 'PARKWAY' and replaces it with 'PKWY' (or the other way around), replaces ''EAST' with 'E', and so on. You'll probably want a table to hold the words to be standardized and their standard forms, and loop through all the rows in that table, replacing 1 item at a time, in your function.
    There are a couple of functions in the utl_match package that can help estimate how similar two strings are:
    http://download.oracle.com/docs/cd/E14072_01/appdev.112/e10577/u_match.htm
    It's a lot of custom work. I haven't done it with addresses, but with other strings (such as company names). Good luck!

  • Please help me getting this query in MDX

    Select CASE WHEN DSL.Latest_Label IS NULL THEN DS.[Label] ELSE DSL.Latest_Label END AS Label From Dim_Label AS DS LEFT OUTER JOIN
    (Select Idx,GRP_Idx,Max(Latest_Label) Latest_Label,MAX(Date_ID) Date_ID from [Dim_Label_Change] DSL te_Day = DSL.Date_Effective Where (Date_Id <= 333  ) Group by idx,GRP_Idx)
    DSL ON DS.Idx = DSL.Idx
    Thanks in Advance for the help

    My Cube has Dimensions, Fact tables and Measures , and Dimension table consists of Main and History table(Type 2 Slowly Changing Dimension).
    I would like to display the History(Latest_Label) Name based on  the date selected on SSRS Report.
    Hi SKPSR,
    According to your description, you need to get the latest history name based on a date that selected by use in SSRS report, right?
    In SSAS, we can use the LastNonEmpty function or Tail function to get the last member from a set. We cannot give you the detail MDX query based on the limited information, you can refer to the links below to see the details.
    http://msdn.microsoft.com/en-us/library/ms146056.aspx
    http://thinknook.com/ssas-lastnonempty-aggregation-function-2012-08-18/
    If the issue persists, please provide us more information about your cube structure, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Convert a query to MDX

    Hi,
    I created a query in Business query desginer and i want to convert into MDX. Please update me for this.
    Thanks
    Ankur Kuchhal

    Hi,
    You can create a MDX query in MDXTEST t.code and you can also test the same.
    Cheers,
    Malli.

  • SAP BW BEx query - WEBi MDX query

    Hi Experts, have we had some discussion on this?
    Does MDX query send by WEBi report to BW use the same program to extract data from BW database?
    One of the option for WEBi report source of data is to build Universe on top of BEx query. Could you share how this process actually happen.
    I think
    - WEBi query will pass parameters that is relevant for BEx query filter of the universe
    - the BEx query will then extract the data (following normal process if we run BEx query independently)
    - if WEBi has further filtering, it will then get the BEx result above and filter it further ..??
    So, how is MDX query come into the picture?
    Or is it:
    - WEBi query and the BEx query will determine what MDX query will be generated, and this MDX query will then fetch the data.
    But why BEx query extract data faster then MDX query?
    Sorry, i am new to this. hope someone could share some light here. In the meantime i continue to real those documentation and try to get some more ideas of what is actually happening.
    Thanks.

    Hi Thanks a lot for pointing this out.
    Did i understand it correctly that BEx query is using a different set of program (platform) to retrieve data compare to MDX query, and not MDX uses those program that is used by BEx to retrieve data from BW database and have extra steps on top of that?
    Can anyone share what is actually happen WEBi MDX query is executed (how the database is hit with SQL, and what are the tools to evaluate the efficiency of the WEBi (or the used BEx). As for BEx we have RSRT to analyze it right.
    And even to test the MDX query using MDXTEST and try to get the data from WEBi report, i found WEBi report still take considerably a lot longer. Why is this so? just because BO is a different system then BW?
    And as it's shared the BO 4.0 is using the same platform as BEx to retrieve data from BW database, does this mean we don't need to care about MDX usage in BW anymore as far as BO data extraction concern?
    Thank you very much.

  • Is it possible to implement Recursive CTE query in MDX to Cube dataset?

    I have data with hierarchical relationship like this:
    Release -> Features -> PBI/Bugs -> Tasks/Test Case. I have two datasets Work Item and Work Item Linked to get this hierarchical information.
    The data looks like this:
    Something like if I pass a Release ID, I need to get all the children and sub-children also. Basically a report like this:
    I did this by implementing a recursive CTE query with warehouse tables. But it takes more time to load. SO trying to find the possibility using MDX and querying the cube datasets

    Hello,
    There is nothing stopping you from querying the cache to see what is in it. However, this will only take into account items that are already in the cache. If you need a query to return items that are potentially not in the cache, you need to query the database, have the query return keys, and then request those keys through Coherence - which will in turn pull the items from the database as needed.
    Regards,
    -Dave

  • Restricted/Calculated Key Figures in Query vs MDX?

    Hello All,
    We are embarking on our first project utilizing SAP BW as the Data Warehouse and Web Intelligence as the presentation tool.
    We plan on creating the universes on BW Queries.
    What are the pros and cons of using Restricted and Calculated Key Figures in the query versus creating them in the Universe?  Also from a performance impact point of view if there is any?
    Best Regards,
    Dan Krieg

    Hi Dan,
    I would suppose that there is no big influence on performance. If the calculation for the calculated key figures are very complex I would propose to calculate them on query level. So its easier to use them also in other environments.
    Please take into consideration that OLAP universes are not supported in Crystal Reports. More information you find in the thread [OLAP universes and Crystal Reports|OLAP universes and Crystal Reports;.
    Regards,
    Sebastian

  • Query on MDX used in EVEXP

    Hi All,
    I am using MDX for filtering values in EXEXP formula. In EVEXP formula's last field of Filter, I am giving the following MDX:
    -->  ENTITY .currentmember.properties("Dropdown") ="Y"
    I am getting the filtered values of Dropdown property having values Y. But I want to have members having property value of Y as well as N. What MDX sshould I write for the same?

    Hi,
    You can use
    ENTITY.currentmember.properties("Dropdown") ="Y" and ENTITY.currentmember.properties("Dropdown") ="N"
    Hope this helps.

  • Query on MDX SCOPE

    Hi All,
    Greetings..!!
    Requesting your help on below :
    I am analyzing the script at one of the project , it is similar to below : 
    SCOPE
    [Geography].[City].[All Geographies],
    [Date].[Calendar].[Calendar Year]
    THIS = ([Measures].[Internet Sales Amount],
            [Product].[Product Categories].[Category]
    END SCOPE;
    Then, i am querying to check the result as below :
    Select 
       [Measures].[Internet Sales Amount]
    } on 0,
    ([Geography].[City].[All Geographies],
        [Date].[Calendar].[Calendar Year]
    } on 1
    From
    [Adventure Works]
    Giving the Error as : 
    CellOrdinal 0
    VALUE #Error The  function expects a string or numeric expression for the  argument. A tuple set expression was used.
    FORMATTED_VALUE #Error The  function expects a string or numeric expression for the  argument. A tuple set expression was used.
    Screenshot:
    tried with different measures...
    How to test the scope condition. Please help on this .
    Thanks and Regards,
    Mahesh
    Mahesh Alam

    hi Mahesh,
    You specified a level in the scope statement THIS:
    [Product].[Product Categories].[Category]     ??
    wich is not a  "cube coordinate"
    If you complete it, let's say only the bikes, it will work:
    SCOPE ( 
      [Geography].[City].[All Geographies], 
      [Date].[Calendar].[Calendar Year] ); 
      THIS = ([Measures].[Internet Sales Amount], 
      [Product].[Product Categories].[Category].&[1] ); 
    END SCOPE 
    Philip,

  • Filters not getting passed in MDX query while using SAP BW with OBIEE

    Hello,
    I've been working on OBIEE with SAP BW as back-end. I've created some reports & those are working fine when there is less amount of data. But when I try to run a report with 3 dimensions & 1 fact it throws an error saying "No more storage space available for extending an internal table". When I checked MDX query, I found that the filters that I had applied to request & also selected from prompts are not getting passed in that query. So, I tried running a simple request using a simple filter in Answers. Although this request returns results but I can't see filter conditions in query. MDX query always show crossjoin but I can't see filter conditions anywhere.
    Is it the normal OBIEE behaviour OR am I doing something wrong in there? Can you please help me out with this?
    Thanks,
    Rocky

    Hello Sainath,
    We tried those things. But it is still giving same error.
    State: HY00. Code: 10058. [NQODBC][SQL_STATE:HY000][nQSError: 10058] A general error has occurred. XML/A error returned from the server: Fault code: "XMLAnalysisError.0X80000005". Fault string: "The XML for Analysis provider encountered an error: MDX result contains too many cells (more than 1 million)". (HY000)
    The problem here, I think, is the filter parameters are not getting passed in the MDX query. Any idea why would that happen? Is there any setting to do so?
    Thanks in advance for help.
    Regards,
    Rocky

  • Error MDX when executing WBI query with different prompt but same text

    Current version is BO XI 3.1 SP2 FP 2.6
    Connected with SAP BI7
    Identified problem :
    when using same text prompt in different filters, only the first one is correctly answered, the MDX code for following ones are not correctly generated : the engine uses the right filter but applied to the object from the first filter which gives a MDX code error.
    Example :
    In a report :
    - asking a user choice on 'document month' for operational view
    - using the same answer to fill up the 'posting month' in financial view
    Document month (0FISCPER) filter is filter !V000001
    Posting month (FISCPLCD) filter is filter !V000002
    Question text is unique : "Single Year Period ?" and should be sent to both prompts/variable.
    When using the same text prompt, the MDX code generated is :
    SELECT  { [Measures].[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( [0FISCPER].[LEVEL01].MEMBERS, [FISCPLCD].[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM [CATS_M01A/ZGL_CATS_UTILISATION] SAP VARIABLES [!V000001] INCLUDING [FISCPLCD].[Z12010006]
    Please notice that in this generated code, the filter !V000001 is applied to the FISCPLCD object, while filter !V000001 is related to document month. A MDX error is generated.
    Any clue to solve this issue ?
    Thank you for your help.
    G.OM.
    Edited by: GERALDINE OMNES on Jan 14, 2011 12:44 PM

    Ok, I've simplified the case.
    Here is the real case :
    Object filter =
    Based on object =
    .[LEVEL01]
    Object filter =
    Based on object =
    .[LEVEL01]
    In WBI query result I take these objects :
    .[LEVEL01]
    .[LEVEL01]
    .[4IUX93YJGXQEHGLX0T0GPNA9Y]
    In query filters, my 2 filters with same text :
    1.
    I run the query.
    Answer to question 'Single Year Period ?' = Period 06 2010
    ==> MDX error
    A database error occured. The database error text is: Echec de l'exécution de la requête MDX SELECT  { .[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006] avec l'erreur Invalid MDX command with . (WIS 10901)
    And you can see that the value sent to both filters is the same and come from the first filter .[Z12010006] instead of applying the value to each filter .[Z12010006] for the first one and .[Z12010006] for the second one.
    Please, notice that if I change the order of this 2 filters in the WBI query, the MDX generated become :
    SELECT  { .[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006]
    Thanks for your help.
    G.OM.

Maybe you are looking for

  • Need help to interface InRevium's TB-FMCH-HDMI4K Board with ZC706 Eval board

    We (PathPartner Technology Consulting Services) have recently procured the above-mentioned card(from Inrevium) for supporting HDMI display (HDMI2.0 for 4K) for our FPGA-based Video Codec solution. We are implementing this solution on ZC706 board (Zyn

  • Exception creating stateless session bean

    hello, can some one tell what is the cause and the solution of the folowing exception : EJB5070 Exception creating stateless session bean : [{0}] com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: ejb3.INplateformFacade/t

  • Dead links on the Download Page

    I noticed a few of the downloads on the Flex page were not working... couldn't figure out a better place to mention this so I decided to post here. Anyone know a better spot? Anywho, the two links I tried to hit were: http://opensource.adobe.com/wiki

  • What is Cost Center and Activity type

    Can any one make me understand Conseptually, what is Cost Center and Activity Type

  • Raw vs sraw hot pixel issue question

    From tests I've come to realize that lightroom processes raw and sraw files differently in Lightroom 3. Hot pixels are automatically removed in standard raw files, but sraw files are not corrected the same way. It seems odd that they would not add th