+ Reply to Thread
Results 1 to 2 of 2

XLOOKUP Equivalent when working with Data Model (to return array of results)

  1. #1
    Registered User
    Join Date
    02-24-2019
    Location
    UK
    MS-Off Ver
    MS 365 PC & Mac (assume PC unless otherwise stated in post)
    Posts
    98

    XLOOKUP Equivalent when working with Data Model (to return array of results)

    I want to use some sort of lookup to return multiple results from a large table. The table I am referencing is more than 1 million rows, so I consolidate into a data model.

    If I were using a regular table then this example XLOOKUP would give me what I want;

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This formula would then return 3 results in a Spill Array. (There is always only 1 result per lookup value)

    I have only recently discovered the data model, so pretty fresh with it, but as I understand I need to use a CUBE function.

    If I am only looking up 1 value then this formula works;

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But as soon as I try to expand the formula to lookup and return more than one result it does not work (Get #N/A result);

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Like I say I am pretty new to data models and cube functions so probably don't understand the capability fully.

    Is there a way to edit above cube formula to return multiple results? Or perhaps a different method all together, any guidance gratefully received.

    I do not attach an example workbook as imagine it will be pretty huge if I try to share data model.

    This post relates to Windows Excel (not Mac).
    Last edited by chris01395; 08-27-2022 at 04:17 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: XLOOKUP Equivalent when working with Data Model (to return array of results)

    Maybe you could solve this using Power Query.

    Since there is nothing to test, I can't be certain about that.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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. Xlookup with dynamic return array
    By nmarcon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-01-2022, 11:26 AM
  2. [SOLVED] Using xlookup across sheets to return data based on cell
    By maxwellsdemon13 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-29-2022, 09:23 AM
  3. Xlookup returns "-" but not the return array's value
    By immigrated4urjob in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-16-2021, 11:01 AM
  4. XLOOKUP more than 3 results from data set
    By krag3r in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-11-2021, 07:55 AM
  5. XLOOKUP with a dynamic return array
    By phrankndonna in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2020, 09:33 AM
  6. Data model many to many relation - incorrect results
    By pwaccs in forum Excel General
    Replies: 6
    Last Post: 11-26-2020, 11:24 AM
  7. Replies: 5
    Last Post: 07-13-2018, 08:49 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