Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

NaN Infinity (how to control these)

$
0
0
SELECT FLATTENED[CODE14] AS [CODE], 2 AS [PARTICIPANT.ID], 'UNITS' AS [FCST.TYP], 'FCST' AS [FCST.VERSION],(SELECT $TIME AS [QUARTER] ,[PIZZA UNITS] AS [VALUE] ,PREDICTVARIANCE([PIZZA UNITS]) AS [VARIANCE] ,PREDICTSTDEV([PIZZA UNITS]) AS [STDEV] FROM PredictTimeSeries([PIZZA_UNITS_FCST].[PIZZA UNITS], 4) AS t) AS FCST FROM [PIZZA_UNITS_FCST];Where value, variance and stdev I am getting a few NAN and Infinity errors. How would you control those? I am trying to insert this script into a flat table using SSIS but I am just having a doozy of a time getting this into the table. I did do some backdoor nonsense setting everything to Max nvarchar and used some transformation task to change the data and then switch it back again and it worked, for the most part. But I'd like to keep the float data type for reporting etc....Thank you

Viewing all articles
Browse latest Browse all 1341

Trending Articles