Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
=IF([@[Total 2012]]<>0,([@[Total 2013]]/[@[Total 2012]]*100),100,IF(AND([@[Total 2012]]=0,[@[Total 2013]]=0),0,0))
你的公式不起作用 - 它有一个参数太多:
=IF( 1: [@[Total 2012]]<>0, 2: ([@[Total 2013]]/[@[Total 2012]]*100), 3: 100, 4: IF(AND([@[Total 2012]]=0,[@[Total 2013]]=0),0,0) )
IF只需要三个条件,结果为真,结果为假。所以需要把它改成你需要的。
IF
另请注意,您的第 4 个参数将始终返回0,因为嵌套IF公式0对于 true 和 false 部分都有。
0