<?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: Lookup Values on Multiple Criteria Returns Different Values Under Same Condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2568427#M73253</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="393612" data-lia-user-login="RachelS0815" class="lia-mention lia-mention-user"&gt;RachelS0815&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a sample and can't reproduce your problem. Is&amp;nbsp;&lt;EM&gt;QOH VALUES &lt;/EM&gt;a calculated column? Did the two tables have relationship, in which column did they relate.&amp;nbsp;What's the difference between rows got the correct value and rows got the wrong value.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 08:12:31 GMT</pubDate>
    <dc:creator>v-yanjiang-msft</dc:creator>
    <dc:date>2022-06-09T08:12:31Z</dc:date>
    <item>
      <title>Lookup Values on Multiple Criteria Returns Different Values Under Same Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2558100#M72702</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new in DAX, and I try to look up a value under multiple conditions. However, it returns the correct value in some columns but not all. But the criteria is the same. I try to circle back to the lookup file to see where this number comes from but it shows that it cannot find. I am so confused what I did wrong. I attached partial of the report and the lookup table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;QOH VALUES = LOOKUPVALUE('QOH SUM'[Month Cost To Date],'QOH SUM'[ITEM NO_],'Inventory DIO'[ITEM_NO],'QOH SUM'[LOCATION CODE],'Inventory DIO'[Location Code],'QOH SUM'[MON_IND],'Inventory DIO'[MON_IND])&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 14:17:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2558100#M72702</guid>
      <dc:creator>RachelS0815</dc:creator>
      <dc:date>2022-06-03T14:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Values on Multiple Criteria Returns Different Values Under Same Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2558209#M72706</link>
      <description>&lt;P&gt;I guess that you need to sum all the values of the same Item_no, Location Code and Mon_Ind.&lt;BR /&gt;I think that you should have to try with:&lt;BR /&gt;Calculate(&lt;BR /&gt;Sumx("Table_0", "Table_0.Month cost to date"),&lt;BR /&gt;Filter (All ( table_0), Table_0.Item no = Table_1.Item no &amp;amp;&amp;amp;&amp;nbsp; Table_0.Mon ind = Table_1.Mon ind &amp;amp;&amp;amp;&amp;nbsp;Table_0.Location Code = Table_1.Location Code))&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 15:05:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2558209#M72706</guid>
      <dc:creator>CarlesMB</dc:creator>
      <dc:date>2022-06-03T15:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Values on Multiple Criteria Returns Different Values Under Same Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2558227#M72707</link>
      <description>&lt;P&gt;Thanks for the reply. However, in my lookup file, it is only 1 value under the same criteria, ie the value is 119768.97 when item is 270553, location is BC Surrey and Month is 2020-09-01, so I don't need to do sum but just lookup value.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 15:11:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2558227#M72707</guid>
      <dc:creator>RachelS0815</dc:creator>
      <dc:date>2022-06-03T15:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Values on Multiple Criteria Returns Different Values Under Same Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2568427#M73253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="393612" data-lia-user-login="RachelS0815" class="lia-mention lia-mention-user"&gt;RachelS0815&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a sample and can't reproduce your problem. Is&amp;nbsp;&lt;EM&gt;QOH VALUES &lt;/EM&gt;a calculated column? Did the two tables have relationship, in which column did they relate.&amp;nbsp;What's the difference between rows got the correct value and rows got the wrong value.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 08:12:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2568427#M73253</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-06-09T08:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Values on Multiple Criteria Returns Different Values Under Same Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2569239#M73309</link>
      <description>&lt;P&gt;Hi Kalyj,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you reply. I finally found out the issue yesterday that Power BI sum the values when I added. Once I removed the sum, it is fixed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 13:07:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2569239#M73309</guid>
      <dc:creator>RachelS0815</dc:creator>
      <dc:date>2022-06-09T13:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Values on Multiple Criteria Returns Different Values Under Same Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2570211#M73382</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="393612" data-lia-user-login="RachelS0815" class="lia-mention lia-mention-user"&gt;RachelS0815&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Glad your problem is solved. If you don't have other problems, would you please accept your answer as the solution, then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 01:06:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Values-on-Multiple-Criteria-Returns-Different-Values/m-p/2570211#M73382</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-06-10T01:06:49Z</dc:date>
    </item>
  </channel>
</rss>

