<?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: sum where condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-where-condition/m-p/21728#M786226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 19:25:04 GMT</pubDate>
    <dc:creator>pablolabbe</dc:creator>
    <dc:date>2018-02-27T19:25:04Z</dc:date>
    <item>
      <title>sum where condition</title>
      <link>https://community.qlik.com/t5/QlikView/sum-where-condition/m-p/21726#M786224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 3 pivot tables&amp;nbsp; with dimention the store and 3 expressions &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 249px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="103"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; people&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter&lt;/TD&gt;&lt;TD class="xl66" width="82"&gt;transactions&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;CR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;store1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;15%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;store 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;23%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;store 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The CR expression is column(2)/column(1)&amp;nbsp; and the other two expressions are sum(people counter) and sum(transactions)&lt;/P&gt;&lt;P&gt;The first pivot is for the day the 2nd for the month and the 3rd for the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some days the counter of the people doesnt work properly and gives 0.When I want to calculate the total CR for the year or the month &lt;/P&gt;&lt;P&gt;I want to not to sum the days where the CR was 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somone give the set analysis where the expression will&amp;nbsp; the sum of transactions WHERE THE PEOPLE COUNTER WAS NOT 0?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&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/sum-where-condition/m-p/21726#M786224</guid>
      <dc:creator>kostiskampouris</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: sum where condition</title>
      <link>https://community.qlik.com/t5/QlikView/sum-where-condition/m-p/21727#M786225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Store = {"=S&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;um([people counter]) &lt;/SPAN&gt; &amp;lt;&amp;gt; 0"}&amp;gt;}transactions)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 17:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-where-condition/m-p/21727#M786225</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-27T17:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: sum where condition</title>
      <link>https://community.qlik.com/t5/QlikView/sum-where-condition/m-p/21728#M786226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 19:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-where-condition/m-p/21728#M786226</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2018-02-27T19:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: sum where condition</title>
      <link>https://community.qlik.com/t5/QlikView/sum-where-condition/m-p/21729#M786227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny and thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your suggetion ,it didn't work but I changed it to&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Sum({&amp;lt;date = {"=S&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;um([people counter]) &lt;/SPAN&gt;&amp;lt;&amp;gt; 0"}&amp;gt;}transactions) and it worked.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My problem is that the pivot is a little more complicated than I described in the initial post&lt;/P&gt;&lt;P&gt;In the month table for example for counting the transactions I have the expression&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;date = {"&amp;gt;=$(=MonthStart(Max(trn_date))) &amp;lt;=$(=Max(trn_date))"}&amp;gt;} transactions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(the user selects one day and sees the sum of the transactions from the beggining of the month until the chossen day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I insert the condition that the above sum(of the transactions) excludes the days where the people counter was 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;date = {"&amp;gt;=$(=MonthStart(Max(trn_date))) &amp;lt;=$(=Max(trn_date))"}&amp;gt;&lt;STRONG&gt;*&amp;lt;date = {"=S&lt;SPAN style="font-style: inherit;"&gt;um([people counter]) &lt;/SPAN&gt;&amp;lt;&amp;gt; 0"}&amp;gt;&lt;/STRONG&gt;} transactions)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but it retruns 0.&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;Sorry if my questions are novice of silly,but I dont have the experience to understand the mistake.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 08:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-where-condition/m-p/21729#M786227</guid>
      <dc:creator>kostiskampouris</dc:creator>
      <dc:date>2018-02-28T08:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: sum where condition</title>
      <link>https://community.qlik.com/t5/QlikView/sum-where-condition/m-p/21730#M786228</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;Sum({&amp;lt;date = {"=Sum([people counter]) &amp;lt;&amp;gt; 0 and date &amp;gt;= MonthStart(Max(trn_date)) and date &amp;lt;= Max(trn_date)"}&amp;gt;} transactions)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 10:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-where-condition/m-p/21730#M786228</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-28T10:00:21Z</dc:date>
    </item>
  </channel>
</rss>

