<?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 calculate the AVG difference count between  previous month  and current month  for last 6 Months. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculate-the-AVG-difference-count-between-previous-month-and/m-p/61755#M10329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;I need to calculate the AVG difference count between previous month &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;and &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;current &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;month&amp;nbsp; for last 6 Months.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;-webkit-right&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 263px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;=Month(sys_created_on)&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;count({&amp;lt;sys_created_on={"&amp;gt;=$(=MonthStart(Max(sys_created_on),-5))&amp;lt;=$(=Date(Max(sys_created_on)))"}&amp;gt;}number)&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Jan&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Feb&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Mar&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Apr&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;206&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;May&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;132&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Jun&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;47&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Total &lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;519&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KPI: ((23-34)+(34-77)+(77-206)+(206-132)+(132-47))/5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2018 12:36:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-21T12:36:21Z</dc:date>
    <item>
      <title>calculate the AVG difference count between  previous month  and current month  for last 6 Months.</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-the-AVG-difference-count-between-previous-month-and/m-p/61755#M10329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;I need to calculate the AVG difference count between previous month &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;and &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;current &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;month&amp;nbsp; for last 6 Months.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;-webkit-right&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 263px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;=Month(sys_created_on)&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;count({&amp;lt;sys_created_on={"&amp;gt;=$(=MonthStart(Max(sys_created_on),-5))&amp;lt;=$(=Date(Max(sys_created_on)))"}&amp;gt;}number)&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Jan&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Feb&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Mar&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Apr&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;206&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;May&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;132&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Jun&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;47&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Total &lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none; color: #575757; text-align: -webkit-right; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;519&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KPI: ((23-34)+(34-77)+(77-206)+(206-132)+(132-47))/5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 12:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-the-AVG-difference-count-between-previous-month-and/m-p/61755#M10329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-21T12:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the AVG difference count between  previous month  and current month  for last 6 Months.</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-the-AVG-difference-count-between-previous-month-and/m-p/61756#M10330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({&amp;lt;sys_created_on={"&amp;gt;=$(=MonthStart(Max(sys_created_on),-5))&amp;lt;=$(=Date(Max(sys_created_on)))"}&amp;gt;} Aggr(Count({&amp;lt;sys_created_on={"&amp;gt;=$(=MonthStart(Max(sys_created_on),-5))&amp;lt;=$(=Date(Max(sys_created_on)))"}&amp;gt;}number) -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Below(Count({&amp;lt;sys_created_on={"&amp;gt;=$(=MonthStart(Max(sys_created_on),-5))&amp;lt;=$(=Date(Max(sys_created_on)))"}&amp;gt;}number)), Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 12:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-the-AVG-difference-count-between-previous-month-and/m-p/61756#M10330</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-21T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the AVG difference count between  previous month  and current month  for last 6 Months.</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-the-AVG-difference-count-between-previous-month-and/m-p/61757#M10331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can solve that in more than one way here is one of them:&lt;/P&gt;&lt;P&gt;First you need to create a Month field in your load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YourTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;"sys_created_on",&lt;/P&gt;&lt;P&gt;month("sys_created_on") as Month,&lt;/P&gt;&lt;P&gt;number&lt;/P&gt;&lt;P&gt;from.......;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that you can make a calculation in a resident load of your table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HelpTable:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Month,&lt;/P&gt;&lt;P&gt;sum(number) as number,&lt;/P&gt;&lt;P&gt;resident YourTable group by Month desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another resident Load for the last 6 Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;((peek(number,1,HelpTable)-peek(number,0,HelpTable))+(peek(number,2,HelpTable)-peek(number,1,HelpTable))+(peek(number,3,HelpTable)-peek(number,2,HelpTable))+(peek(number,4,HelpTable)-peek(number,3,HelpTable))+(peek(number,5,HelpTable)-peek(number,4,HelpTable)))/5 as AVG6MONTH&lt;/P&gt;&lt;P&gt;from HelpTable;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-the-AVG-difference-count-between-previous-month-and/m-p/61757#M10331</guid>
      <dc:creator>Ralf_Heukäufer</dc:creator>
      <dc:date>2018-06-21T13:08:20Z</dc:date>
    </item>
  </channel>
</rss>

