<?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 value using table variable. Cannot find table variable in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-value-using-table-variable-Cannot-find-table-variable/m-p/3185500#M115302</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Classify by Customer SalesDocType =
VAR T1 =
    GROUPBY (
        customer_mapping_tbl,
        customer_mapping_tbl[SoldToParty],
        customer_mapping_tbl[SalesDocType],
        customer_mapping_tbl[Order Acquisition Classification]
    )
VAR T2 =
    FILTER (
        T1,
        customer_mapping_tbl[SoldToParty] = sales_document_header_data_tbl[SoldToParty]
            &amp;amp;&amp;amp; customer_mapping_tbl[SalesDocType] = sales_document_header_data_tbl[SalesDocType]
    )
RETURN
    MAXX ( T2, customer_mapping_tbl[Order Acquisition Classification] )&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 13 Apr 2023 06:33:05 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-04-13T06:33:05Z</dc:date>
    <item>
      <title>Lookup value using table variable. Cannot find table variable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-value-using-table-variable-Cannot-find-table-variable/m-p/3185355#M115295</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I am trying to simplify my dashboard modeling by using a table variable instead of creating an actual table and lookupvalue from there. The problem is when I try to lookupvalue from table it says it is expecting a basetable instead. here is the code&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Classify by Customer SalesDocType = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; VAR&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; _table_var = &lt;/SPAN&gt;&lt;SPAN&gt;GROUPBY&lt;/SPAN&gt;&lt;SPAN&gt;(customer_mapping_tbl, customer_mapping_tbl[SoldToParty], customer_mapping_tbl[SalesDocType], customer_mapping_tbl[Order Acquisition Classification])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(_table_var[Order Acquisition Classification], _table_var[SoldToParty], sales_document_header_data_tbl[SoldToParty], _table_var[SalesDocType], sales_document_header_data_tbl[SalesDocType])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Apr 2023 05:16:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-value-using-table-variable-Cannot-find-table-variable/m-p/3185355#M115295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-13T05:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value using table variable. Cannot find table variable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-value-using-table-variable-Cannot-find-table-variable/m-p/3185500#M115302</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Classify by Customer SalesDocType =
VAR T1 =
    GROUPBY (
        customer_mapping_tbl,
        customer_mapping_tbl[SoldToParty],
        customer_mapping_tbl[SalesDocType],
        customer_mapping_tbl[Order Acquisition Classification]
    )
VAR T2 =
    FILTER (
        T1,
        customer_mapping_tbl[SoldToParty] = sales_document_header_data_tbl[SoldToParty]
            &amp;amp;&amp;amp; customer_mapping_tbl[SalesDocType] = sales_document_header_data_tbl[SalesDocType]
    )
RETURN
    MAXX ( T2, customer_mapping_tbl[Order Acquisition Classification] )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Apr 2023 06:33:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-value-using-table-variable-Cannot-find-table-variable/m-p/3185500#M115302</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-13T06:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value using table variable. Cannot find table variable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-value-using-table-variable-Cannot-find-table-variable/m-p/3185606#M115311</link>
      <description>&lt;P&gt;Ahhh that's awesome! Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 07:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-value-using-table-variable-Cannot-find-table-variable/m-p/3185606#M115311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-13T07:22:07Z</dc:date>
    </item>
  </channel>
</rss>

