Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Nulls turning into zeros in Analysis Services 2000 Cube

Posted on 2006-11-10
9
Medium Priority
?
525 Views
Last Modified: 2008-02-01
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
Comment
Question by:molar
  • 4
  • 3
  • 2
9 Comments
 
LVL 11

Expert Comment

by:rw3admin
ID: 17916474
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
 
LVL 11

Expert Comment

by:rw3admin
ID: 17916484
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
 
LVL 2

Author Comment

by:molar
ID: 17916643
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 11

Accepted Solution

by:
regbes earned 2000 total points
ID: 17916914
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
 
LVL 2

Author Comment

by:molar
ID: 17917004
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
 
LVL 2

Author Comment

by:molar
ID: 17917039
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
 
LVL 11

Assisted Solution

by:regbes
regbes earned 2000 total points
ID: 17917235
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
 
LVL 2

Author Comment

by:molar
ID: 17919964
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
 
LVL 11

Expert Comment

by:regbes
ID: 17920700
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question