<?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: Help with Add columns across two tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090837#M108272</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="518400" data-lia-user-login="changezshafiq" class="lia-mention lia-mention-user"&gt;changezshafiq&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADDCOLUMNS returns a table, so comes the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you plan to do further with the virtual table?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 16:10:43 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-02-21T16:10:43Z</dc:date>
    <item>
      <title>Help with Add columns across two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090795#M108268</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue with adding multiple columns across two table which are connected through "Date" field. First table hosts item sales data, while second table has "Dates" spanned across weeks. When I create a new measure to insert new columns in first sales sales data table, I get the following error: "&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;T_VALUE = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&g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refers to multiple columns. Multiple columns cannot be converted to a scalar value".&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help would be much appreciated.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Feb 2023 15:59:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090795#M108268</guid>
      <dc:creator>changezshafiq</dc:creator>
      <dc:date>2023-02-21T15:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Add columns across two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090837#M108272</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="518400" data-lia-user-login="changezshafiq" class="lia-mention lia-mention-user"&gt;changezshafiq&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADDCOLUMNS returns a table, so comes the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you plan to do further with the virtual table?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 16:10:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090837#M108272</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-21T16:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Add columns across two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090922#M108282</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to use these calculations to determine Last Week sales, Last 4 Week sales, Last 13 Week sales by referencing the Week Ending Date and LW Date in the date table which looks like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I want to create additional measure such as&lt;/P&gt;&lt;P&gt;LW Unit Sales =&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[POS UNITS SOLD]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;tbl_Date&lt;/SPAN&gt;&lt;SPAN&gt;[Week Ending]&lt;/SPAN&gt;&lt;SPAN&gt;=tbl&lt;/SPAN&gt;&lt;SPAN&gt;_Date&lt;/SPAN&gt;&lt;SPAN&gt;[X LW]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;L4W Unit Sales = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[POS UNITS SOLD&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;tbl_Date&lt;/SPAN&gt;&lt;SPAN&gt;[Week Ending]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;tbl_Date&lt;/SPAN&gt;&lt;SPAN&gt;[X L4W]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;tbl_Date&lt;/SPAN&gt;&lt;SPAN&gt;[Week Ending]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;tbl_Date&lt;/SPAN&gt;&lt;SPAN&gt;[X LW]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Feb 2023 16:42:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090922#M108282</guid>
      <dc:creator>changezshafiq</dc:creator>
      <dc:date>2023-02-21T16:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Add columns across two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090950#M108284</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="518400" data-lia-user-login="changezshafiq" class="lia-mention lia-mention-user"&gt;changezshafiq&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;means is what are you using the ADDCOLUMNS table for? Why do you need to have both Units Sold and Dollars&amp;nbsp;Sold in one virtual&amp;nbsp;table?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 16:59:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090950#M108284</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-21T16:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Add columns across two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090964#M108286</link>
      <description>&lt;P&gt;I do not intend to create a virtual table, I just needed to insert new columns in sales table with different time measure shown below. I would then use these metrics and map them to Category, Geography, etc for my dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 17:04:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Add-columns-across-two-tables/m-p/3090964#M108286</guid>
      <dc:creator>changezshafiq</dc:creator>
      <dc:date>2023-02-21T17:04:22Z</dc:date>
    </item>
  </channel>
</rss>

