dbTalk Databases Forums  

Data types on measures

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


Discuss Data types on measures in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Jenkins
 
Posts: n/a

Default Data types on measures - 01-18-2004 , 05:51 PM






Hi,

I have a fact table that has a number of measures in it, and I have
allocated the data type to be "integer". I know this size if
sufficient at the detail level (ie. product by month by geography).
However, when aggregated to higher levels of each of the three
dimensions, there is every possibility that the measures will be
greater than the 2.147 billion limit that an integer allows.

Does this matter? Is the data type allocated to a measure in a cube
purely as a reference to the source fact table, or does Analysis
Services use it for allocating space for aggregations and therefore
require it to be large enough for the aggregations at the upper levels
of dimensions?

Thanks,
Steve.

Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Data types on measures - 01-18-2004 , 09:26 PM






Yes it matters. The data type must be capable of containing the fully
aggregated value.

public @ the domain below
www.tomchester.net

"Steve Jenkins" <sjenkins (AT) au (DOT) imshealth.com> wrote

Quote:
Hi,

I have a fact table that has a number of measures in it, and I have
allocated the data type to be "integer". I know this size if
sufficient at the detail level (ie. product by month by geography).
However, when aggregated to higher levels of each of the three
dimensions, there is every possibility that the measures will be
greater than the 2.147 billion limit that an integer allows.

Does this matter? Is the data type allocated to a measure in a cube
purely as a reference to the source fact table, or does Analysis
Services use it for allocating space for aggregations and therefore
require it to be large enough for the aggregations at the upper levels
of dimensions?

Thanks,
Steve.



Reply With Quote
  #3  
Old   
Steve Jenkins
 
Posts: n/a

Default Re: Data types on measures - 01-19-2004 , 03:56 PM



Thanks for this Tom. It seems that the measure will overflow and go into negatives, as I've just found out in a cube of mine. I'll upgrade them to bigint.

Cheers,
Steve.

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.