<?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 Calculate most restrictive value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-most-restrictive-value/m-p/1611290#M596944</link>
    <description>&lt;P&gt;Hello, I’d like to know how to make this output in this table taking those booleans into account for making the restriction condition.&lt;/P&gt;&lt;P&gt;If boolean is 0 in any row this code has to be discarded.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic explained is similar to this: [1,1,1,1] &amp;amp; [1,1,0,0] &amp;amp; [1,1,1,0] &amp;amp; [6656, 6657, 6658, 6659] = [6656, 6657, 0, 0]&lt;/P&gt;&lt;P&gt;Table;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="3FA406C3-68A0-4331-8B5D-BA45D17FA053.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16831i0CDCB24902E62BB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3FA406C3-68A0-4331-8B5D-BA45D17FA053.jpeg" alt="3FA406C3-68A0-4331-8B5D-BA45D17FA053.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Desired output;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="35F09669-B54D-4C86-A219-DFC213E9B9C4.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16830i6314D31BBC3E295A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="35F09669-B54D-4C86-A219-DFC213E9B9C4.jpeg" alt="35F09669-B54D-4C86-A219-DFC213E9B9C4.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried with &amp;nbsp; &lt;EM&gt;If(sum(aggr(sum(aggr(&lt;STRONG&gt;sum(Boolean)&lt;/STRONG&gt;,Code,Category)),Category))=sum(aggr(sum(aggr(&lt;STRONG&gt;max(sum(Boolean))&lt;/STRONG&gt;,Code,Category)),Category)),1,0)&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:17:15 GMT</pubDate>
    <dc:creator>Terratorterry</dc:creator>
    <dc:date>2024-11-16T20:17:15Z</dc:date>
    <item>
      <title>Calculate most restrictive value</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-most-restrictive-value/m-p/1611290#M596944</link>
      <description>&lt;P&gt;Hello, I’d like to know how to make this output in this table taking those booleans into account for making the restriction condition.&lt;/P&gt;&lt;P&gt;If boolean is 0 in any row this code has to be discarded.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic explained is similar to this: [1,1,1,1] &amp;amp; [1,1,0,0] &amp;amp; [1,1,1,0] &amp;amp; [6656, 6657, 6658, 6659] = [6656, 6657, 0, 0]&lt;/P&gt;&lt;P&gt;Table;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="3FA406C3-68A0-4331-8B5D-BA45D17FA053.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16831i0CDCB24902E62BB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3FA406C3-68A0-4331-8B5D-BA45D17FA053.jpeg" alt="3FA406C3-68A0-4331-8B5D-BA45D17FA053.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Desired output;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="35F09669-B54D-4C86-A219-DFC213E9B9C4.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16830i6314D31BBC3E295A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="35F09669-B54D-4C86-A219-DFC213E9B9C4.jpeg" alt="35F09669-B54D-4C86-A219-DFC213E9B9C4.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried with &amp;nbsp; &lt;EM&gt;If(sum(aggr(sum(aggr(&lt;STRONG&gt;sum(Boolean)&lt;/STRONG&gt;,Code,Category)),Category))=sum(aggr(sum(aggr(&lt;STRONG&gt;max(sum(Boolean))&lt;/STRONG&gt;,Code,Category)),Category)),1,0)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-most-restrictive-value/m-p/1611290#M596944</guid>
      <dc:creator>Terratorterry</dc:creator>
      <dc:date>2024-11-16T20:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate most restrictive value</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-most-restrictive-value/m-p/1617625#M596945</link>
      <description>&lt;P&gt;Borja, in these cases, it generally helps get responses if you can attach the app or a sample app with the issue, so folks can look at things in much greater detail.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-most-restrictive-value/m-p/1617625#M596945</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-28T12:45:18Z</dc:date>
    </item>
  </channel>
</rss>

