<?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: Monthly chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Monthly-chart/m-p/55739#M769689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually in my calendar I always create 'MonthIndex' field that is a number generated from 1 and upwards on all month, which I then can reference in my set expression. It makes it easier especially when you cross over years etc. It's extremely useful in most applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So use&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoNumber(Year, Month) as MonthIndex&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in the expression you can use:&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;Year =, Month =, MonthIndex = {"&amp;lt;=$(=Max(MonthIndex)) &amp;gt; $(Max(MonthIndex)-12)"}&amp;gt;}Secs)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2018 08:55:44 GMT</pubDate>
    <dc:creator>niclaz79</dc:creator>
    <dc:date>2018-06-05T08:55:44Z</dc:date>
    <item>
      <title>Monthly chart</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-chart/m-p/55737#M769687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show the last 12 months data in bar chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I have date fields in the script like below&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp; -2018&lt;/P&gt;&lt;P&gt;Month&amp;nbsp; -1,2,3,4,5....&lt;/P&gt;&lt;P&gt;week -19,20...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my chart should show&amp;nbsp; result like below&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; same Month year format&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and measure is&amp;nbsp;&amp;nbsp;&amp;nbsp; avg(secs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mnhts.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204326_mnhts.PNG" style="height: auto;" /&gt;&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/Monthly-chart/m-p/55737#M769687</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly chart</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-chart/m-p/55738#M769688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take a look at this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 08:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-chart/m-p/55738#M769688</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-05T08:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly chart</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-chart/m-p/55739#M769689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually in my calendar I always create 'MonthIndex' field that is a number generated from 1 and upwards on all month, which I then can reference in my set expression. It makes it easier especially when you cross over years etc. It's extremely useful in most applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So use&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoNumber(Year, Month) as MonthIndex&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in the expression you can use:&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;Year =, Month =, MonthIndex = {"&amp;lt;=$(=Max(MonthIndex)) &amp;gt; $(Max(MonthIndex)-12)"}&amp;gt;}Secs)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 08:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-chart/m-p/55739#M769689</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2018-06-05T08:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly chart</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-chart/m-p/55740#M769690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Song,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try like this also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a inline table like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; map:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 154px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="65"&gt;Month,&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="89"&gt;MonthName&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;,Jan&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2,&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Feb&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3,&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Mar&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;,Apr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;5,&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;May&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;,Jun&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;7,&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Jul&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;,Aug&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;9,&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Sep&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;,Oct&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;11,&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Nov&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;12,&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Dec&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;YourTable:&lt;/P&gt;&lt;P&gt;load*&lt;/P&gt;&lt;P&gt;from &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No concatenate&lt;/P&gt;&lt;P&gt;T3:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;date(Date#(Year &amp;amp;' '&amp;amp; Monthname,'YYYY MMM') ,'MMM-YYYY') as NewDate&lt;/P&gt;&lt;P&gt;from &amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table map;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************************&lt;/P&gt;&lt;P&gt;Then in UI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;SPAN style="font-size: 13.3333px;"&gt;NewDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Expression: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Avg({&amp;lt;Year =, Month =, &lt;SPAN style="font-size: 13.3333px;"&gt;NewDate&lt;/SPAN&gt;= {"&amp;lt;=$(=date(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;NewDate&lt;/SPAN&gt;),'MMM-YYYY')) &amp;gt; $(=date(addmonths(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;NewDate&lt;/SPAN&gt;),-12),'MMM-YYYY'))"}&amp;gt;}Secs)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Br,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;KC&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 09:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-chart/m-p/55740#M769690</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-06-05T09:43:16Z</dc:date>
    </item>
  </channel>
</rss>

