<?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: Dax LOOKUPVALUE for duplicates values and different length values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-LOOKUPVALUE-for-duplicates-values-and-different-length/m-p/2351983#M59742</link>
    <description>&lt;P&gt;Hi Amitchandak&lt;/P&gt;&lt;P&gt;I tried to use the syntx but got an error message .&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;new column =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;maxx(filter(CQMSPN, PNDETAIL[Engineering Item Number] = CQMSPN [CPARTN]), PNDETAIL [Primary Item Number ])&lt;/SPAN&gt;&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;</description>
    <pubDate>Mon, 21 Feb 2022 23:30:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-21T23:30:18Z</dc:date>
    <item>
      <title>Dax LOOKUPVALUE for duplicates values and different length values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-LOOKUPVALUE-for-duplicates-values-and-different-length/m-p/2313323#M57569</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help to enhance my DAX commans below. Below the Dax lookup command works initally what i need but there was changes to the values. O&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; of the changes was with duplicate values. When i run the dax lookupvalue command it gives an error of&amp;nbsp;&lt;SPAN&gt;- &lt;STRONG&gt;A table of multiple values was supplied where a single value was expected&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2) The second change was that the current Dax command was loking at the length which was all 7 in length. Now the part number could be 4 to 14 charters long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All suggestion for both or 1 of the items is helpful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;</description>
      <pubDate>Tue, 01 Feb 2022 14:57:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-LOOKUPVALUE-for-duplicates-values-and-different-length/m-p/2313323#M57569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-01T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dax LOOKUPVALUE for duplicates values and different length values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-LOOKUPVALUE-for-duplicates-values-and-different-length/m-p/2313396#M57576</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like &lt;/P&gt;
&lt;P&gt;new column =&lt;/P&gt;
&lt;P&gt;maxx(filter(Table2, Table1[Engineering Item Number] = Table1[CPARTN]), Table2[Primary Item Number ])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer 4 ways to copy data from one table to another&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=Wu1mWxR23jU" target="_blank"&gt;https://www.youtube.com/watch?v=Wu1mWxR23jU&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=czNHt7UXIe8" target="_blank"&gt;https://www.youtube.com/watch?v=czNHt7UXIe8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 15:21:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-LOOKUPVALUE-for-duplicates-values-and-different-length/m-p/2313396#M57576</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-01T15:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dax LOOKUPVALUE for duplicates values and different length values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-LOOKUPVALUE-for-duplicates-values-and-different-length/m-p/2324642#M58148</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It seems that the table contains duplicate data causing the error to occur:&lt;/P&gt;
&lt;P&gt;You can change the lookupvalue formula to the following form:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALCULATE(FIRSTNONBLANK('PNDETAIL'[Primary Item Number], 1), FILTER(ALL(' PNDETAIL '),' PNDETAIL '[Enginneering item number]= 'CQMSPN'[CPARTN] ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 06:24:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-LOOKUPVALUE-for-duplicates-values-and-different-length/m-p/2324642#M58148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-08T06:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dax LOOKUPVALUE for duplicates values and different length values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-LOOKUPVALUE-for-duplicates-values-and-different-length/m-p/2351983#M59742</link>
      <description>&lt;P&gt;Hi Amitchandak&lt;/P&gt;&lt;P&gt;I tried to use the syntx but got an error message .&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;new column =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;maxx(filter(CQMSPN, PNDETAIL[Engineering Item Number] = CQMSPN [CPARTN]), PNDETAIL [Primary Item Number ])&lt;/SPAN&gt;&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;</description>
      <pubDate>Mon, 21 Feb 2022 23:30:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-LOOKUPVALUE-for-duplicates-values-and-different-length/m-p/2351983#M59742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-21T23:30:18Z</dc:date>
    </item>
  </channel>
</rss>

