dbTalk Databases Forums  

Virtual Dimension in MDX query

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Virtual Dimension in MDX query in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shrwan
 
Posts: n/a

Default Virtual Dimension in MDX query - 10-06-2004 , 05:04 AM






Can anyone give me a suggestion on this. I'm having problem making a query
in which i need virtual dimension in one of the axis. For testing I tried to
execute it in MDX Sample Application it from "Warehouse and Sales" Cube of
FoodMart 2000:

SELECT
{[Store Type].[All Store Type]} ON COLUMNS,
{[Product].[All Products].[Non-Consumable]} ON ROWS,
{[Time]} ON PAGES
FROM [Warehouse and Sales]



Reply With Quote
  #2  
Old   
Chris Webb
 
Posts: n/a

Default RE: Virtual Dimension in MDX query - 10-06-2004 , 05:29 AM






There are two problems you're running into here:
1) MDX Sample App doesn't support queries with more than two axes - you'll
have to remove your PAGES axis before it will run
2) The Store Type virtual dimension isn't present in the Warehouse and Sales
cube, so you can't use it in a query! You would need to add the dimension to
the cube before you can use it.

HTH,

Chris

"shrwan" wrote:

Quote:
Can anyone give me a suggestion on this. I'm having problem making a query
in which i need virtual dimension in one of the axis. For testing I tried to
execute it in MDX Sample Application it from "Warehouse and Sales" Cube of
FoodMart 2000:

SELECT
{[Store Type].[All Store Type]} ON COLUMNS,
{[Product].[All Products].[Non-Consumable]} ON ROWS,
{[Time]} ON PAGES
FROM [Warehouse and Sales]




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.