Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Cubeformula results do not equal equivalent(?) pivot table

$
0
0

Obviously, my cubeformula isn't equivalent, but I haven't been able to figure out why. I'm hoping someone here can help. Using Excel 2010.

Pivot: Based on an AS cube, and has 6 filters:

* Year_Month = 2014_Jan

* Location= all locations except ABC

* InvoiceType = only null/blank entries (designations are only applied to invoices that should be ignored here)

* PackageType = All types except WW and ZZ

* Activity_Type = single selection, a type of expense

* Corporate = No (boolean) - only look at operations

In my worksheet, I have the following formulas to set up these conditions. As far as I can tell from using them as sources for other formulas, they seem to be working (shown in the same order as the list above)

B1=CUBEMEMBER("ADM2","[Dim Time].[Period Label].&[Jan 14]")

A16=CUBESET("ADM2","Except([Invoice].[Warehouse].[All],[Invoice].[Warehouse].&ABC])","All except ABC")

D19=CUBESET("ADM2","[InvoiceType].[ReasonCode].&[]","Blank Only")

A13=CUBESET("ADM2","Except([Product].[pkg].[All],{[Product].[pkg].&[WW],[Product].[pkg].&[ZZ]})","All except WW/ZZ")

A6=CUBEMEMBER("ADM2","[Activity].[Activity Name].&[1234_Expense]")

C12=CUBESET("ADM2","[Invoice].[CorpFlag].&[N]","Non Corp")

Then I try to use these to return the same value I have in the pivottable:

=CUBEVALUE("ADM2",D19,$B$1,A13,C12,A16,A19,A6)

and get a very different result.

So, I'm not sure if this is a syntax issue (order or number or parameters), something weird because [Invoice].x is being used in two different source formulas; the mixed use of cubemember and cubeset formulas, or something I'm not even thinking of.

I would greatly appreciate any/all suggestions!


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>