+ Reply to Thread
Results 1 to 4 of 4

DAX - How do I set up the equivalent of a VLOOKUP?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-29-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    43

    DAX - How do I set up the equivalent of a VLOOKUP?

    Hi,

    I have a couple tables uploaded to a data model in Power Pivot, and I'm trying to just do a simple lookup between tables. I suppose if I can't solve this by using measures in DAX that I'll just add another column to the one table and do the VLOOKUP there, but I thought it would be good to know how to handle this in the data model in Power Pivot. If I have Table 1 with a column that I'm using for the lookup values, and Table 2 has the lookup range (one column) and the return values (another column), how do I create a measure that would accomplish the same thing as a VLOOKUP for my pivot table?

    Thanks!

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: DAX - How do I set up the equivalent of a VLOOKUP?

    Just create a relationship between the two tables, using the columns containing the lookup values / range.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    06-29-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    43

    Re: DAX - How do I set up the equivalent of a VLOOKUP?

    Hi,

    Please see the attached file. I have already created the necessary relationship. To sum up, I have the business unit ("BU") linked between my two tables (one table each in the "RETURNS DATA" tab and the "CPP Prices" tab), and I want the CPP for each company to be displayed in the pivot table in the "Dynamic TOTAL SUMMARY" tab. Each company should have a 1:1 relationship with a division, and each division should have a 1:1 relationship with a CPP. However, when I try to add CPP to the pivot table, it forces you to pick a sum, average, count, etc., and I just want the single value from the table to appear.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-29-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    43

    Re: DAX - How do I set up the equivalent of a VLOOKUP?

    To clarify, I'm looking to include the CPP value from the CPP_Price_Calendar (not the CPP from the Returns_Table) table in the pivot table.

+ 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. VLOOKUP or equivalent WITH CRITERIA
    By shreeja178 in forum Excel General
    Replies: 4
    Last Post: 12-09-2014, 06:17 AM
  2. [SOLVED] Is there a VLOOKUP equivalent of SUMIFS
    By CDNcameron in forum Excel General
    Replies: 3
    Last Post: 11-26-2014, 03:08 PM
  3. [SOLVED] VLOOKUP (equivalent) with combination input
    By rwqiii in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2012, 09:17 PM
  4. Equivalent of a multiple VLookup?
    By WasWodge in forum Excel General
    Replies: 5
    Last Post: 03-24-2011, 04:27 PM
  5. [SOLVED] How do I create an equivalent VLOOKUP function using FIND?
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 35
    Last Post: 09-06-2005, 05:05 PM
  6. [SOLVED] How do I create an equivalent VLOOKUP function using FIND?
    By dan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. [SOLVED] VBA equivalent of VLookup on an array
    By KR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2005, 05:06 PM

Tags for this Thread

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