<?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 Troubles using LOOKUPVALUE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Troubles-using-LOOKUPVALUE/m-p/3349608#M125771</link>
    <description>&lt;P&gt;Hi team, im trying to use VLOOKVALUE into Cycle account dashboard to return 1 or 0, it depends of 2 conditions:&lt;/P&gt;&lt;P&gt;- 1 count pivot table's dates has the same dates as inventory&lt;/P&gt;&lt;P&gt;- 1 count pivot table's IDs has the same IDs as inventory&lt;/P&gt;&lt;P&gt;to this column im trying to calculate it as:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Qty_SU = &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Inventario'&lt;/SPAN&gt;&lt;SPAN&gt;[Cantidad]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SELECTCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Inventario&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Inventario&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Tabla_Dinamica_Conteo1&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"LPN"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Inventario&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Tabla_Dinamica_Conteo1&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function SELECTCOLUMNS expects a column name as argument number 2.&lt;/P&gt;&lt;P&gt;It is pretended to select more than 1 day to see the results throw the time. as result obviously i got #ERROR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;an advice to me?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 20:55:11 GMT</pubDate>
    <dc:creator>ErickM49315</dc:creator>
    <dc:date>2023-07-25T20:55:11Z</dc:date>
    <item>
      <title>Troubles using LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Troubles-using-LOOKUPVALUE/m-p/3349608#M125771</link>
      <description>&lt;P&gt;Hi team, im trying to use VLOOKVALUE into Cycle account dashboard to return 1 or 0, it depends of 2 conditions:&lt;/P&gt;&lt;P&gt;- 1 count pivot table's dates has the same dates as inventory&lt;/P&gt;&lt;P&gt;- 1 count pivot table's IDs has the same IDs as inventory&lt;/P&gt;&lt;P&gt;to this column im trying to calculate it as:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Qty_SU = &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Inventario'&lt;/SPAN&gt;&lt;SPAN&gt;[Cantidad]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SELECTCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Inventario&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Inventario&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Tabla_Dinamica_Conteo1&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"LPN"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Inventario&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Tabla_Dinamica_Conteo1&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function SELECTCOLUMNS expects a column name as argument number 2.&lt;/P&gt;&lt;P&gt;It is pretended to select more than 1 day to see the results throw the time. as result obviously i got #ERROR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;an advice to me?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 20:55:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Troubles-using-LOOKUPVALUE/m-p/3349608#M125771</guid>
      <dc:creator>ErickM49315</dc:creator>
      <dc:date>2023-07-25T20:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles using LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Troubles-using-LOOKUPVALUE/m-p/3352203#M125890</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="594199" data-lia-user-login="ErickM49315" class="lia-mention lia-mention-user"&gt;ErickM49315&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message is because the second parameter of the SELECTCOLUMNS function should be the column name, but you are passing the table as a parameter.&lt;/P&gt;
&lt;P&gt;You can try the following dax:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LOOKUPVALUE(
    'Inventario'[Cantidad], 'Inventario'[Date],'Tabla_Dinamica_Conteo1'[Date],'Inventario'[ID],'Tabla_Dinamica_Conteo1'[ID],1)&lt;/LI-CODE&gt;
&lt;P&gt;Refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/lookupvalue-function-dax" target="_blank"&gt;LOOKUPVALUE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&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>Thu, 27 Jul 2023 02:10:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Troubles-using-LOOKUPVALUE/m-p/3352203#M125890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-27T02:10:25Z</dc:date>
    </item>
  </channel>
</rss>

