SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


MDX query into Cube and then into Excel


MDX query into Cube and then into Excel

Author
Message
amritpal.parmar
amritpal.parmar
SSC Rookie
SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)

Group: General Forum Members
Points: 36 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
George W (no relation)
George W (no relation)
Old Hand
Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)

Group: General Forum Members
Points: 324 Visits: 427
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.
fazilu
fazilu
Valued Member
Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)

Group: General Forum Members
Points: 62 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 .
George W (no relation)
George W (no relation)
Old Hand
Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)

Group: General Forum Members
Points: 324 Visits: 427
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search