我有以下数据集:
+--------+---------+----------+
| 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 比较。有没有办法绕过这个?