dbTalk Databases Forums  

Tricky Dimension

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


Discuss Tricky Dimension in the microsoft.public.sqlserver.olap forum.



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

Default Tricky Dimension - 09-07-2004 , 05:47 PM






Hello all, I have a newbie problem.

I have a cube with fabrication lots, phisical tables has 2 fields:
refurbished, rejected.

These fields can have: 0,0 (lot ok); 1,0 (lot refurbished); 0,1 (rejected);
but never 1,1.

I I'd like to separate them using an adittional dimension with members: ok,
refurbished, rejected. But I can't find how

¿Some help?
¿Some alternate way to do it?
¿Need to provide more info.. like what?

Thanks

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Tricky Dimension - 09-07-2004 , 07:45 PM






You can define a view on the table, with an additional field like
StatusID = (FieldA*2) + FieldB. Then create a Status dimension table
with 3 entries, join via StatusID:

Key Name
--- ----
0 Lot OK
1 Lot Rejected
2 Lot Refurbished



- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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.