Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Time Intelligence with Calculated Member gives error: Type Mismatch...There is a type mismatch of the '/' operator

$
0
0

Hi!

For the error in the subject, it gives the line in my MDX script, which is the following calculated member:

CREATE MEMBER CURRENTCUBE.[Measures].ALOS
  AS [Measures].[Total Patient Days] / [Measures].[Patient Encounter Count],
FORMAT_STRING = "#,##0.00;(#,##0.00)[Red];0.00;0",
VISIBLE = 1 ,  
ASSOCIATED_MEASURE_GROUP = 'Patient Encounter';     

I checked the data source [Total Patient Days] in SQL Server and all rows for this field are numeric.  In the same fact table, [Patient Encounter Count] is just the count of the primary key field.  When I drag the [ALOS] to the data area for any dimensions in the Row or Column are, the ALOS gives the correct values.  However, when I use the Microsoft time intelligence wizard to create calculated members such as QTD it gives the #VALUE! value in the cell.  When I mouse over, the following error message is displayed:

Value: #VALUE!
    The following system error occurred: Type mismatch. . MdxScript(PDR)(12,6) There is a Type mismatch for the '/' operator.
Total: ALOS
Row Member: 2012 - 1 - Total
Column Member: Quarter to Date

Here is an image of the error:

Any advice will be greatly appreciated!


Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>