dbTalk Databases Forums  

OLAP joined Fact Tables AND MDX

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


Discuss OLAP joined Fact Tables AND MDX in the microsoft.public.sqlserver.olap forum.



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

Default OLAP joined Fact Tables AND MDX - 07-15-2004 , 02:29 PM






I am attempting to get information out of a joined fact table. Using the Food Mart Cube there is a store dimension. The zip code is not used in the Store dimension. What would a MDX query look like that would get all Zip code for a specific state from the Store dimension.

Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: OLAP joined Fact Tables AND MDX - 07-16-2004 , 08:37 AM






You should create a Member Property, say ZipNumber, for the Store Name level of the Store dimension, using Dimension Editor.
Then you can access that property in MDX:

with Member [Measures].[Zip] as 'store.currentmember.properties("ZipNumber")'
select
{[Measures].[zip]} on columns,
[store Name].members on rows
from Sales

You can check out these topics in BOL for more detailed info.

HTH,
--
Brian
www.geocities.com/brianaltmann/olap.html


"PCK" wrote:

Quote:
I am attempting to get information out of a joined fact table. Using the Food Mart Cube there is a store dimension. The zip code is not used in the Store dimension. What would a MDX query look like that would get all Zip code for a specific state from the Store dimension.

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.