Hi all.
I’m sure this will be an easy one for most of you, but I’m not fluent in C#.
As the title says, I have a calculated field in a BAQ that I can’t quite find the right syntax for. Can someone tell me why the uncommented code in this screenshot works fine, but when I try to use it in a condition statement (the commented code), it errors out?
Here is the code for usability:
replace(convert(nvarchar, round((MonthlySalesRunning.Calculated_DivisionTotal / TotDivBudgNeg * 100), 2, 4)), '0000', '') + '%'
---(case when MonthlySalesRunning.Calculated_DivisionTotal is null then '0.00%' else replace(convert(nvarchar, round((MonthlySalesRunning.Calculated_DivisionTotal / TotDivBudgNeg * 100), 2, 4)), '0000', '') + '%')
Thank you in advance!