我有以下数据集:
+--------+---------+----------+
| Date | Revenue | Expected |
+--------+---------+----------+
| Dez 5 | 51 | 1 |
| Dez 4 | 72 | 1 |
| Dez 3 | 72 | 1 |
| Dez 2 | 59 | 1 |
| Dez 1 | 81 | 1 |
| Nov 30 | 50 | 1 |
| Nov 29 | 53 | 1 |
| Nov 28 | 99 | 0 |
| Nov 27 | 85 | 0 |
| Nov 26 | 65 | 0 |
| Nov 25 | 94 | 0 |
+--------+---------+----------+
列Expected
确定Revenue
号码是否已确认。现在,我希望有一个数据透视表,总结每月的收入。最终结果应为:
+-------+-------------------+-----+
| Month | | |
+-------+-------------------+-----+
| Nov | Revenues | 446 |
| | Expected Revenues | 103 |
| Dez | Revenues | 335 |
| | Expected Revenues | 335 |
+-------+-------------------+-----+
我似乎无法在11月份开始工作,因为我的计算字段看起来像这样:
=IF(Expected*1>0;Revenues*1;0)
我必须添加*1
因为它对某些数字不起作用,所以你暂时可以在心理上忽略它。
无论如何,结果如下:
+-------+-------------------+-----+
| Month | | |
+-------+-------------------+-----+
| Nov | Revenues | 446 |
| | Expected Revenues | 446 |
| Dez | Revenues | 335 |
| | Expected Revenues | 335 |
+-------+-------------------+-----+
有人能指出我在正确的方向吗?我理解这样做的原因很可能是预期列首先加总,然后进行IF比较。有没有办法规避这个?