<?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 lookupvalue sometimes works in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookupvalue-sometimes-works/m-p/2205675#M51891</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have 2 face tables that are not related to one another but are Via customer Dim table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a calc colum in Fact Table 2 that looks up a column from Fact Table 1&lt;/P&gt;&lt;P&gt;based on some columns that match in BOTH tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;very generic.&lt;/P&gt;&lt;P&gt;the problem is that somethimes it works and somthimes it doent (when it totally should!!)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and somthines it dosnt work:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know when I get a blank thats because not ALL the condiotns are met but they are. they all meet but I still get a blank&lt;/P&gt;&lt;P&gt;any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 11:19:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-24T11:19:42Z</dc:date>
    <item>
      <title>lookupvalue sometimes works</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookupvalue-sometimes-works/m-p/2205675#M51891</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have 2 face tables that are not related to one another but are Via customer Dim table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a calc colum in Fact Table 2 that looks up a column from Fact Table 1&lt;/P&gt;&lt;P&gt;based on some columns that match in BOTH tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;very generic.&lt;/P&gt;&lt;P&gt;the problem is that somethimes it works and somthimes it doent (when it totally should!!)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and somthines it dosnt work:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know when I get a blank thats because not ALL the condiotns are met but they are. they all meet but I still get a blank&lt;/P&gt;&lt;P&gt;any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 11:19:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookupvalue-sometimes-works/m-p/2205675#M51891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T11:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: lookupvalue sometimes works</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookupvalue-sometimes-works/m-p/2205825#M51899</link>
      <description>&lt;P&gt;I think you will have to investigate the data quality of the columns as it looks like there's a difference between tables. You can do this in power Query, using column quality, distribution, profile from the View menu.&lt;/P&gt;
&lt;P&gt;Are the ID columns text? If so they might need a Trim to remove spaces etc.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 12:44:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookupvalue-sometimes-works/m-p/2205825#M51899</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2021-11-24T12:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: lookupvalue sometimes works</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookupvalue-sometimes-works/m-p/2211598#M52194</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp; mentioned above, hidden spaces and other invisible characters often affect the lookup result. An easy way is to use the Len function to check whether the string lengths are the same.&lt;BR /&gt;Remove the hidden characters and often you will get the correct result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Zeon Zheng&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 08:39:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookupvalue-sometimes-works/m-p/2211598#M52194</guid>
      <dc:creator>v-angzheng-msft</dc:creator>
      <dc:date>2021-11-29T08:39:34Z</dc:date>
    </item>
  </channel>
</rss>

