<?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: [ASK] Create Yearly Trend from Formula? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ASK-Create-Yearly-Trend-from-Formula/m-p/1006688#M341881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's easier to help you if you post a small sample QVW or add more detailed explanations about your data model, dimensions and expressions used in that chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to show a trend over years, start with a line chart, use Year field as dimension. &lt;/P&gt;&lt;P&gt;You may want to use a second dimension to show a line for each Description in your above chart. For now I assume this field is called Description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I assume you calculate the amount for a selected Year / Description just like Sum(Amount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Expression in the line chart to show the growth trend could then look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Num( Aggr( Sum(Amount) / Above(Sum(Amount)) -1&amp;nbsp;&amp;nbsp; ,Description, Year) ,'#.00%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make this work, the Year field needs to have a chronological LOAD order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2015 16:53:17 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-11-30T16:53:17Z</dc:date>
    <item>
      <title>[ASK] Create Yearly Trend from Formula?</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-Create-Yearly-Trend-from-Formula/m-p/1006687#M341880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlik Master,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have a report that calculate growth between current year and previous year.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107598_Untitled.png" style="height: 270px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm using set analysis for 2014 and 2013 values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Growth based on 2014-2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Growth % based on Growth/2013.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And my client want to see yearly trend based on Growth %.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there any way to create trend based on growth trend?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Best Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 09:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-Create-Yearly-Trend-from-Formula/m-p/1006687#M341880</guid>
      <dc:creator>rendiyan</dc:creator>
      <dc:date>2015-11-30T09:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] Create Yearly Trend from Formula?</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-Create-Yearly-Trend-from-Formula/m-p/1006688#M341881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's easier to help you if you post a small sample QVW or add more detailed explanations about your data model, dimensions and expressions used in that chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to show a trend over years, start with a line chart, use Year field as dimension. &lt;/P&gt;&lt;P&gt;You may want to use a second dimension to show a line for each Description in your above chart. For now I assume this field is called Description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I assume you calculate the amount for a selected Year / Description just like Sum(Amount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Expression in the line chart to show the growth trend could then look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Num( Aggr( Sum(Amount) / Above(Sum(Amount)) -1&amp;nbsp;&amp;nbsp; ,Description, Year) ,'#.00%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make this work, the Year field needs to have a chronological LOAD order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 16:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-Create-Yearly-Trend-from-Formula/m-p/1006688#M341881</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-30T16:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] Create Yearly Trend from Formula?</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-Create-Yearly-Trend-from-Formula/m-p/1006689#M341882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for my bad explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So from above chart i have =&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Descrption&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression :&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Header on Chart&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Label&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Definitions&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;=max(Year)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;sum({&amp;lt;Year={$(=max(Year))}&amp;gt;} values)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;=max(Year)-1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;sum({&amp;lt;Year={$(=max(Year)-1)}&amp;gt;} values)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Growth (Decline)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Growth (Decline)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Column(1)-Column(2)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Growth (Decline) %&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Growth (Decline) %&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Column(3)/column(2)&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;&lt;/P&gt;&lt;P&gt;Based on above chart, a client request a chart with =&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chart Type :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Line Chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimensions :&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Year //for x axis&lt;/LI&gt;&lt;LI&gt;Description&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[&lt;SPAN style="font-size: 13.3333px;"&gt;Growth (Decline) %]&amp;nbsp; //based on above chart result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, is there any solution for this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 06:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-Create-Yearly-Trend-from-Formula/m-p/1006689#M341882</guid>
      <dc:creator>rendiyan</dc:creator>
      <dc:date>2015-12-01T06:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] Create Yearly Trend from Formula?</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-Create-Yearly-Trend-from-Formula/m-p/1006690#M341883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it should work with the expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;= Num( Aggr( Sum(values) / Above(Sum(values)) -1&amp;nbsp;&amp;nbsp; ,Description, Year) ,'#.00%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;You just need to have your Year values in chronological LOAD order, e.g. by loading the field first in your script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TMP:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LOAD recno() as Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Autogenerate 3000; //assuming Year value range 1 to 3000 A.D. should be sufficient&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Then follows your current script, loading your Year field from your sources.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;At the end:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DROP TABLE TMP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If that's not working, please post a small sample QVW with your current status.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 18:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-Create-Yearly-Trend-from-Formula/m-p/1006690#M341883</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-01T18:08:10Z</dc:date>
    </item>
  </channel>
</rss>

