<?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: How to create a trendline based on subset of data? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-trendline-based-on-subset-of-data/m-p/2005490#M1221525</link>
    <description>&lt;P&gt;it is working for text object respective of selection.but in table chart i have four aggregation fields based on moth-year dimension and only for one aggregation i have to show previous 3 months excluding current month so i am using above set expression for that but it is not working.it is giving month wise aggregation instead of previous 3 months results.how can i achieve this in table chart with dimension.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://www.panoramacharter.me/" target="_self"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;Panorama Login Charter&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 18:15:26 GMT</pubDate>
    <dc:creator>Chasityberg</dc:creator>
    <dc:date>2022-11-16T18:15:26Z</dc:date>
    <item>
      <title>How to create a trendline based on subset of data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-trendline-based-on-subset-of-data/m-p/2004321#M1221493</link>
      <description>&lt;P&gt;My customer, an inventory manager, has asked for a trendline over a specific time frame while also displaying the complete dataset. For example, on 1-Mar-2022 the customer implemented a program to focus on trying to improve the on-hand inventory for specific items. The code below limits the trendline (purple) for dates only &amp;gt;= to March 1st, but it has the same slope/intercept as the entire dataset (light blue). The slope should be steeper with a different intercept. How do I subset the data to only use the subset that has date &amp;gt;= March 1st?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(date &amp;gt;= MakeDate(2022,03,01),&lt;/P&gt;
&lt;P&gt;linest_m(total aggr(if(100*sum(onhand)/sum(authorized),100*sum(onhand)/sum(authorized)),date),date) &lt;BR /&gt;* only({1}date)&lt;/P&gt;
&lt;P&gt;+ linest_b(total aggr(if(100*sum(onhand)/sum(authorized),100*sum(onhand)/sum(authorized)),date),date)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 22:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-trendline-based-on-subset-of-data/m-p/2004321#M1221493</guid>
      <dc:creator>jkneuf</dc:creator>
      <dc:date>2022-11-14T22:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a trendline based on subset of data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-trendline-based-on-subset-of-data/m-p/2005490#M1221525</link>
      <description>&lt;P&gt;it is working for text object respective of selection.but in table chart i have four aggregation fields based on moth-year dimension and only for one aggregation i have to show previous 3 months excluding current month so i am using above set expression for that but it is not working.it is giving month wise aggregation instead of previous 3 months results.how can i achieve this in table chart with dimension.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://www.panoramacharter.me/" target="_self"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;Panorama Login Charter&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 18:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-trendline-based-on-subset-of-data/m-p/2005490#M1221525</guid>
      <dc:creator>Chasityberg</dc:creator>
      <dc:date>2022-11-16T18:15:26Z</dc:date>
    </item>
  </channel>
</rss>

