Null fact table measure fields are treated differently by Analysis
Services, so a virtual cube may be best:
http://groups.google.com/groups?q=gr...qlserver.olap+
author

uri&hl=en&lr=&ie=UTF-8&as_drrb=b&as_mind=1&as_minm=1&as_miny=200
4&as_maxd=1&as_maxm=5&as_maxy=2004&selm=OW8KTKyJEH A.1132%40TK2MSFTNGP12.
phx.gbl&rnum=5
Quote:
|
From: Deepak Puri (deepak_puri (AT) progressive (DOT) com)
|
Subject: Re: Minimum Measure with NULLs
View: Complete Thread (2 articles)
Original Format
Newsgroups: microsoft.public.sqlserver.olap
Date: 2004-04-20 14:59:54 PST
This is a well-known issue when dealing with null data:
http://support.microsoft.com/default...b;en-us;244650
Quote:
|
INF: Working with NULL Values in OLAP Services
|
..
Question: How does OLAP Services read NULL measure data in a fact table?
Answer: If there is no record in the fact table for a certain
combination of dimension members, (such as [1997].[Quarter1].[January],
[USA].[Texas].[Dallas] ) then, on cube processing, OLAP Services treats
the corresponding cell in the cube as empty. However, when there are
records in the fact table that have one or more null measure columns,
OLAP Services assigns a 0 value to the corresponding cells in the cube.
This behavior may not always be desirable, particularly, when the user
has to make a distinction in the cube's measure between a fact table
NULL and zero values. If such a distinction must be made, then the user
has to make sure that the fact table (or tables) do not have records
with empty measure columns. One solution is to break these empty measure
columns into different fact tables. The steps necessary to implement
this solution are:
Create multiple fact tables. One for each measure that needs a
distinction to be made between a NULL and a zero value.
Create a cube based on each fact table.
Create a virtual cube that includes all the base cubes to view all the
measures together.
In your case, presumably the fact records with NULL need to be excluded.
A simple solution would be to configure a SQL
"Source Table Filter" expression for the cube, like:
"FactTable"."Temp" is not null
- Deepak
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!