<?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: Logic problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276593#M868320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you perhaps post the sample data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the logic behind your "Hard Checks" , how do you get the result 2 when selecting AF1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I understand it , you want to count all "1" in the selected field when all the other fields =0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2016 05:30:56 GMT</pubDate>
    <dc:creator>rido1421</dc:creator>
    <dc:date>2016-12-05T05:30:56Z</dc:date>
    <item>
      <title>Logic problem</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276590#M868317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;This is a simple table what my souce table looks like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145592_1.png" style="width: 620px; height: 208px;" /&gt;&lt;/P&gt;&lt;P&gt;Below is what i would like to achieve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i choose AF1 in the filter, then we hope it can return the number:2&lt;/P&gt;&lt;P&gt;Because once we chosed AF1, then all the values 1 can been seen as 0. In this situation, ID 4 and 7 will have 0 for all hard checks, so 2 cases is the number we need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we choose UW1 and UW2 in the filter part, then it should return the number:4&lt;/P&gt;&lt;P&gt;Because UW1 and UW2 are chosed in the filter,&amp;nbsp; all the values in thest two column will change to 0. In this situation: ID 1, ID 2, ID 8 and ID 9 will have all the column values with 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me , thx 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/Logic-problem/m-p/1276590#M868317</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276591#M868318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;there is quite an easy solution &lt;/P&gt;&lt;P&gt;in your load script cross table your source table for example &lt;/P&gt;&lt;P&gt;[Sheet1$]:&lt;/P&gt;&lt;P&gt;CrossTable (Status,Data,1)&lt;/P&gt;&lt;P&gt;LOAD [ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [UW1],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [UW2],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [UW3],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [UW4],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [AF1],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [AF2],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [AF3],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [AF4]&lt;/P&gt;&lt;P&gt; FROM [lib://AttachedFiles/Book1.xls]&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in your model &lt;/P&gt;&lt;P&gt;crate a calculated dimension with this expression &lt;/P&gt;&lt;P&gt;aggr(if(sum({&amp;lt;Status=e(Status)&amp;gt;}Data)=0,ID),ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will get you your answer &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2016 15:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276591#M868318</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2016-12-04T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276592#M868319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Liron&lt;/P&gt;&lt;P&gt;thanks for your reply , I followed your step but i still can't get the right answer&lt;/P&gt;&lt;P&gt;counld you plz attach your test file ?&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 04:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276592#M868319</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2016-12-05T04:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276593#M868320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you perhaps post the sample data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the logic behind your "Hard Checks" , how do you get the result 2 when selecting AF1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I understand it , you want to count all "1" in the selected field when all the other fields =0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 05:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276593#M868320</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2016-12-05T05:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276594#M868321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , problem solved&lt;/P&gt;&lt;P&gt;"count(aggr(if(sum({&amp;lt;Status=e(Status)&amp;gt;}Data)=0,ID),ID))" is what i want&lt;/P&gt;&lt;P&gt;thank you for your advice , it's quite helpful &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 05:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276594#M868321</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2016-12-05T05:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276595#M868322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;when i selected AF1 , all the values in AF1 can be seen as 0 ,&amp;nbsp; i want to count rows that all columns is 0 , so the answer is 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 05:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-problem/m-p/1276595#M868322</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2016-12-05T05:46:01Z</dc:date>
    </item>
  </channel>
</rss>

