<?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 I neet to create a table from two tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2154439#M49709</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I need to create a new table from two existing tables.&lt;/P&gt;&lt;P&gt;First table ('Orders')&lt;/P&gt;&lt;P&gt;I have a summarized table with delivery date, store number and orders (for each store and date)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second table ('Claims')&lt;/P&gt;&lt;P&gt;I have a summarized table with store (N Local), Date of claim (Fecha de creación) and claims (for each store and date)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to create a new table with structure (date, store, orders, claims) for each store and each date..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example for 2997 store, and date 25/10/2011 we have 81 orders and only 1 claim&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls your comments&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;SM.-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 21:20:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-25T21:20:33Z</dc:date>
    <item>
      <title>I neet to create a table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2154439#M49709</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I need to create a new table from two existing tables.&lt;/P&gt;&lt;P&gt;First table ('Orders')&lt;/P&gt;&lt;P&gt;I have a summarized table with delivery date, store number and orders (for each store and date)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second table ('Claims')&lt;/P&gt;&lt;P&gt;I have a summarized table with store (N Local), Date of claim (Fecha de creación) and claims (for each store and date)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to create a new table with structure (date, store, orders, claims) for each store and each date..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example for 2997 store, and date 25/10/2011 we have 81 orders and only 1 claim&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls your comments&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;SM.-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 21:20:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2154439#M49709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T21:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: I neet to create a table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2154473#M49714</link>
      <description>&lt;P&gt;Hello Sebonidas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you really want to create a new table you could create calculated table with &lt;STRONG&gt;naturalinnerjoin&lt;/STRONG&gt; function or use &lt;STRONG&gt;summarizecolumns&lt;/STRONG&gt; if the tables have relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you just need to mix the data you could just use lookup function to add a new calculated column for either table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can add this to orders table:&lt;/P&gt;&lt;P&gt;lookupvalue('Claims'[Claims],'Claims'[N&lt;SPAN&gt;°&lt;/SPAN&gt; local],'Order'[Store_nbr]&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solved the issue, please mark the comment as solved&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 22:10:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2154473#M49714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T22:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: I neet to create a table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2154492#M49716</link>
      <description>&lt;P&gt;thanks&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp; but i have created the order table like this.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Orders = SUMMARIZE(Order_Cabecera, Order_Cabecera[FechaEntrega].[Date],Order_Cabecera[Store_nbr], "Orders", COUNT(Order_Cabecera[CodigoPedido]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can i add the LOOKUP??&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks a Lot!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SM.-&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Oct 2021 22:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2154492#M49716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T22:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: I neet to create a table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2155607#M49776</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is two ways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First: you can add it as regular calculated column. So select table --&amp;gt; New column --&amp;gt; Name it and imput the formula.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second you can add it to your DAX:&lt;BR /&gt;Just like this for example.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 10:39:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2155607#M49776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-26T10:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: I neet to create a table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2165848#M50169</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I think you can use the “Merge query” in the Power query to left join the two tables with two external keys, you can follow my steps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to the Power query and merge a new query:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Set the merge query like this:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;Then you can get the output table like this:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download my test pbix file below&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 08:58:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-neet-to-create-a-table-from-two-tables/m-p/2165848#M50169</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-11-01T08:58:05Z</dc:date>
    </item>
  </channel>
</rss>

