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


MDX FLOW


MDX FLOW

Author
Message
sathiyan00
sathiyan00
SSC-Enthusiastic
SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)

Group: General Forum Members
Points: 137 Visits: 475
Hi friends,

I'm new to mdx . anyone please explain the flow of this or any simple mdx expression.so that i can get some idea about mdx expressions.

EXPRESSION:


WITH SET [top subcategories for internet savvy states] AS
GENERATE( FILTER({[Order Date].[MyHierarchy].[Calendar Year].[2003].Children},
([measures].[Order Quantity])>100), CROSSJOIN( [Order Date].[MyHierarchy].currentmember,
TOPCOUNT([Dim Product].[English Product Name].members, 2, [measures].[Order Quantity] ) ) )
SELECT [top subcategories for internet savvy states] ON ROWS, {[measures].[Order Quantity]} ON COLUMNS FROM [dec17_cube]



thanks
Rahul
robert.gerald.taylor
robert.gerald.taylor
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1820 Visits: 1493
sathiyan00 (1/7/2013)
Hi friends,

I'm new to mdx . anyone please explain the flow of this or any simple mdx expression.so that i can get some idea about mdx expressions.

EXPRESSION:


WITH SET [top subcategories for internet savvy states] AS
GENERATE( FILTER({[Order Date].[MyHierarchy].[Calendar Year].[2003].Children},
([measures].[Order Quantity])>100), CROSSJOIN( [Order Date].[MyHierarchy].currentmember,
TOPCOUNT([Dim Product].[English Product Name].members, 2, [measures].[Order Quantity] ) ) )
SELECT [top subcategories for internet savvy states] ON ROWS, {[measures].[Order Quantity]} ON COLUMNS FROM [dec17_cube]

Take a look at the Stairway to MDX here on SSC: http://www.sqlservercentral.com/stairway/72404/ for an intro to MDX.

Also look at getting a MDX book. An older book, but a pretty decent one is: http://www.amazon.com/Fast-Track-MDX-Mark-Whitehorn/dp/1846281741/ref=sr_1_1?ie=UTF8&qid=1357565829&sr=8-1&keywords=fast+track+to+mdx

HTH,
Rob
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