• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 527
  • Last Modified:

Nulls turning into zeros in Analysis Services 2000 Cube

Hello Experts

I have a fact table in SQL2000. There are some columns in the fact table used as measures in an Analysis Services 2000.
In the SQL table, there are several rows that contain null values. In the cube, these appear as zeros.

Is there a way I can tell Analysis services to preserve the null values and not convert them to zeros?
0
molar
Asked:
molar
  • 4
  • 3
  • 2
2 Solutions
 
rw3adminCommented:
not to sure about Analysis, but is default for that column set to 0? if yes then it will insert a 0 for every NULL
0
 
rw3adminCommented:
hold on, isnt the idea of a cube is to save the summary data? if your Summary is count then you are going to get a 0 and as I said I am not sure about analysis ... but maybe other summary operations will also do the same,
0
 
molarAuthor Commented:
Hi rw3admin

There is no default on the SQL column. In the SQL table, the contents correctly reports as null for some rows.

Analysis Services can be used for Summaries but it also holds the detailed data on each member. These member variables contain 0 as a value instead of null.

Where I'm aggregating, the aggregations are a sum rather than a count. For the purposes of the report it doesn't matter a great deal how they aggregate it is the detailed member variables i am interested in.

0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
regbesCommented:
Hi molar,

why dont you do a drill through then?

rw3admin is right AS saves the 0 so that the aggregations will work

if you do a drill through you can get to the data you want then your OLAP client will be able to drill through to the base data in your fact table


0
 
molarAuthor Commented:
Hi regbes, are you saying that AS can't hold a null value?

The client tool I am using has more formatting options for OLAp data as opposed to SQL data, and I'm trying to reproduce the look of an existing report.  That's why I'd rather stick to doing it in a cube if I can.

0
 
molarAuthor Commented:
Looking at Books Online, it looks as though null value are possible as there is a section on calculated members that reads...

"You can use the following techniques when you create calculated members:

Null keyword
You can use the keyword Null to create a calculated member whose value is null."



0
 
regbesCommented:
molar,

sorry im at home so cant test but i havent been able to get my base data to show the underlying nulls, you should be able to add a calculation(calculated measure) to the cube and using some sotr of iif have it return a null, the base data would of been aggragated hence getting rid of the nulls  
0
 
molarAuthor Commented:
I  found this on null values in  "MDX Solutions Second Edition" by George Spofford and others, published by Wiley Press.

"In Analysis Services 2005, empty values in fact table measure columns can be captured as NULL cell values
when the measure’s NullProcessing property is set to “Preserve,” which is a change from Analysis Services 2000 in which empty values measure columns resulted in zero for cell values."

Thanks for your help guys. It looks like this is a limitation of SSAS2000 after all.

0
 
regbesCommented:
molar,
> it is the detailed member variables i am interested in.

as soon as my users start drillong down and showing a lot of detail (over 3000 rows) in their OLAP client (mainly Excel for us) things start to get very slow.

if the report is static this may not be an issue for you but if your users slice and dice with large result sets watch out for performance hits
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now