MDX query with DMV to get all cubes and aggregation row count on SSAS engine

Hi All,
How can I get all cube names  on a SSAS engine server and count of number of aggregation rows in each cube ?
I got a DMV where it shows all catalogs names and description but where can I found aggregation row count of each cube.
Please let me know, thanks in advance.
Maruthi...

Hi Maruthi,
Please check below link, hope this will help you.
SSAS 2008 CTP6 – new DMV $SYSTEM. DISCOVER_ OBJECT_ ACTIVITY
lists the memory usage and CPU time for each object i.e. cube, dimension, cache, measure, partition, etc. They also show which aggregations were hit or missed, how many times these objects were read, and how many rows were returned by them:
Discover_object_memory_usage and discover_object_activity
select * from $system.discover_object_memory_usage
select * from $system.discover_object_activity
Thanks
Suhas
Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.
My Blog
Follow @SuhasKudekar

Similar Messages

  • MDX query with a DMX query

    Hi All,
    Do I have a way to run a MDX query with a DMX query? (Avoiding the “link server” options… )
    I need to get the cube last update date like this DMX query:
    SELECT 1
    as CubeStatus
    FROM $System.MDSCHEMA_CUBES
    where 
    format(LAST_DATA_UPDATE,
    'dd/MM/yyyy') = format(now(),
    'dd/MM/yyyy')  --"1" means that the cube was processed, NULL cube did not process today
    and cube_source = 1
    and cross reference it to a result I get from this MDX query:
    with
    member measures.LastDateCube
    as [Comm Date UTC].[Date].currentmember.PROPERTIES("KEY")
    select measures.LastDateCube
    on 0 from comms
    the purpose of this is to know for sure that my current member (date integer) is equal to the cube last update date. thus, making sure the cube was processed and I get the correct member I expect.
    What do you think?
    Thank you
    Yoni.

    Hi yonibiel,
    According to your description, you want to combine a DMX query with a MDX query. Right?
    In SQL Server, it is not supported to parse the MDX query without connecting the SSAS database server. So if you want to combine the DMX and MDX query into one dataset, the only way is using linked server to SSAS in openquery() function.
    In this scenario, if you render these data from two result sets for reporting purpose, I assume you using SSRS, you can create two datasets and use lookup() to combine data fields from two datasets into one data region.
    Reference:
    Joining the results of two MDX queries together
    Best Regards,
    Simon Hou
    TechNet Community Support

  • I've just purchased an ipad2 and have synced it with outlook to get all contacts.  I've also set up my earthlink mail account and it sends/receives fine.  IS there a way to sync it so I get all of the legacy emails sitting in the OUtlook inbox?

    I've just purchased an ipad2 and have synced it with Outlook to get all contacts, etc.  I've set up the mail account and it is working just fine.  The sync doesn't pull over legacy emails from Outlook and my Outlook has been set up to remove them from the webmail server therefore they aren't available from webmail anymore.  Is there anyway to pull them over to the iPad? 

    But is there a way (simple or not-so-simple) to find
    out EVERY SINGLE FILE that's referenced on a
    timeline? (I have lots of stuff imported into the
    project that I know isn't used on any timeline, but
    I'm afraid of moving or deleting things for fear of
    never finding it again.)
    I'd love to get some sort of "printout" (a list or
    something) of every single file.
    There is, go to browser and cntrl click on any one of the columns,
    and select - show/source. A new column named "source" will pop up and will show where everything "lives". Click on the header at the top and it will justify the column as well. You'll notice this won't show anything for your seq.'s. of course, but will show stills/audio/motion files...
    Once you have the new column, you can drag it next to the "name" column and get a grab of it and print it if you like, or whatever.
    If you want to do this for just 1 seq., then can create a new bin and double click it to open it. Cntrl-A (select all) in your main seq. and just drag all into the new bin. You will see only what's in that seq. with the "source" column right next to it.
    From what I've read, you seem to get the MM thing and it's obviously what you'll need to do to archive as the guys said. But what your missing is a file path system to where everything resides.
    Hope this helps and that I've read you properly,
    Peace
    P-Book 1.5, 17" 2gsRAM   Mac OS X (10.4.4)   FCStudio

  • Problem with video, Quality gets all messed up

    I'm burning a video thats about an hour and even minutes long, with about 3 short little extra videos on there that are about five minutes long each
    I burned the DVD with best quality.
    The Menus are fine, and two of the short videos are fine
    but after like 5 minutes on the main video, it starts to get all distorted and chopy and all this green distortion comes up and its just a mess
    I would burn it with best performance, but it says its to long for that
    I NEED HELP!!

    QT and FCP show you different colors. You need to go into QT and enable FCP color compatibility. I believe it is in the SHOW MOVIE PROPERTIES, then the VIdeo track, then VISUAL SETTINGS. Somewhere in there.
    Shane

  • Query for getting all function and procedure inside the packages

    hi All
    Please provide me Query for getting all function and procedure inside the packages
    thanks

    As Todd said, you can use user_arguments data dictionary or you can join user_objects and user_procedures like below to get the name of the packaged function and procedure names.
    If you are looking for the packaged procedures and functions source then use user_source data dictionary
    select a.object_name,a.procedure_name from user_procedures a,
                  user_objects b
    where a.object_name is not null
    and a.procedure_name is not null
    and b.object_type='PACKAGE'        
    and a.object_name=b.object_name

  • When I try to watch a video, the video gets all blurry and mixes with the other pages I'm using, and it doesn't stop throughout the video..what should I do?

    When I try to watch a video, the video gets all blurry and mixes with the other pages I'm using, and it doesn't stop throughout the video..what should I do?

    Hello Gemese,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning audio issues:
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Deleted songs on my iPod by sync with new Mac - ups! Can I sync with iPad to get all song back?

    deleted songs on my iPod when sync with new Mac - ups! However all songs are still on my iPad library. Can I sync with iPad to get all song back?

    You can use the transfer purchases feature to put the songs back into iTunes from the iPad - as long as the songs were purchased from iTunes.
    Connect the iPad, launch iTunes and then right click on the iPad name under devices and select Transfer Purchases. But ..... Before you do that - turn off auto sync first.
    Launch iTunes and the go to iTunes>Preferences>Devices>Prevent iPods, iPhones and iPads from syncing Automatically. Check the box at the bottom that says that. Then click OK. Then you can connect the iPad to the new Mac to transfer the purchases.
    This will only work for music purchased from iTunes. If you have music ripped from CD's, you will need a third party app - like TouchCopy.
    You can also download the songs again in iTunes as long as you use the same Apple ID. But read this about downloading past purchases as there are some restrictions based on where you live.
    http://support.apple.com/kb/HT2519

  • List of all cubes and business descriptions.

    What is the best place is to get a list of all cubes and ods's along with their business descriptions?  Also, where can we find a list of all cubes, ods's and process chains containing these tables?
    Thanks,
    MB

    go to metadata repository
    in RSA1 n u will get list of all cubes, odses , queries.....(which are active n in use)etc
    in SE11
    tables for infocube:-
    RSDCUBE
    RSICCONT
    for ODS:
    RSDODSo,
    or type RSDOD* n press f4
    u will get all tables of ODS
    for Process Chain:
    typr
    RSPC* n press f4 u will get all tables of process chain
    Edited by: Arun Purohit on Apr 25, 2008 8:13 PM

  • I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    Hi,
    According to your descriptioin, I don't think this is system problem, it should be Intel driver problem. It would be contact Intel to confirm this issue whether this is their driver problem.
    Roger Lu
    TechNet Community Support

  • My cover albums o iTunes are just fine But when i sinc my iPhone the covers get All wrong and mixed up

    My cover albums o iTunes are just fine But when i sinc my iPhone the covers get All wrong and mixed up. What can i do?

    Perhaps you should ask over in the iPad community, you may get better answers there.
    It's actually my fault that psoon ended up here ... s/he intially posted over at Home Sharing, and I tried a relocate request to Apple TV rather than iPad.
    psoon, here's a link to the iPad community:
    Using iPad

  • Upgraded to IOS 7 when I put my headphones in it gets all crackly and I can't hear the voice but without headphones it works just fine

    When I put my headphones in it gets all crackly and I can't hear the singing but when there's no headphones in it works perfectly fine

    It could be bad headphones. Try another pair. It could be gunk in the headphone jack. Try cleaning it out. It could be a bad headphone jack. Make an appointment at the Genius Bar at your local Apple Store.

  • BDC select query with addition based on all If conditions

    Hi can any one send me the select query with conditions like
    If Itab is not initial.
    Endif. and if possible with valiadations messages also.
    IF CHECK_NUMBER of CHECK_ADVICE of the flat file = PAYR-CHECT. Then update SAP field BSEG-XREF2 .
    9.     When Flat file check Number = PAYR-CHECT then Insert or Update Flat file RECEIPT_DATE into SAP field BSEG-XREF1.
    Please send me immediately.

    >     SELECT rsnum
    >            rspos
    >            matnr
    >            werks
    >         lgort
    >            shkzg
    >            aufnr
    >            bdmng
    >            enmng                      
    >            FROM  resb INTO  TABLE it_rsnum FOR ALL ENTRIES IN it_aufnr
    >            WHERE rsnum EQ it_aufnr-rsnum
    >            AND   xloek NE 'X'
    >            AND   postp NE 'X'
    >            AND   resbbdmng GE resbenmng.
    >   ENDIF.
    >
    > Database Table RESB: 40,000,000 Records (40 Million)
    > Internal Table   it_aufnr:  20,000 Entries
    > Entries selected from RESB: 150,000.
    >
    Hi,
    the problem is the big for all entries table.
    Your 20.000 records FAE will be split into SEVERAL sql statements depending on the size of the table.
    Where do you get the it_auftrn from?
    If it's another transparent table try to JOIN this table to your big table.
    SELECT rsnum
                rspos
                matnr
                werks
            lgort
                shkzg
                aufnr
                bdmng
                enmng                      
                FROM  resb JOIN tab_auftrn  on  resbrsnum = tab_auftrnauftrn
                AND   xloek NE 'X'
                AND   postp NE 'X'
                AND   resbbdmng GE resbenmng.
    Make sure that your WHERE filter and the JOIN keys on both tables are supported by indexes.
    150.000 records about of 40 Mio. can definitly be serviced by an appropriate index:
    i.e. Index fields (check your PK or secondary indexes):
    rsnum
    enmng                      
    aufnr
    bye
    yk

  • Excel Generating MDX Query With Crossjoins

    Hi All,
    I am having performance issues while using excel to browse SSAS cube.
    I ran the pro filer and captured the MDX queries and query which excel has auto generated has lot of cross joins 
    All i am doing is selecting 3 attributes in a dimension and i can't understand why excel is choosing to use cross joins
    Can any one please give me some options on how to make excel not use cross joins ?
    Query From BIDS :
    SELECT NON EMPTY { } ON COLUMNS, NON EMPTY { ([Orders].[Order No].[Order No].ALLMEMBERS * [Orders].[Order Status].[Order Status].ALLMEMBERS * [Orders].[Branch].[Branch].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [Sales_Detail]
    CELL PROPERTIES VALUE
    Query From Excel :
    SELECT 
    NON EMPTY CrossJoin(CrossJoin(Hierarchize({DrilldownLevel({[Orders].[Order No].[All]},,,INCLUDE_CALC_MEMBERS)}), Hierarchize({DrilldownLevel({[Orders].[Order Status].[All]},,,INCLUDE_CALC_MEMBERS)})), Hierarchize({DrilldownLevel({[Orders].[Branch].[All]},,,INCLUDE_CALC_MEMBERS)}))
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME,[Orders].[Order No].[Order No].[Branch],[Orders].[Order No].[Order No].[Legal Entity],[Orders].[Order No].[Order No].[Likelihood Of Deal],[Orders].[Order No].[Order No].[Order Status],[Orders].[Order
    No].[Order No].[Order Type],[Orders].[Order No].[Order No].[Products ID] ON COLUMNS  FROM [Sales_Detail] CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS

    Hi Satish,
    According to your description, you find Excel using a lot of CROSSJOIN when driving data from cube. It caused bad performance and you want to avoid it. Right?
    This is a known issue in Excel, it uses a certain template to build the cross join. It uses DrillDown.... functions for complex user filter selection when doing drill down. It's the default behavior of Excel and it hasn't been fixed yet.
    In this scenario, I suggest you build user hierarchy in your cube and use it in Excel when retrieving data into pivot table.
    See a similar thread below:
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/99a6a97f-518a-4fe6-b9bd-fa81f0a44587/controlling-the-mdx-constructed-by-excel-pivottables
    Reference:
    Binding an Excel table to the results of an MDX query
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Need MDX query to find something like date diff and Date Range for last 10 days

    Hi ,
    I need two Query .First Query for below;
    I have below data in table like.
    Cat      StartDate    EndDate     
    A    2000-01-01     2000-01-15   
    B    2000-01-02     2000-01-30    
    C    2000-01-01     2000-01-31    
    D    2000-02-01     2000-02-28    
    A    2000-01-10     2000-01-31    
    I need if Startdate and Date completes whole one month then set status =1 else  0 using MDX query.
    like this ;
    Cat      StartDate    EndDate       Status
    A    2000-01-01     2000-01-15    1
    B    2000-01-02     2000-01-30    0
    C    2000-01-01     2000-01-31    1
    D    2000-02-01     2000-02-28    1
    A    2000-01-10     2000-01-31    1
    In second query I need last 10 days from current days like;
    Now = 8/20/2014
    output will be ;
    8/20/2014
    8/19/2014
    8/18/2014
    8/17/2014
    8/16/2014
    8/15/2014
    8/14/2014
    8/13/2014
    8/12/2014
    8/11/2014
    8/10/2014
    Please help me .
    Thanks

    Hi Prajapati,
    In your scenario, you can use Properties and Datediff function to achieve your requirement. Since not know the structure of your cube, we cannot give you the esact query.
     I have tested it on the AdventureWorks cube, the query below is for you reference.
    WITH MEMBER [Measures].[StartDate]
    AS
    [Employee].[Employee Department].CURRENTMEMBER.PROPERTIES('Start Date')
    MEMBER [Measures].[WorkYear]
    AS
    DATEDIFF('yyyy',[Measures].[StartDate],NOW())
    MEMBER [Measures].[Status]
    AS
    IIF(DATEDIFF('yyyy',[Measures].[StartDate],NOW())>10,1,0)
    SELECT {[Measures].[StartDate],[Measures].[WorkYear],[Measures].[Status]} ON 0,
    [Employee].[Employee Department].[Employee].MEMBERS ON 1
    FROM [Adventure Works]
    Results
    Reference
    http://msdn.microsoft.com/en-us/library/ms144821.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • VO query with SQL table function (MS SQL) and update of parameter value

    Hello All,
    I use VO where Query is the SQL function that returns a table (MS SQL Server):
    select * from getData('XXXX')
    where ‘ХХХХ’ should be binded to the specific ID (e.g. selected row in the tree view on the another facet).
    More details: I have two facets. Left facet contains a tree view that displays the list of the projects grouped by industry. Right facet contains a pivot table (source query is a ‘table function’ from above).
    I want to have the pivot table (right facet) to be updated with the data specific to the project (selected row in the tree).
    I know about the possibility to dynamically update the where clause (setNamedWhereClauseParam method), but in my case there is no ‘where’ clause. Is there any kind of ‘bind variable’ to be used to refresh the data?
    Any guidance, ideas, examples are greatly welcome.
    With best wishes,
    Anatol

    Are the columns that are being selected different each time or the same?
    If they are the same then you don't need to do any additional binding - the pivot table is connected to the VO at design time and it wouldn't care if the underlying from/where have changed.
    If on the other hand your columns change (but the number of them stay the same) then use aliases for the initial definition (select ename a, id b, salary c) and then when you change the VO change the mapping but keep the names (select dname a, moo b, foo c).
    If the whole query is changing and you don't know in advance the structure - then there is no out of the box solution with a pivot table - you'll need to code a backing bean that will provide the data model to the pivot table based on your query.

Maybe you are looking for