<?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: text box calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/text-box-calculation/m-p/880907#M999190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&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;STRONG&gt;Count(If(Aggr((SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}SPAMT)-SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}GMCPAMT))/ SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}MGN_CUR_TGT), Branch) &amp;gt; 1 and Aggr((SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}SPAMT)-SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}GMCPAMT))/ SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}MGN_CUR_TGT), Branch) &amp;lt; 1.1, Branch))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2015 11:13:58 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-06-12T11:13:58Z</dc:date>
    <item>
      <title>text box calculation</title>
      <link>https://community.qlik.com/t5/QlikView/text-box-calculation/m-p/880905#M999188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;Hi Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;i have to do a calculation in text box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;my expression is &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #993300; font-size: 13px; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;(SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}SPAMT)-SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}GMCPAMT))&lt;/SPAN&gt;&lt;SPAN style="color: #993300; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;/&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #993300;"&gt;SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}MGN_CUR_TGT)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;this expression is calculated in %&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;Now i need to count the branches which has the above expression &amp;gt;100% and &amp;lt;110% in a text box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;my branch is set with variable vdim1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;How can i do this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 13px;"&gt;pls help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 11:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-box-calculation/m-p/880905#M999188</guid>
      <dc:creator />
      <dc:date>2015-06-12T11:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: text box calculation</title>
      <link>https://community.qlik.com/t5/QlikView/text-box-calculation/m-p/880906#M999189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression you mentioned above was earlier used in a text box or a chart? and was it giving you the results you expected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 11:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-box-calculation/m-p/880906#M999189</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-12T11:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: text box calculation</title>
      <link>https://community.qlik.com/t5/QlikView/text-box-calculation/m-p/880907#M999190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&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;STRONG&gt;Count(If(Aggr((SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}SPAMT)-SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}GMCPAMT))/ SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}MGN_CUR_TGT), Branch) &amp;gt; 1 and Aggr((SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}SPAMT)-SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}GMCPAMT))/ SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}MGN_CUR_TGT), Branch) &amp;lt; 1.1, Branch))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 11:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-box-calculation/m-p/880907#M999190</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-12T11:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: text box calculation</title>
      <link>https://community.qlik.com/t5/QlikView/text-box-calculation/m-p/880908#M999191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to use the aggr function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;supposing branches dimension is branch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(if(aggr(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; color: #993300;"&gt;(SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}SPAMT)-SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}GMCPAMT))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; color: #993300;"&gt;/&lt;/SPAN&gt;&lt;/STRONG&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; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; color: #222222;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #993300;"&gt;SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}MGN_CUR_TGT),branch) &amp;gt; 1, branch)&lt;/STRONG&gt;&lt;/SPAN&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; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; color: #222222;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #993300;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;count(if(aggr(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; color: #993300;"&gt;(SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}SPAMT)-SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}GMCPAMT))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; color: #993300;"&gt;/&lt;/SPAN&gt;&lt;/STRONG&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; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; color: #222222;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #993300;"&gt;SUM({&amp;lt;MonthYear=, Date={"$(vCurrWK)"}&amp;gt;}MGN_CUR_TGT),branch) &amp;lt;= 1, branch)&lt;/STRONG&gt;&lt;/SPAN&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; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; color: #222222;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #993300;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&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; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; color: #222222;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #993300;"&gt;so here what i did, is to run this expression by branch (using the aggr function) and then if the result is greater than 1 i will count the branch. Same applied when the result is less than or equal to 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 11:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-box-calculation/m-p/880908#M999191</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2015-06-12T11:17:42Z</dc:date>
    </item>
  </channel>
</rss>

