I am trying to find the minimum value across three columns. I figure this could be found using a simple if statement however I am having issues with the null values that may be in some of the columns. here is an example of how my table is set up in webi. The last column is my calculated column which needs to be corrected to account for null values
Item# | Days Aged | Days to Submit | Days to Escalate | MINIMUM
1 271 11 235 11
2 322 NULL 59 59
3 148 86 NULL ERROR
4 58 NULL NULL ERROR
This is my variable:
=If([Days Aged]<[Days to Submit]) Then(If([Days Aged]<[Days Aged Escalate]) Then [Days Aged] ElseIf( [Days Aged Escalate]<[Days to Submit]) Then [Days Aged Escalate]) ElseIf([Days to Submit]<[Days Aged Escalate]) Then [Days to Submit] Else [Days Aged Escalate]
Im Missing something but cant figure out what it is. Thanks!!
[Moderator Edit: Added code formatting - Andreas]
bayliss59101 (BOB member since 2018-01-02)