on 07-25-2016 3:34 PM
How to handle Divide by zero error in universe, when data source is BW.
I tried to create a CASE statement but its not working
CASE WHEN @Select(Report Objects\Forecast) = 0 THEN 0 ELSE ((@Select(Report Objects\Orders)/@Select(Report Objects\Forecast))*100) END
Getting following error when tried case statement
also tried ifElse condition
ifElse(@Select(Report Objects\Forecast) = 0, 0, ((@Select(Report Objects\Orders)/@Select(Report Objects\Forecast))*100))
but still getting the error.
Is there any other function to use?
Environment: Information Design Tool 4.1
Developing Design Studio Application (Webi not available to handle this)
use this.
CASE WHEN @Select(Report Objects\Forecast) = 0 THEN toDecimal(0) ELSE ((@Select(Report Objects\Orders)/@Select(Report Objects\Forecast))*100) END
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.