<?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: LINESTX with slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4134968#M164245</link>
    <description>&lt;P&gt;I have tried this but I don't think so this is working see below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data without the filter on date&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Data with the filter on the date&amp;nbsp; - From Jan 1 till Sept&lt;/P&gt;&lt;P&gt;Values are the same as above. My assumption is if I am changing dataset then values should also get change&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2024 07:59:38 GMT</pubDate>
    <dc:creator>Ethanhunt123</dc:creator>
    <dc:date>2024-09-05T07:59:38Z</dc:date>
    <item>
      <title>LINESTX with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4134946#M164243</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate trends using slope and intercept&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using the following DAX, which is functioning well. However, the issue arises when I have a slicer on the order date. I want the dataset for the query below to also get filtered for that date range when a user applies a start and end date filter on the order date slicer&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Revenue trend = &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; line =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;LINESTX (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ALL('Sales order line fact'[Order date] ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Total revenue trend],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Sales order line fact'[Order date]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR slope = SELECTCOLUMNS ( line, [Slope1] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR intercept = SELECTCOLUMNS ( line, [Intercept] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR x = SELECTEDVALUE ( 'Sales order line fact'[Order date] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR y = x * slope + intercept&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN y&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 07:34:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4134946#M164243</guid>
      <dc:creator>Ethanhunt123</dc:creator>
      <dc:date>2024-09-05T07:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: LINESTX with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4134963#M164244</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;Hi! Try with:&lt;/P&gt;&lt;P&gt;Revenue trend =&lt;BR /&gt;VAR line =&lt;BR /&gt;LINESTX (&lt;BR /&gt;ALLSELECTED('Sales order line fact'[Order date]), -- This respects the slicer&lt;BR /&gt;[Total revenue trend],&lt;BR /&gt;'Sales order line fact'[Order date]&lt;BR /&gt;)&lt;BR /&gt;VAR slope = SELECTCOLUMNS(line, [Slope1])&lt;BR /&gt;VAR intercept = SELECTCOLUMNS(line, [Intercept])&lt;BR /&gt;VAR x = SELECTEDVALUE('Sales order line fact'[Order date])&lt;BR /&gt;VAR y = x * slope + intercept&lt;BR /&gt;RETURN y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 07:53:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4134963#M164244</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-09-05T07:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: LINESTX with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4134968#M164245</link>
      <description>&lt;P&gt;I have tried this but I don't think so this is working see below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data without the filter on date&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Data with the filter on the date&amp;nbsp; - From Jan 1 till Sept&lt;/P&gt;&lt;P&gt;Values are the same as above. My assumption is if I am changing dataset then values should also get change&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 07:59:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4134968#M164245</guid>
      <dc:creator>Ethanhunt123</dc:creator>
      <dc:date>2024-09-05T07:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: LINESTX with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4135096#M164252</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;Can you share the pbix?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 09:21:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4135096#M164252</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-09-05T09:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: LINESTX with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4137017#M164327</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I was doing something incorrectly. Your solution worked perfectly. Thank you so much!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 07:53:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LINESTX-with-slicer/m-p/4137017#M164327</guid>
      <dc:creator>Ethanhunt123</dc:creator>
      <dc:date>2024-09-06T07:53:27Z</dc:date>
    </item>
  </channel>
</rss>

