<?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: filter zero values and adjust code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/filter-zero-values-and-adjust-code/m-p/1081317#M926332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//based on a solution by Stefan Wuhl on March 31, 2016 from Qlikview forum&lt;/P&gt;&lt;P&gt;// ATTENTION: total on the top is not correct&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If([total cashed] &amp;gt; 0, Count({&amp;lt;[serial number]&amp;gt;}Total&amp;lt;Town,Centre,[platform name],[game name]&amp;gt; [serial number])*Avg(1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//based on a solution by Stefan Wuhl on March 31, 2016 from Qlikview forum&lt;/P&gt;&lt;P&gt;// ATTENTION: total on the top is not correct&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If([total cashed by platform] &amp;gt; 0, Count({&amp;lt;[serial number]&amp;gt;}Total&amp;lt;Town,Centre,[platform name],[game name]&amp;gt; [serial number])*Avg(1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121080_Capture.PNG" style="height: 365px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/121081_Capture.PNG" style="height: 270px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2016 16:23:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-08T16:23:39Z</dc:date>
    <item>
      <title>filter zero values and adjust code</title>
      <link>https://community.qlik.com/t5/QlikView/filter-zero-values-and-adjust-code/m-p/1081316#M926331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #0000ff;"&gt;Good morning,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ask for your help to solve two problems I can't solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The first is the "filter zero values". I would like to filter every row that has [money cashed by single game] = 0.&lt;/P&gt;&lt;P&gt;I have been looking to many posts and tried but could not find a solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) On a previous posts I got solutions from "swuehl" and "SunnyT." and I would like to see if Stefen's code can be adjusted to show the total number of games that are in one platform, like in Sunny's solution, or in my case I cannot use that code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I show here below two pictures for the above two questions and I enclose the sample files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="how can I filter zero values.jpg" class="jive-image image-1" src="/legacyfs/online/121013_how can I filter zero values.jpg" style="height: 312px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="total by Stefan needs to be modified.jpg" class="jive-image image-2" src="/legacyfs/online/121014_total by Stefan needs to be modified.jpg" style="height: 227px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;Antonio&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/filter-zero-values-and-adjust-code/m-p/1081316#M926331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: filter zero values and adjust code</title>
      <link>https://community.qlik.com/t5/QlikView/filter-zero-values-and-adjust-code/m-p/1081317#M926332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//based on a solution by Stefan Wuhl on March 31, 2016 from Qlikview forum&lt;/P&gt;&lt;P&gt;// ATTENTION: total on the top is not correct&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If([total cashed] &amp;gt; 0, Count({&amp;lt;[serial number]&amp;gt;}Total&amp;lt;Town,Centre,[platform name],[game name]&amp;gt; [serial number])*Avg(1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//based on a solution by Stefan Wuhl on March 31, 2016 from Qlikview forum&lt;/P&gt;&lt;P&gt;// ATTENTION: total on the top is not correct&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If([total cashed by platform] &amp;gt; 0, Count({&amp;lt;[serial number]&amp;gt;}Total&amp;lt;Town,Centre,[platform name],[game name]&amp;gt; [serial number])*Avg(1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121080_Capture.PNG" style="height: 365px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/121081_Capture.PNG" style="height: 270px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 16:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-zero-values-and-adjust-code/m-p/1081317#M926332</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-08T16:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: filter zero values and adjust code</title>
      <link>https://community.qlik.com/t5/QlikView/filter-zero-values-and-adjust-code/m-p/1081318#M926333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Thank you Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; !!! Works perfectely...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the If...on the expression "total cashed by the platform" at the beginning acts as a filter...!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore you modified the other one changing from ...*Sum(1)/* to ...*Avg(1)/*. &lt;/P&gt;&lt;P&gt;I am not familiar &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; with these so please can you briefly comment what ...&lt;STRONG&gt;*Avg(1))/*&lt;/STRONG&gt; does at the end of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If([total cashed by platform] &amp;gt; 0, Count({&amp;lt;[serial number]&amp;gt;}Total&amp;lt;Town,Centre,[platform name],[game name]&amp;gt; [serial number])&lt;STRONG&gt;*Avg(1))/*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Apr 2016 14:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-zero-values-and-adjust-code/m-p/1081318#M926333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-09T14:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: filter zero values and adjust code</title>
      <link>https://community.qlik.com/t5/QlikView/filter-zero-values-and-adjust-code/m-p/1081319#M926334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So Stefan's intention was that to change my if statement at the beginning of my initial solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Count([serial number]) &amp;gt; 0, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to be driven by a simple expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for some unknown reason to me, Sum(1) was showing a value greater than 1 for each of your dimension and Stefan's goal was to make it multiply by just 1. So I changed Sum(1) to Avg(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other If Statement is to do exactly what you meant. Based on the first expression being greater than 0, remove other expressions if they don't meet the criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Apr 2016 12:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-zero-values-and-adjust-code/m-p/1081319#M926334</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-10T12:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: filter zero values and adjust code</title>
      <link>https://community.qlik.com/t5/QlikView/filter-zero-values-and-adjust-code/m-p/1081320#M926335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Thank you Sunny,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 07:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-zero-values-and-adjust-code/m-p/1081320#M926335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-11T07:03:00Z</dc:date>
    </item>
  </channel>
</rss>

