+ Reply to Thread
Results 1 to 3 of 3

How to make a cell reference inside of array comming from Data Model?

  1. #1
    Registered User
    Join Date
    07-14-2020
    Location
    Luxembourg
    MS-Off Ver
    Microsoft 365
    Posts
    2

    How to make a cell reference inside of array comming from Data Model?

    Hello there!

    It is my first post in the forum. I am getting crazy with a problem I am having since 2 days and I have no idea how to solve it. I am doing an excel database for my employer, so I am working with related tables and Data Model. For many of the reports I am creating pivot tables work well, but now that I need to go deep in the information I have to extract from the data model and I am getting stucked with CUBE functions when they include arrays inside. When I explained this to a colleague he told me about this forum, apparently people here enjoy solving big excel problems so I think you have an interesting challenge for those who know how to face it.

    I have this formula:

    Please Login or Register  to view this content.
    and if I want to load dinamically the part "Book 1" from cell "G12" I can do it easily like this:

    Please Login or Register  to view this content.
    The problem comes when I try to do the same in this formula that contains an array:

    Please Login or Register  to view this content.
    If I try to load "Book 1" also from a cell in the same way done before it is not working:

    Please Login or Register  to view this content.
    So I have tried in every single way it comes to my mind, like spliting the array or using INDIRECT but nothing, it is impossible. I am attaching a basic example so I will appreciate if in this file someone here is able to make the array reference working.

    Thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to make a cell reference inside of array comming from Data Model?

    Please try

    =CUBEMEMBER("ThisWorkbookDataModel","[Books]."&{"[Title]","[Editor]"}&".&["&REPT(G12,{1,0})&REPT("Editor 1",{0,1})&"]")
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-14-2020
    Location
    Luxembourg
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: How to make a cell reference inside of array comming from Data Model?



    My colleague was totally right about this forum...

    Thank you so much Bo_Ry! I have already download the file and it is working like a champ in my computer, you made my day man!

+ 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. How to Make changes in powerpivot data model by vba code
    By SamManik in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-29-2018, 05:14 AM
  2. Replies: 0
    Last Post: 10-29-2015, 01:23 PM
  3. How to make a time period a variable for this model? (automating the model)
    By pigment01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2015, 12:47 PM
  4. [SOLVED] Calling string inside cell reference to reference another sheet.
    By {=OR(value=array)} in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2013, 04:45 PM
  5. is it possible to determine parts of a string inside a cell and make an argument?
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2013, 09:30 PM
  6. Replies: 0
    Last Post: 03-08-2013, 06:34 AM
  7. Replies: 1
    Last Post: 12-17-2011, 10:14 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