User347430248 posted
Hi Shuaib,
I suggest you to calculate the growth in SQL query and use the same query in SSRS report.
You can refer the query below as an example.
ITH SalePercentage_cte AS (
SELECT
ROW_NUMBER() OVER(PARTITION BY ProductName,SalesYear ORDER BY ProductName,SalesYear, SalesMonth) rn,
ProductName,
SalesYear,
SalesMonth,
Sales
FROM @Sales
)
SELECT s1.ProductName,s1.SalesYear,s1.SalesMonth,
CAST(( ( s1.Sales - s2.Sales ) / s2.Sales ) * 100.0 AS DECIMAL(7, 2)) AS Percentage
FROM SalePercentage_cte AS s1
LEFT JOIN SalePercentage_cte s2
ON s1.rn = s2.rn + 1
AND s1.ProductName = s2.ProductName
AND s1.SalesYear = s2.SalesYear
Reference:
How to calculate the increasing percentage of sales each month using T-SQL
Further, you can try to modify the query to get expected result.
Regards
Deepak