Forum Discussion
IF statement set numeric value
- 7 years ago
Anonymous not ideal but can you +0 to the end of it and see if that fixes it?
Anonymous what data type is the responsetag?
can you paste some of your data, i have tried to replicate your issue but not coming up with the same problem, wondering if its an underlying issue in your data
- Anonymous7 years agoNot applicable
Here is a sample of my data
1.
Response target
20/01/2019 16:00:00
Response Stop
27/01/2019 05:05:05
Response Tag : -2095
= IF([ResponseTargetDate]<>BLANK(),DATEDIFF([ResponseTargetDate],[ResponseSLAStoppedDate],MINUTE),0)
Status_SLA_Response: 0=IF([Response Tag]<0,1,0)2.Response target
28/01/2019 16:00:00
Response Stop
28/01/2019 20:31:40
Response Tag : 271
Status_SLA_Response: BlankCould not find the mistake !- vanessafvg7 years agoCommunity Champion
i have put your data into a model and am not experiencing what you are
see attached, how does this differ from what you doing Anonymous
- Anonymous7 years agoNot applicable
Thx Vanessa,
It's exactly what I'm doing.
To get the wrong result, I put the cursor to the rigth of the formulaStatus_SLA_Response = IF([ResponseTag]<0,1,0) and click en the Enter key.
0 remains 0 and 1 becomes blank :smileysad:
I tried thisStatus_SLA_Response =SWITCH([ResponseTag]<0,5,[ResponseTag]>=0,0,0)
But same problem, only the 0 value is displayed.