dbTalk Databases Forums  

Currency Data Type and Division Precision Issue

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


Discuss Currency Data Type and Division Precision Issue in the microsoft.public.sqlserver.olap forum.



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

Default Currency Data Type and Division Precision Issue - 08-19-2003 , 12:55 PM






I have a cube with the following measures:
*Name *Data Type
StoreSales Currency
UnitSales Decimal

It includes the following Calculated Members
*Name
SalesPerUnit

*Value
[Measures].[Store Sales]/[Measures].[Unit Sales]

When I look at my data, the Sum of StoreSales is
110.42 and UnitSales is 54.62. The SalesPerUnit should be
2.0208, however, the value in my pivot table is 2.0448.
It looks like the calculated member is taking the
StoreSales 110.42 and dividing it by 54 (whole number)
instead of 54.62.

Is this a know issue in Analysis Services?

Reply With Quote
  #2  
Old   
Gary
 
Posts: n/a

Default Currency Data Type and Division Precision Issue - 08-20-2003 , 12:11 PM






More Info...If I change the StoreSales Data Type to
Decimal, the formula works. Unfortunately, we have a
large number of cubes that have measures of type currency.


Quote:
-----Original Message-----
I have a cube with the following measures:
*Name *Data Type
StoreSales Currency
UnitSales Decimal

It includes the following Calculated Members
*Name
SalesPerUnit

*Value
[Measures].[Store Sales]/[Measures].[Unit Sales]

When I look at my data, the Sum of StoreSales is
110.42 and UnitSales is 54.62. The SalesPerUnit should
be
2.0208, however, the value in my pivot table is 2.0448.
It looks like the calculated member is taking the
StoreSales 110.42 and dividing it by 54 (whole number)
instead of 54.62.

Is this a know issue in Analysis Services?
.


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.