Hi
In 2 rows of codes I have it is bringing back NULL values. I ma going to sue this query for an Excel sheet eventually, so want to display 0 instead of null. In most of the code I have it working but in these 2 lines I cannot get it working, would someone help with the syntax. I have tried the ISNULL in may places on the of both the CASE WHEN and the SUM but I cant seem to get it working. Any ideas please guys. Thanks
CASE WHEN [W/DaysBeforeZeroStock]<= 0 THEN 0 ELSE [W/DaysBeforeZeroStock] END AS [W/DaysBeforeZeroStock],
SUM((dbo.[148-vwMinMaxStockLevel_Feed v2 p2].[On WO])) AS M3onWO,
In 2 rows of codes I have it is bringing back NULL values. I ma going to sue this query for an Excel sheet eventually, so want to display 0 instead of null. In most of the code I have it working but in these 2 lines I cannot get it working, would someone help with the syntax. I have tried the ISNULL in may places on the of both the CASE WHEN and the SUM but I cant seem to get it working. Any ideas please guys. Thanks
CASE WHEN [W/DaysBeforeZeroStock]<= 0 THEN 0 ELSE [W/DaysBeforeZeroStock] END AS [W/DaysBeforeZeroStock],
SUM((dbo.[148-vwMinMaxStockLevel_Feed v2 p2].[On WO])) AS M3onWO,