<?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: Trend expression in Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331407#M842048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im not sure if i understand your requirement correctly but you could write the script as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14933833028593228 jive_text_macro" jivemacro_uid="_14933833028593228" modifiedtitle="true"&gt;
&lt;P&gt;1:&lt;/P&gt;
&lt;P&gt;CrossTable(Date, Data)&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="258555" data-objecttype="1" href="https://community.qlik.com/thread/258555"&gt;https://community.qlik.com/thread/258555&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1, filters(&lt;/P&gt;
&lt;P&gt;Remove(Col, Pos(Top, 5))&lt;/P&gt;
&lt;P&gt;));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Load *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield(Date,'-',2) as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '2017' as&amp;nbsp; Year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident 1; DROP Table 1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;2:&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="258555" data-objecttype="1" href="https://community.qlik.com/thread/258555"&gt;https://community.qlik.com/thread/258555&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1, filters(&lt;/P&gt;
&lt;P&gt;Remove(Col, Pos(Top, 5))&lt;/P&gt;
&lt;P&gt;));&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Apr 2017 12:42:46 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2017-04-28T12:42:46Z</dc:date>
    <item>
      <title>Trend expression in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331403#M842044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with a data table. I have started to use straight table and I would like to have a column as minichart.&lt;/P&gt;&lt;P&gt;I am looking at sa´lesamount/month and I would like to make the trend for 3 month.&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="274" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 783px; height: 276px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;SalesObject&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;SalesAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;SalesAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-02&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;SalesAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-03&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MiniChart&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Trend) Or Rolling Average&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;35&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;70&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;119&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;60&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;45&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;130&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;40&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;90&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;92&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;34&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;E&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;46&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;F&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;155&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the example in QV book but it didn't work. Is there anyone can help me?&lt;/P&gt;&lt;P&gt;/Shirin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331403#M842044</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331404#M842045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shirin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at the attached qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 17:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331404#M842045</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-04-27T17:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331405#M842046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did this solve your problem?&lt;/P&gt;&lt;P&gt;If yes, then please close the thread by marking correct and helpful answers!&lt;/P&gt;&lt;P&gt;If not, please let us know the problems you are facing .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331405#M842046</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-04-28T11:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331406#M842047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Frank,&lt;/P&gt;&lt;P&gt;Yes. That helps but I put an example. If we don't want to have date like 2017-01 ... in the script , what should we do? Since the month will change. next month , 3 interested month are not the same ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331406#M842047</guid>
      <dc:creator />
      <dc:date>2017-04-28T11:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331407#M842048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im not sure if i understand your requirement correctly but you could write the script as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14933833028593228 jive_text_macro" jivemacro_uid="_14933833028593228" modifiedtitle="true"&gt;
&lt;P&gt;1:&lt;/P&gt;
&lt;P&gt;CrossTable(Date, Data)&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="258555" data-objecttype="1" href="https://community.qlik.com/thread/258555"&gt;https://community.qlik.com/thread/258555&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1, filters(&lt;/P&gt;
&lt;P&gt;Remove(Col, Pos(Top, 5))&lt;/P&gt;
&lt;P&gt;));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Load *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield(Date,'-',2) as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '2017' as&amp;nbsp; Year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident 1; DROP Table 1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;2:&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="258555" data-objecttype="1" href="https://community.qlik.com/thread/258555"&gt;https://community.qlik.com/thread/258555&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1, filters(&lt;/P&gt;
&lt;P&gt;Remove(Col, Pos(Top, 5))&lt;/P&gt;
&lt;P&gt;));&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 12:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331407#M842048</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-04-28T12:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331408#M842049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. I don't think so. I mean I want to have date as variable not fixed dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2017 15:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331408#M842049</guid>
      <dc:creator />
      <dc:date>2017-04-29T15:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331409#M842050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So how do your dates look like next month and the month after next month?&lt;/P&gt;&lt;P&gt;Are there always only the last 3 month available, means in may showing 02, 03 and 04 and in june 03, 04 and 05?&lt;/P&gt;&lt;P&gt;or do you have more dates in your datasource, like 01,02,03,04,05....? If this is the case you might need to&lt;/P&gt;&lt;P&gt;use a mastercalender and filter to the last 3 month. have a look at the attached sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2017 17:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331409#M842050</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-04-29T17:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331410#M842051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's the first case you mentioned. This month 02,03,04 and next month 03,04 and 05.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 09:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331410#M842051</guid>
      <dc:creator />
      <dc:date>2017-05-01T09:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trend expression in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331411#M842052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even in that case the above mentioned solution with mastercalendar should work!&lt;/P&gt;&lt;P&gt;Please have a deeper look into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 12:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-expression-in-Straight-Table/m-p/1331411#M842052</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-05-01T12:23:52Z</dc:date>
    </item>
  </channel>
</rss>

