Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to add a calculated column in a pivot table

Hi,

the pivot table in the image has as a column filed 'Divisa' which has two values '<Entity Curr Total>' and 'Mloc', but the expressions in the pivot table is just one 'sum(Importe)'.

How could I to add a new column with the 'sum(Importe)' difference between the values of 'Divisa' called '<Entity Curr Total>' and 'Mloc'?

Thanks

07-05-2013 11-28-03.png

13 Replies
vikasmahajan

You can column(2)-Column(1)  to find out diffrence between values.

Hope this helps.

Regards

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
giakoum
Partner - Master II
Partner - Master II

Divisa is a dimension? If yes, you need set analysis, something like :

sum({$<[Divisa]={"Entity Curr Total">} [Importe]) -

sum({$<[Divisa]={"Mloc">} [Importe])

Not applicable
Author

I think it is almost the solution but , do you know why it repeats and why it does with the addition instead of doing with the difference?

07-05-2013 12-22-40.png

Not applicable
Author

I think it is almost the solution but , do you know why it repeats and why it does with the addition instead of doing with the difference?

07-05-2013 12-22-40.png

giakoum
Partner - Master II
Partner - Master II

sum(total <Alias, Cuenta> {$<[Divisa]={"Entity Curr Total">} [Importe]) -

sum(total <Alias, Cuenta> {$<[Divisa]={"Mloc">} [Importe])

or similar depending on Dimensions

If this does not work you need to Aggr...

without some sample it is difficult to tell...

Not applicable
Author

...this is getting complicated for me... I have attached the file

giakoum
Partner - Master II
Partner - Master II

I prepared a small example, unfortunately I do not have the time to go through your application. Sorry about that!

Not applicable
Author

Hi can't understand why your neat example do not work with my dimensions but I appreciate your piece of knowledge a lot.

Thank you very much.

Not applicable
Author

Hi,

i'm facing exactly the same problem. Did you find any way to solve yours ?

Regards

Chung Fabien