Forum Discussion
Calculated items issue in pivot table
- Mar 28, 2022
you just need to apply a value filter. Right-click on one of the "Clé de répartition" items and select "Filter | Value Filters..."
There you can filter on values the do not equal 0:
if I understand correctly, you put the formulas for the variances manually beside your pivot table, right?
What you should do instead, is to create so-called calculated fields within the pivot table. To do this, put the active cell on any value field in your pivot table and then open the menu "PivotTable Analyze | Calculated Field..."
There you can add new fields by creating simple formulas which are based on the existing fields. Here is a simple example:
This new field "Variance" can be used directly in the pivot table like any other field.
You just need to know that the possibilites are limited to very simple operations, like + - / * and you can reference only existing fields from your pivot table.
- Matthieu_PetersMar 22, 2022Copper Contributor
Hi Martin_Weiss, thanks for the reply.
Unfortunately, I can't do it the way you told me. I need to compute the variance between 2 columns and it doesn't work. Here is the result I have :
While I wish I could compute Réel - REF0.
I don't know if it is feasible.
- Martin_WeissMar 23, 2022Bronze Contributor
actually, that's exactly what calculated fields are made for: making simple calculations between different columns.
Could you please provide more screenshots:
the list of PivotTable-fields and also what the calculated field looks like. So something like this:
It would be even better to have an example file with some random data uploaded, if possible.
- Matthieu_PetersMar 24, 2022Copper Contributor
Hi Martin_Weiss
And here is the formula I applied
Is this enough for you or you need more info?
Thanks a lot for the help