我正在尝试将这个嵌套的if语句翻译成set analysis expression。
=Sum(if(Project=96,WorkTime*39.273,if(Project=92 and WorkType<>65,WorkTime*32.426,WorkTime*42.251)))
这就是我所做的
=Sum({$<Project={96}>}WorkTime*39.273) or Sum({$<Project = {96}, WorkType -={65}>} WorkTime*32.426) or Sum({$<Project = {96}>} WorkTime*42.251)
我在WorkType -= {65}
附近收到错误,问题是运营商。我甚至用&lt;&gt;尝试过它,仍然是一个错误。
答案 0 :(得分:0)
如果您只想忽略某些过滤器,可以使用if表达式和set分析来忽略这些字段,如:
=Sum({<Field1_to_ignore = , Field2_to_ignore = >}if(Project=96,WorkTime*39.273,if(Project=92 and WorkType<>65,WorkTime*32.426,WorkTime*42.251)))