<?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: Trendline Calculation help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trendline-Calculation-help/m-p/2120673#M48597</link>
    <description>&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&lt;BR /&gt;Link to file with basic data. My formula is extending the trendline beyond the dates of the data. Want to only show a trend between the data points. I'm no guru on trend formulas and copied it from PBI Community. Any help would be appreciated!&lt;BR /&gt;&lt;A href="https://driveri-my.sharepoint.com/:u:/g/personal/michellen_driverisk_com/ERIb2z2e9mVHo_W_z7gDrI0BBMA_SSoVbqzMv_UknBodfw?e=CQUODL" target="_self"&gt;Trendline_DAX.pbix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 06:04:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-07T06:04:11Z</dc:date>
    <item>
      <title>Trendline Calculation help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trendline-Calculation-help/m-p/2118191#M48542</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I have a data for July-Sept and have used a trendline calculation but the trendline is calculating values in months that don't have any data. We are using our own calculation to align to a Trend % change calculation on the page so haven't used the inbuilt one in Analysis.&amp;nbsp;Can anyone advise what I've done wrong in the calculation below?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;Trendline_Measure =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;VAR Known =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;FILTER (&lt;/SPAN&gt;&lt;/FONT&gt;SELECTCOLUMNS&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;CALCULATETABLE (&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;VALUES ( 'Calendar'[Date] ), &lt;/SPAN&gt;ALLSELECTED&lt;SPAN&gt; ( 'Calendar') ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;"Known[X]", 'Calendar'[Date],&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;"Known[Y]", [Event] ),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;AND (NOT ( ISBLANK ( Known[X] ) ) , NOT (ISBLANK ( Known[Y]&amp;nbsp; )&amp;nbsp; )&amp;nbsp; )&amp;nbsp; )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;VAR Count_Items =&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;COUNTROWS ( Known )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;VAR Sum_X =&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;SUMX ( Known, Known[X] )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;VAR Sum_X2&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;SUMX ( Known, Known[X] * Known[X] )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;VAR Sum_Y =&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;SUMX ( Known, Known[Y] )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;VAR Sum_XY =&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;SUMX ( Known, Known[X] * Known[Y] )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;VAR Average_X =&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;AVERAGEX ( Known, Known[X] )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;VAR Average_Y =&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;AVERAGEX ( Known, Known[Y] )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;VAR Slope =&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;DIVIDE (&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt; Count_Items * Sum_XY - Sum_X * Sum_Y,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt; Count_Items * Sum_X2 - Sum_X * Sum_X )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;VAR Intercept = Average_Y - Slope * Average_X&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt;SUMX ( DISTINCT ( 'Calendar'[Date] ), Intercept + Slope * 'Calendar'[Date] )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Oct 2021 06:57:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trendline-Calculation-help/m-p/2118191#M48542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-06T06:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline Calculation help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trendline-Calculation-help/m-p/2118392#M48545</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , You are doing a product with &lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;&lt;SPAN&gt; * 'Calendar'[Date]&lt;/SPAN&gt;&lt;/FONT&gt;?&lt;/P&gt;
&lt;P&gt;is the last return correct ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 08:25:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trendline-Calculation-help/m-p/2118392#M48545</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-10-06T08:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline Calculation help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trendline-Calculation-help/m-p/2120673#M48597</link>
      <description>&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&lt;BR /&gt;Link to file with basic data. My formula is extending the trendline beyond the dates of the data. Want to only show a trend between the data points. I'm no guru on trend formulas and copied it from PBI Community. Any help would be appreciated!&lt;BR /&gt;&lt;A href="https://driveri-my.sharepoint.com/:u:/g/personal/michellen_driverisk_com/ERIb2z2e9mVHo_W_z7gDrI0BBMA_SSoVbqzMv_UknBodfw?e=CQUODL" target="_self"&gt;Trendline_DAX.pbix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 06:04:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trendline-Calculation-help/m-p/2120673#M48597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-07T06:04:11Z</dc:date>
    </item>
  </channel>
</rss>

