Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Analysis Services (2000)
 Cube Processing -- grouping NULL & Invalid values

Author  Topic 

kri
Starting Member

1 Post

Posted - 2004-10-11 : 21:18:22
Say I have a fact table with two columns "MarketId" and "Sales" and a separate dimension table for "MarketId".

Valid values for "MarketId" dimension are 1,2 and -255(unknown market).

Fact table contains five rows
1 1000
2 2000
0 1000
NULL 1000
1 1000.

Is there a way during cube processing, the values 0 and NULL in fact table can be grouped under -255 (unknown market)?

Thanks

clarkbaker1964
Constraint Violating Yak Guru

428 Posts

Posted - 2004-10-11 : 21:38:20
You could build your input query to use the Case logic or IsNull function to replace values that are null with -255.
I don't know that much about Cube process but it would be simple to base it on a Select statement that took care of that for you.

Go to Top of Page
   

- Advertisement -