如果语句不起作用,则计算 Sharepoint

Sharepoint calculated if statement not working

我进行了大量谷歌搜索,但没有找到适合我的解决方案。 在屏幕截图下,我已经翻译了它所说的内容。

=IF(ISBLANK([ToDate]),"",[ToDate]-[DaysToWarn] 这只会引发语法错误。我尝试了许多不同的解决方案,但 none 似乎有效。 我什至在我的测试环境中构建了一个副本,看看它是否有效,确实如此。我没有选择,我不知道我做错了什么。

问题很可能是由于参数分隔符引起的。 The documentation 说:

All example formulas in this topic use commas "," as the parameter delimiter character. In some countries, the comma is reserved for use as the decimal mark. In such countries, users creating a calculated field must use semi-colons ";" as the delimiter character.

如果我假设您的本地化是瑞典语是正确的,则小数点分隔符是 ','(逗号),因此要使用的参数分隔符应是 ';'(分号)。

=IF(ISBLANK([ToDate]); ""; [ToDate]-[DaysToWarn])