<?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 'Simple' increase/decrease calculation in textbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-increase-decrease-calculation-in-textbox/m-p/317084#M1200921</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;&lt;STRONG&gt;I wish to have a text box expression which counts a field (enq_Id) based on a varying week class.(either Current Week or Week-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is currently working where it count all Enquiries recieved in the current week&lt;/P&gt;&lt;P&gt;='Enquiries:'&amp;amp;num(COUNT(if(Week_Class=('Current Week'),Enq_Id)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but I also wish to display the previous weeks result and the increase or decrease between current week and week -1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have tried various variations on the following&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;='Enquiries:'&amp;amp;num(COUNT(if(Week_Class=('Current Week'),Enq_Id))) &lt;B&gt;&amp;amp; if (num(sum(COUNT(if(Week_Class=('Current Week',Enq_Id) -COUNT(if(Week_Class=('Week-1',Enq_Id,' enq INCREASE ',' enq DECREASE ')&amp;amp;'on prior week'&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;I cannot get the increase/decrease calculation to work no matter how much I adjust the syntax.&lt;BR /&gt; Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 15:20:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-30T15:20:44Z</dc:date>
    <item>
      <title>'Simple' increase/decrease calculation in textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-increase-decrease-calculation-in-textbox/m-p/317084#M1200921</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;&lt;STRONG&gt;I wish to have a text box expression which counts a field (enq_Id) based on a varying week class.(either Current Week or Week-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is currently working where it count all Enquiries recieved in the current week&lt;/P&gt;&lt;P&gt;='Enquiries:'&amp;amp;num(COUNT(if(Week_Class=('Current Week'),Enq_Id)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but I also wish to display the previous weeks result and the increase or decrease between current week and week -1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have tried various variations on the following&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;='Enquiries:'&amp;amp;num(COUNT(if(Week_Class=('Current Week'),Enq_Id))) &lt;B&gt;&amp;amp; if (num(sum(COUNT(if(Week_Class=('Current Week',Enq_Id) -COUNT(if(Week_Class=('Week-1',Enq_Id,' enq INCREASE ',' enq DECREASE ')&amp;amp;'on prior week'&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;I cannot get the increase/decrease calculation to work no matter how much I adjust the syntax.&lt;BR /&gt; Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 15:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-increase-decrease-calculation-in-textbox/m-p/317084#M1200921</guid>
      <dc:creator />
      <dc:date>2011-03-30T15:20:44Z</dc:date>
    </item>
    <item>
      <title>'Simple' increase/decrease calculation in textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-increase-decrease-calculation-in-textbox/m-p/317085#M1200922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i rewrote your expression.&lt;/P&gt;&lt;P&gt;Please, try this:&lt;/P&gt;&lt;P&gt;='Enquiries:'&amp;amp;num(COUNT(if(Week_Class=('Current Week'),Enq_Id))) &amp;amp; chr(10) &amp;amp;&lt;BR /&gt;if ( COUNT(if(Week_Class=('Current Week'),Enq_Id)) -COUNT(if(Week_Class=('Week-1'),Enq_Id)) &amp;gt;0,' Enq increased ',&lt;BR /&gt;if ( COUNT(if(Week_Class=('Current Week'),Enq_Id)) -COUNT(if(Week_Class=('Week-1'),Enq_Id)) &amp;lt;0,' Enq decreased ', ' Enq is the same ' ))&lt;BR /&gt;&lt;BR /&gt;&amp;amp;'compared to the previous week'&lt;/P&gt;&lt;P&gt;Tell me if it works for you.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 04:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-increase-decrease-calculation-in-textbox/m-p/317085#M1200922</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-15T04:15:04Z</dc:date>
    </item>
    <item>
      <title>'Simple' increase/decrease calculation in textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-increase-decrease-calculation-in-textbox/m-p/317086#M1200923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Erich, it does work.&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 16:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-increase-decrease-calculation-in-textbox/m-p/317086#M1200923</guid>
      <dc:creator />
      <dc:date>2011-04-15T16:06:19Z</dc:date>
    </item>
  </channel>
</rss>

