永洪社区

标题: 自由表格间计算 [打印本页]

作者: yhdata_3NosmMBD    时间: 2023-5-12 10:31
标题: 自由表格间计算
自由表的格间计算,我有个思路  如果 left(1) -1 > 0 并且 left(5)不包含 ”技术员“这三个字 ,结果为 (left(1) -1 )*100,


否则 返回 0 ,  请问具体应该怎么写

作者: yhdata_ruby    时间: 2023-5-12 10:36
使用if来写,用and连接,可以参考https://www.yonghongtech.com/rea ... oom_highlightsub=if
作者: yhdata_3NosmMBD    时间: 2023-5-12 10:45
yhdata_ruby 发表于 2023-5-12 10:36
使用if来写,用and连接,可以参考https://www.yonghongtech.com/real-help/Z-Suite/10.0/ch/logicalfunctio ...

请问 不包含什么什么  这个函数是用哪个
作者: yhdata_ruby    时间: 2023-5-12 10:46
yhdata_3NosmMBD 发表于 2023-5-12 10:45
请问 不包含什么什么  这个函数是用哪个

你的left(5)字段数据是什么样的啊
作者: yhdata_3NosmMBD    时间: 2023-5-12 10:47
yhdata_ruby 发表于 2023-5-12 10:46
你的left(5)字段数据是什么样的啊

文本
作者: yhdata_ruby    时间: 2023-5-12 10:48
yhdata_3NosmMBD 发表于 2023-5-12 10:47
文本

不是类型,意思是是什么样的截图看一下
作者: yhdata_3NosmMBD    时间: 2023-5-12 10:52
xxxx技术员
xxxxx研究员   需要把技术员选出来
作者: yhdata_yzm    时间: 2023-5-12 11:08
看看你的自由表是怎么放数据的呢,这样用left可能会有误。
建议通过计算列来些
if(col['列']-1>0 && indexof(col['列1'],'技术员')>-1)
then (col['列']-1)*100
else 0
end




欢迎光临 永洪社区 (http://club.yonghongtech.com/) Powered by Discuz! X3.4