+ Reply to Thread
Results 1 to 1 of 1

CubeValue Direct from DataModel

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    CubeValue Direct from DataModel

    I'm trying to build a CubeFormula to pull a value directly from a DataModel I am starting to build.

    If I make a pivot table, I see how it gets built, and I can create a CubeMember for each of the five items. But when I put it together, I can't seem to get a value.

    These are the 5 separate CubeMember formula's.

    =CUBEMEMBER("ThisWorkbookDataModel","[CompanyList].[Company Name].&[Company 1]")
    =CUBEMEMBER("ThisWorkbookDataModel","[MonthlyData].[year].&[2020]")
    =CUBEMEMBER("ThisWorkbookDataModel","[MonthlyData].[month].&[11]")
    =CUBEMEMBER("ThisWorkbookDataModel","[MonthlyData].[description].&[Revenue]")
    =CUBEMEMBER("ThisWorkbookDataModel","[Measures].[Sum of amt]")
    I did notice that "Sum of amt" is not defined in the Data Model, but rather have an amt column. And I changing the Measure to [MonthlyData].[amt].[All] without any luck.

    So my CubeValue formula currently looks like the below, but can't get a value.
    =CUBEVALUE("ThisWorkbookDataModel","[CompanyList].[Company Name].&[Company 1],[MonthlyData].[description].&[Revenue],[MonthlyData].[year].&[2020],[MonthlyData].[month]].&[11],[Measures].[Sum of amt]")
    Any thoughts where I'm going wrong?

    EDIT. Trouble shooting piece by piece, I found a typo with an extra bracket in month ]]. Removing the extra bracket seems to have solved the problem.
    Last edited by ptmuldoon; 12-28-2020 at 02:48 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Export/Split data from DataModel to sheets
    By Speshul in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2018, 01:15 PM
  2. Why is CUBEVALUE returning #NUM! error?
    By migueljoa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2018, 02:44 PM
  3. [SOLVED] What is a cubevalue
    By stephme55 in forum Excel General
    Replies: 3
    Last Post: 02-12-2016, 05:40 PM
  4. [SOLVED] SUM( ) with multiple CUBEVALUE( )'s issue
    By tranceport in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-14-2013, 09:26 AM
  5. Replies: 2
    Last Post: 09-19-2013, 09:06 AM
  6. Using Wildcard in Cubevalue function
    By mashley in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-01-2011, 09:37 AM
  7. CUBEVALUE function
    By qinyg in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-21-2011, 11:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1