Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

MDX query into Cube and then into Excel Expand / Collapse
Author
Message
Posted Thursday, July 15, 2010 5:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, September 10, 2012 5:38 AM
Points: 8, Visits: 116
Hi,

Using : Analysis Services 2008, Excel 2007

I've created a Cube and am able to connect from Excel.

Cube does have some Calculated Measures, Named Sets and KPIs.

Now, I'm been writing some MDX in MS SQL Server Management Studio.

How do I write MDX queries and make them available through the Cube?
Can I create Cube Views / Cube sprocs that can be visible through the Cube?

I've already got Calculated Measures, Named Sets and KPI's.

I've written some MDX, which I can run successfully through SSMS, for example as below, how would I bring this directly into the Cube as a view or sproc or something?
I would like to use this MDX through the Cube into Excel.

WITH
SET [2009 TO 2012] AS '{[Fiscal Year].[2009]:[Fiscal Year].[2012]}'
SELECT [2009 TO 2012] ON COLUMNS,
DESCENDANTS([Company].[Region - Country].[Region].&[EMEA]) ON ROWS
FROM [DW]
WHERE [Date].&[2010-07-13T11:36:29]


thanks,
Amrit
Post #953007
Posted Thursday, November 4, 2010 9:02 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, September 26, 2014 7:26 AM
Points: 66, Visits: 322
It's very easy to do with PowerPivot in Excel 2010 - that's essentially what it was designed to do. Not sure how to do it in Excel 2008. If you're thinking of making the upgrade leap, you now have one more reason to give it a shot.
Post #1015957
Posted Thursday, November 4, 2010 9:48 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, September 15, 2014 6:36 AM
Points: 8, Visits: 88
you can try assemblies ..but COM assemblies were deprecated in SQL Server 2008 Analysis Services (SSAS)
http://technet.microsoft.com/en-us/library/ms175398.aspx .
Post #1015990
Posted Thursday, November 4, 2010 3:03 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, September 26, 2014 7:26 AM
Points: 66, Visits: 322
Several descriptions of MDX to Excel options I ran across when researching an MDX issue today:

http://social.msdn.microsoft.com/Forums/en/sqlanalysisservices/thread/6d2f3059-6230-410b-98ef-e6ba51be2290

http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/e4827a4c-d576-4f3a-882a-af1ec80ccc43

One of those may give you what you need.
Post #1016258
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse