<?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: Create new table from results of linestx dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-from-results-of-linestx-dax/m-p/4137630#M164357</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="123082" data-lia-user-login="Ethanhunt123" class="lia-mention lia-mention-user"&gt;Ethanhunt123&lt;/a&gt;&amp;nbsp;, Try using below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TempTable =&lt;BR /&gt;VAR line =&lt;BR /&gt;LINESTX (&lt;BR /&gt;ALLSELECTED('Sales order line fact'[Order month]), -- This respects the slicer&lt;BR /&gt;[Total revenue trend],&lt;BR /&gt;'Sales order line fact'[Order month]&lt;BR /&gt;)&lt;BR /&gt;VAR slope = SELECTCOLUMNS(line, [Slope1])&lt;BR /&gt;VAR intercept = SELECTCOLUMNS(line, [Intercept])&lt;BR /&gt;RETURN&lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'Sales order line fact',&lt;BR /&gt;'Sales order line fact'[Order month]&lt;BR /&gt;),&lt;BR /&gt;"Slope", slope,&lt;BR /&gt;"Intercept", intercept,&lt;BR /&gt;"Revenue Trend", 'Sales order line fact'[Order month] * slope + intercept&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 13:01:25 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2024-09-06T13:01:25Z</dc:date>
    <item>
      <title>Create new table from results of linestx dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-from-results-of-linestx-dax/m-p/4137539#M164349</link>
      <description>&lt;P&gt;I have created a Linestx dax as -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Revenue trend = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; line =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LINESTX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;('Sales order line fact'[Order month]), &lt;/SPAN&gt;&lt;SPAN&gt;-- This respects the slicer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Total revenue trend],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Sales order line fact'[Order month]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; slope = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(line, [Slope1])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; intercept = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(line, [Intercept])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; x = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Sales order line fact'[Order month])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; y = x * slope + intercept&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;SPAN&gt; y&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;&lt;SPAN&gt;I want to create a temp table from the output that will look something like this &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Sep 2024 12:00:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-from-results-of-linestx-dax/m-p/4137539#M164349</guid>
      <dc:creator>Ethanhunt123</dc:creator>
      <dc:date>2024-09-06T12:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table from results of linestx dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-from-results-of-linestx-dax/m-p/4137630#M164357</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="123082" data-lia-user-login="Ethanhunt123" class="lia-mention lia-mention-user"&gt;Ethanhunt123&lt;/a&gt;&amp;nbsp;, Try using below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TempTable =&lt;BR /&gt;VAR line =&lt;BR /&gt;LINESTX (&lt;BR /&gt;ALLSELECTED('Sales order line fact'[Order month]), -- This respects the slicer&lt;BR /&gt;[Total revenue trend],&lt;BR /&gt;'Sales order line fact'[Order month]&lt;BR /&gt;)&lt;BR /&gt;VAR slope = SELECTCOLUMNS(line, [Slope1])&lt;BR /&gt;VAR intercept = SELECTCOLUMNS(line, [Intercept])&lt;BR /&gt;RETURN&lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'Sales order line fact',&lt;BR /&gt;'Sales order line fact'[Order month]&lt;BR /&gt;),&lt;BR /&gt;"Slope", slope,&lt;BR /&gt;"Intercept", intercept,&lt;BR /&gt;"Revenue Trend", 'Sales order line fact'[Order month] * slope + intercept&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 13:01:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-from-results-of-linestx-dax/m-p/4137630#M164357</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-09-06T13:01:25Z</dc:date>
    </item>
  </channel>
</rss>

