Forum Discussion
Anonymous
6 years agoNot applicable
Nested If Statement
Hi, I'm trying to achieve the following outcome in Bi using nested If Statements. If a items status is invalid I want to do a datediff formula (This part works) If the status is invalid and...
- Anonymous6 years ago
HI Anonymous ,
I'd like to suggest you use if statement version, it looks simpler than switch function:
Formula = IF ( JEB_GAS[pdf gas cert status (groups)] = "Invalid", IF ( JEB_GAS[pdf cert date].[Date] = "", "0", DATEDIFF ( JEB_GAS[pdf cert date], JEB_GAS[index run date].[Date], DAY ) ), "0" )Regards,
Xiaoxin Sheng
Anonymous
6 years agoNot applicable
HI Anonymous ,
I'd like to suggest you use if statement version, it looks simpler than switch function:
Formula =
IF (
JEB_GAS[pdf gas cert status (groups)] = "Invalid",
IF (
JEB_GAS[pdf cert date].[Date] = "",
"0",
DATEDIFF ( JEB_GAS[pdf cert date], JEB_GAS[index run date].[Date], DAY )
),
"0"
)
Regards,
Xiaoxin Sheng