<?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 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/3185354#M115294</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;_table_var = &lt;/SPAN&gt;&lt;SPAN&gt;GROUPBY&lt;/SPAN&gt;&lt;SPAN&gt;(ama_west_customer_mapping_tbl, ama_west_customer_mapping_tbl[SoldToParty], ama_west_customer_mapping_tbl[SalesDocType], ama_west_customer_mapping_tbl[Order Acquisition Classification])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;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:15:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-13T05:15:46Z</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/3185354#M115294</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;_table_var = &lt;/SPAN&gt;&lt;SPAN&gt;GROUPBY&lt;/SPAN&gt;&lt;SPAN&gt;(ama_west_customer_mapping_tbl, ama_west_customer_mapping_tbl[SoldToParty], ama_west_customer_mapping_tbl[SalesDocType], ama_west_customer_mapping_tbl[Order Acquisition Classification])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;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:15:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-value-using-table-variable-Cannot-find-table-variable/m-p/3185354#M115294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-13T05:15:46Z</dc:date>
    </item>
  </channel>
</rss>

