I have created a script that does some formulas in the select statement.
SUM(PMCLY.[Net Sale LY]/(PMC.[Net Sales] - PMCLY.[Net Sale LY])) AS 'VAR Vs LY %'
When I run the script I am getting following error :
Divide by zero error encountered.
How can I catch when there is a 0 value and just display 0 instead?