Error: CUBEVALUE Function returns #NUM!

migueljoa

New Member
Joined
Mar 27, 2018
Messages
4
Summary:

I'm using excel 2010 with powerpivot add-in.


I have constructured a powerpivot with calculated measures.


The pivot table is in a worksheet and I can see all the values that I need.


I would like to extract specific data from this pivot to make a more complex report.


I'm able to extract must of the data via CubeValue function, but there's one particular point in the pivot that when using CubeValue it returns [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=NUM]#NUM [/URL] !


Alternatives that work... kindof:


I can use "=" and reference the specific point in the pivot table that I need, but I want to maintain consistency and keep all my cubevalue formulas the same and only change a member expression that filters the data.


When I convert the pivot into formulas, the cell that gives me the error is there and is a value, but the cubevalue function contains a cubeset functions that specifies members inside the set (this is manually specifying each member in "quotes"), and I don't like this solution because the set might change in the future.




Why am I getting this [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=NUM]#NUM [/URL] ! error? :confused:
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Here are more details:

This is a subtotal for DOP and USD currency from the original Pivot Table.

HdU5P9j.jpg


Below the results of trying to extract this data:
The direct link works without a problem
Convert pivot to formula works but it uses fixed values from the pivot
The Cube Value function for the USD subtotal works
And finally, the Cube Value Function for the DOP subtotal results in number error

HdTXMUW.jpg
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,765
Members
449,049
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top