<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LOOKUPVALUE is returning blank when a seemingly unrelated field is null? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-is-returning-blank-when-a-seemingly-unrelated-field/m-p/2100688#M47939</link>
    <description>&lt;P&gt;Ugh, how embarrasing... Unfortunately that was the problem on my test model, but it appears to be a separate issue on my production model. I will review more and submit a new discussion when I get it figured out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 15:24:37 GMT</pubDate>
    <dc:creator>Funk-E-Guy</dc:creator>
    <dc:date>2021-09-27T15:24:37Z</dc:date>
    <item>
      <title>LOOKUPVALUE is returning blank when a seemingly unrelated field is null?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-is-returning-blank-when-a-seemingly-unrelated-field/m-p/2097817#M47833</link>
      <description>&lt;P&gt;It seems that LOOKUPVALUE is returning blank values, but only when a seemingly unrelated field is null. This is strange to me because I thought that it effectively works like a VLOOKUP function regardless of what other fields are (that aren't actively a part of the LOOKUPVALUE function). But please let me know if I'm wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have recreated this issue in a test model with only a few data points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a screenshot of my entire test dataset (pulled from Excel files, and just shown here as PBI tables). The "Problem Table" is generated in DAX (more details under the pictures):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;And here are the relationships in my model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;My "Problem Table" is a table that is created purely in DAX. Here's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Market Name&lt;/U&gt; &amp;amp; &lt;U&gt;Amazon ASIN&lt;/U&gt; columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Problem Table = GENERATE(DISTINCT(Markets[Market Name]),DISTINCT('Amazon Items'[Amazon ASIN]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Parent Item ID&lt;/U&gt; column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Parent Item ID = LOOKUPVALUE('Items (All)'[Item ID], 'Items (All)'[Amazon ASIN], 'Problem Table'[Amazon ASIN])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Market Specific Item&lt;/U&gt; column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Market Specific Item = LOOKUPVALUE('Market ↔ Item Relationships'[Market Specific Item Name], 'Market ↔ Item Relationships'[Parent Item ID], 'Problem Table'[Parent Item ID], 'Market ↔ Item Relationships'[Market Name], 'Problem Table'[Market Name])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Marketplace Specific Item ID&lt;/U&gt; column&lt;FONT color="#FF0000"&gt; &lt;STRONG&gt;this is where null values are being returned&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Marketplace Specific Item ID = LOOKUPVALUE('Items (All)'[Item ID], 'Amazon Items'[Item Name], 'Problem Table'[Market Specific Item])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;I don't get it. I'm just trying to lookup the Item ID of the Marketplace Specific IItem, but for some reason it's returning null values for the INT items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing I can see if that the null LOOKUPVALUE only happens on the items that don't have ASINs, but I wouldn't think that the null ASIN would be forcing the LOOKUPVALUE to be null, would it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, is there an alternate way that I can lookup the Marketplace Specific Item ID based on the text only in "Marketplace Specific Item"?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 22:48:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-is-returning-blank-when-a-seemingly-unrelated-field/m-p/2097817#M47833</guid>
      <dc:creator>Funk-E-Guy</dc:creator>
      <dc:date>2021-09-24T22:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALUE is returning blank when a seemingly unrelated field is null?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-is-returning-blank-when-a-seemingly-unrelated-field/m-p/2098026#M47842</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not sure I understand. Your LOOKUPVALUE function is searching in the [Item Name] column of the&amp;nbsp;'Amazon Items' table, which does not contain TestSKU1INT or&amp;nbsp;TestSKU2INT. So naturally the formula returns blank for those rows.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2021 12:25:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-is-returning-blank-when-a-seemingly-unrelated-field/m-p/2098026#M47842</guid>
      <dc:creator>Jos_Woolley</dc:creator>
      <dc:date>2021-09-25T12:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALUE is returning blank when a seemingly unrelated field is null?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-is-returning-blank-when-a-seemingly-unrelated-field/m-p/2100688#M47939</link>
      <description>&lt;P&gt;Ugh, how embarrasing... Unfortunately that was the problem on my test model, but it appears to be a separate issue on my production model. I will review more and submit a new discussion when I get it figured out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 15:24:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-is-returning-blank-when-a-seemingly-unrelated-field/m-p/2100688#M47939</guid>
      <dc:creator>Funk-E-Guy</dc:creator>
      <dc:date>2021-09-27T15:24:37Z</dc:date>
    </item>
  </channel>
</rss>

