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!