once you apply aggregation on field, you cant access the inidvidual values of same field. so you need to do either of the belowSELECT SUM(F.SalesAmount) OVER () AS SumSalesAmt, (F.SalesAmount * 1) AS CalculatedAmtFROM dbo.FactInternetSales AS FINNER JOIN dbo.DimProduct AS DON F.ProductKey = D.ProductKeyWHERE D.EnglishProductName = 'BK-R64Y-42'
or SELECT SUM(F.SalesAmount) AS SumSalesAmt, SUM(F.SalesAmount * 1) AS CalculatedAmtFROM dbo.FactInternetSales AS FINNER JOIN dbo.DimProduct AS DON F.ProductKey = D.ProductKeyWHERE D.EnglishProductName = 'BK-R64Y-42'
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs