<?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: What use into Linest_m function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832569#M1018432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert.&lt;/P&gt;&lt;P&gt;It works perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The step "&lt;SPAN style="font-size: 13.33px;"&gt;aggr( rowno(), yearmonth))"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;was what I missed. Your explaination has been very clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Massimo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2015 12:12:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-01T12:12:50Z</dc:date>
    <item>
      <title>What use into Linest_m function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832567#M1018430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a chart to have the price behaviour over 5 years. What I need is to have always shown all the columns for different years and months so I used set analysis like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;yearmonth&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Anno&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mese&lt;/SPAN&gt;=&amp;gt;} &lt;SPAN style="color: #800000;"&gt;vSold&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;yearmonth&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Anno&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mese&lt;/SPAN&gt;=&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Quantità&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;and it works as I need.&lt;/P&gt;&lt;P&gt;When I select the trendline on chart it gives me "y=6.6319x + 4446.9"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since I have to use the "m" into y=xm+q to understand if trend is increasing or flat then I used the lines_m function but it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;I have already tried to check into the forum but I am not able to find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Massiimo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 07:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832567#M1018430</guid>
      <dc:creator />
      <dc:date>2015-04-01T07:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: What use into Linest_m function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832568#M1018431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The trendline formula uses the index number of the x-axis dimension values, i.e the left most value is 1, the next 2 etc. The linest_m function uses the actual x-axis dimension values. You could try:&lt;/P&gt;&lt;P&gt;linest_m(aggr( sum(....vSold...)/sum(....Quantita...) , yearmonth), &lt;SPAN style="font-size: 13.3333330154419px;"&gt;aggr( rowno(), yearmonth))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;See attached example.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 09:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832568#M1018431</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-01T09:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: What use into Linest_m function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832569#M1018432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert.&lt;/P&gt;&lt;P&gt;It works perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The step "&lt;SPAN style="font-size: 13.33px;"&gt;aggr( rowno(), yearmonth))"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;was what I missed. Your explaination has been very clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Massimo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 12:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832569#M1018432</guid>
      <dc:creator />
      <dc:date>2015-04-01T12:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: What use into Linest_m function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832570#M1018433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more thing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yearmonth is used as label for the x-axis so the above formula works properly. However even Anno and Mese are two fields which affect the selection of yearmonth (even if they do not change the chart).&lt;/P&gt;&lt;P&gt;Is there any way to use a multiple fields into aggr function so I can make the Linest_m formula insensitive to Anno nor Mese?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 12:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832570#M1018433</guid>
      <dc:creator />
      <dc:date>2015-04-01T12:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: What use into Linest_m function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832571#M1018434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make the linest_m value insensitive to selections in other fields. But I don't think that's going to help you. If you don't want the chart to change then create an alternate state on the General tab of the Document Properties window and then assign that alternate state to the chart on the General tab of the charts properties window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 13:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832571#M1018434</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-01T13:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: What use into Linest_m function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832572#M1018435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The chart is not affected by my selection of Anno nor Mese since I used the yearmonth field as x-axis but through the set analysis I made the chart insensitive also to Anno and Mese:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;yearmonth&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Anno&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mese&lt;/SPAN&gt;=&amp;gt;} &lt;SPAN style="color: #800000;"&gt;vSold&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;yearmonth&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Anno&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mese&lt;/SPAN&gt;=&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Quantità&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that Linest _m formula works by entering&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;linest_m&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;( &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;yearmonth&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Anno&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mese&lt;/SPAN&gt;=&amp;gt;} &lt;SPAN style="color: #800000;"&gt;vSold&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;yearmonth&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Anno&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mese&lt;/SPAN&gt;=&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Quantità&lt;/SPAN&gt;) , &lt;SPAN style="color: #800000;"&gt;yearmonth&lt;/SPAN&gt;), &lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;( &lt;SPAN style="color: #0000ff;"&gt;rowno&lt;/SPAN&gt;(), &lt;SPAN style="color: #800000;"&gt;yearmonth&lt;/SPAN&gt;)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but Anno and Mese affect the value of "m". I would like to make it insensitive.&lt;/P&gt;&lt;P&gt;Maybe I did not understand your indication (I am not an expert) but do you have any solution for my issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 15:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-use-into-Linest-m-function/m-p/832572#M1018435</guid>
      <dc:creator />
      <dc:date>2015-04-01T15:05:06Z</dc:date>
    </item>
  </channel>
</rss>

