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

Cubeset to only return positive values?

$
0
0

Yet another cube formula question... In Excel 2010, no powerpivot or olap pivottable extensions, this is a pure Excel project.

I am building various cubeset, cubemember, and cubevalue formulas to validate an ETL process.

Question:

I need to create a cubeset that only returns the members of a cube that have positive values for a specific measure. This cubeset will then be one of several cubesets that gets fed into a cubevalue formula that would otherwise exceed the 255 char limit.

I can create a cubeset for the overall measure:

=CUBESET("MyCube","[Measures].[RetailPrice]")

but haven't found the right syntax for limiting results to only those that have positive values, I think it would be something like:

=CUBESET("MyCube","FILTER[Measures].[RetailPrice],[Measures].[RetailPrice]>0")

This syntax actually doesn't return an error, so maybe it is valid syntax... but when I wrap it in a simple cubevalue statement,

=CUBEVALUE("MyCube", A2)       where A2 is the Cubeset above, or if I also add date range and other filters,

I get a #Value error, indicating that "the tuple is invalid" per http://office.microsoft.com/en-in/excel-help/cubevalue-function-HA010342391.aspx?CTT=5&origin=HA010342384

I'm still a newbie with the cubeformula syntax and MDX, so I appreciate any 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>