CUBEVALUE

canefan17

New Member
Joined
Jan 27, 2015
Messages
14
I brought in a table and loaded it to data model. I created a pivot and then used OLAP tools to convert it to Cube formulas (allowing me to insert columns, etc where a pivot table won't let you).

My problem arises when I bring in the next month's data. I've written the formula that hould work to pull in the new data for that month, but it just gives me a blank (at least it isn't #N/A, so I know I'm close).

Here's what I've written. The Date Field formula worked. The cubevalue isn't. And It's the exact same formula that's in the column for the previous month. It should be working.

For New Date Field
=CUBEMEMBER("ThisWorkbookDataModel","[FTE_Accruals_Data].[Date].&[2019-11-01T00:00:00]")

Formula to retrieve sum of amount for that date field ^
=CUBEVALUE("ThisWorkbookDataModel",$B$2,$F4,H$3)
 

canefan17

New Member
Joined
Jan 27, 2015
Messages
14
Here's a little more detail


Riddle me this batman. I converted my power pivot table to OLAP cube formulas. Everything worked great. Then I added next month's data file (with the 12/6/2019 data).

I wrote out the formula to bring that date in to the column field
=CUBEMEMBER("ThisWorkbookDataModel","[FTE Accruals Data].[Date].&[2019-12-06T00:00:00]")

And it worked! Good so far.

Then I tried to use cubevalue to bring in the sum of amount for each G/L (like it did for the previous month) and it's not returning any values for me. It's just blank.
=CUBEVALUE("ThisWorkbookDataModel",$B$2,$F4,K$3)

B2 = =CUBEMEMBER("ThisWorkbookDataModel","[Measures].[Sum of Amount 2]")

F4 = =CUBEMEMBER("ThisWorkbookDataModel",{"[FTE Accruals Data].[Agency or FTE].&[FTE]","[FTE Accruals Data].[Business Plan].&","[FTE Accruals Data].[Co Code].&","[FTE Accruals Data].[Cost Center].&[]","[FTE Accruals Data].[GL].&[517987]"})

K3 = =CUBEMEMBER("ThisWorkbookDataModel","[FTE Accruals Data].[Date].&[2019-12-06T00:00:00]")


It should be returning a value for me. I'm a bit dumbfounded, and have spun my wheels on this one.

If you'd like to see the file I have no problem emailing it to anyone willing to help.
 

canefan17

New Member
Joined
Jan 27, 2015
Messages
14
This has been solved. Mods can delete if they'd like.

The solution was simply a mistype in the cubevalue. It's always the little things :D
 

Forum statistics

Threads
1,082,099
Messages
5,363,129
Members
400,720
Latest member
Pettel

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top