Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default sum of getpivotdata()

I have some excel pivottable connected to a cube. The data are further used
in excel by the getpivotdata() formula.

In the example below I have combined two getpivotdata() formulas to
calculate the Budget variance. As you see the only difference of the "budget"
and the "actuals" are the last element. "[Set].&[02.BGT]" vs
"[Set].&[01.ACT]").

EXAMPLE:
Actuals
=getpivotdata("[Measures].[Amount]";$A$6;"[TimeByYM]";"[TimeByYM].[Alle
MÃ¥neder]";"[Set]";"[Set].&[01.ACT]")


Budget
=getpivotdata("[Measures].[Amount]";$A$6;"[TimeByYM]";"[TimeByYM].[Alle
MÃ¥neder]";"[Set]";"[Set].&[02.BGT]")

Budget variance
=getpivotdata("[Measures].[Amount]";$A$6;"[TimeByYM]";"[TimeByYM].[Alle
MÃ¥neder]";"[Set]";"[Set].&[01.ACT]") -
getpivotdata("[Measures].[Amount]";$A$6;"[TimeByYM]";"[TimeByYM].[Alle
MÃ¥neder]";"[Set]";"[Set].&[02.BGT]")


In more complex cases when I have to use 6-10 getpivotdata() formulas it is
very difficult to read and maintain the formulas and mistakes may be done.

My Question:
= Is it possible to make the formula shorter by using ony one
getpivotdata() to get the budget variance?

For instance somthing like this?

=getpivotdata(....;;;;;"[Set].&[01.ACT] - [Set].&[02.BGT]")

in other cases I would like the sum of two departments wich are not grouped
in the cube structure...
=getpivotdata(....;;;;;"[department].&[21] - [department].&[39]")

is this possible?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GetPivotData Steve Powell Excel Worksheet Functions 1 June 3rd 08 11:16 PM
GETPIVOTDATA Bug SthOzNewbie Excel Worksheet Functions 1 April 3rd 06 08:05 AM
getpivotdata Mac Excel Worksheet Functions 5 February 26th 06 11:25 PM
GETPIVOTDATA Sho Excel Worksheet Functions 1 April 8th 05 06:13 PM
GetPivotData Paul Smith Excel Worksheet Functions 0 January 20th 05 07:23 PM


All times are GMT +1. The time now is 09:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"