SharePoint计算如果语句不起作用

发布于 2025-01-30 05:57:39 字数 367 浏览 3 评论 0原文

我已经做了很多谷歌搜索,没有解决方案为我找到工作。 在屏幕截图下,我翻译了它说的内容。

= if(isblank([todate]),“”,[todate] - [Daystowarn] 这仅引发语法错误。我尝试了许多不同的解决方案,但似乎没有用。 我什至在我的测试环境中构建了一个复制品,以查看是否有效,这也是如此。我没有选择,我不知道我在做什么错。

I've done a lot of googling and no solution I've found works for me.
Under the screenshot I have translated what it says.
1

=IF(ISBLANK([ToDate]),"",[ToDate]-[DaysToWarn]
This only throws an syntax error. I've tried many different solutions but none of which seems to work.
I even built a replica in my test environment to see if that worked, which it did. I'm out of options and I don't know what I am doing wrong.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三生一梦 2025-02-06 05:57:39

问题很可能是由于参数分离器引起的。 说:

本主题中的所有示例公式使用逗号“,”作为参数定界符字符。在某些国家 /地区,逗号被保留为十进制标记。在这样的国家/地区,创建计算字段的用户必须使用semi-colons “;”作为定界线字符。

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

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

The problem, most likely, is due to the parameter separator. The documentation says:

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 I'm correct to assume your localization is Swedish, the decimal separator is ',' (comma), and hence the parameter separator to be used shall be ';' (semicolon).

=IF(ISBLANK([ToDate]); ""; [ToDate]-[DaysToWarn])
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文