Link to home
Start Free TrialLog in
Avatar of shabz12
shabz12

asked on

SSRS Percentage calculation

Hi

I am using the following expression within SSRS to work out a percentage but I am getting the value of 0.0% when I know that is inncoorect. Could you please take a look at the query below an d tell me where I am going wrong

=iif(Fields!Stage_Name.Value = "Stage 99 - Funded Loan", iif(sum(Fields!Stage_Count.Value) = 0, 0, sum(Fields!Stage_Count.Value)), 0) / iif(Fields!Stage_Name.Value = "Stage 1 - App Started", iif(sum(Fields!Stage_Count.Value) = 0, 0, sum(Fields!Stage_Count.Value)), 0)
ASKER CERTIFIED SOLUTION
Avatar of ValentinoV
ValentinoV
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Looks like divide by zero error.