<?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: Set Analysis greater or equal to field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221399#M390480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Sunny, I am try to represent this on a straight table. Yes I want the table to show the 2 type D where the quantity is greater or equal to QuantityB.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 17:28:13 GMT</pubDate>
    <dc:creator>didierodayo</dc:creator>
    <dc:date>2017-02-06T17:28:13Z</dc:date>
    <item>
      <title>Set Analysis greater or equal to field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221397#M390478</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 need some help working out this set analysis.&lt;/P&gt;&lt;P&gt;I have the table below and would like to return the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- For the max date&lt;/P&gt;&lt;P&gt;- where the QuantityA is greater or equal to QuantityB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152186_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Expected output:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/152187_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;SET:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Type,OrderDate,QuantityA,QuantityB&lt;BR /&gt; D, 29/01/2017, 12, 10&lt;BR /&gt; B, 29/01/2017, 4, 10&lt;BR /&gt; A, 15/01/2017, 4, 10&lt;BR /&gt; D, 29/01/2017, 7, 10&lt;BR /&gt; D, 10/01/2017, 4, 10&lt;BR /&gt; B, 25/12/2016, 4, 10&lt;BR /&gt; A, 18/12/2016, 4, 10&lt;BR /&gt; D, 29/01/2017, 10, 10&lt;BR /&gt; A, 20/11/2016, 4, 10&lt;BR /&gt; B, 23/10/2016, 4, 10&lt;BR /&gt; D, 16/10/2016, 4, 10&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221397#M390478</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-06T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis greater or equal to field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221398#M390479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is need in the script? Just get the 2 rows from the 11 rows from your sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221398#M390479</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-06T17:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis greater or equal to field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221399#M390480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Sunny, I am try to represent this on a straight table. Yes I want the table to show the 2 type D where the quantity is greater or equal to QuantityB.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221399#M390480</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-06T17:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis greater or equal to field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221400#M390481</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;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152194_Capture.PNG" style="height: 46px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Avg({&amp;lt;OrderDate = {"$(=Date(Max(OrderDate), 'DD/MM/YYYY'))"}&amp;gt;} QuantityA) &amp;gt;= Avg({&amp;lt;OrderDate = {"$(=Date(Max(OrderDate), 'DD/MM/YYYY'))"}&amp;gt;} QuantityB), Avg({&amp;lt;OrderDate = {"$(=Date(Max(OrderDate), 'DD/MM/YYYY'))"}&amp;gt;} 1))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221400#M390481</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-06T17:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis greater or equal to field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221401#M390482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this is good way but you can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim: &lt;/P&gt;&lt;P&gt;= IF(QuantityA &amp;gt;= QuantityB, Type)&amp;nbsp; /* Check Supress When value is null for this Dimension */&lt;/P&gt;&lt;P&gt;OrderDate&lt;/P&gt;&lt;P&gt;QuantityA&lt;/P&gt;&lt;P&gt;QuantityB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expr: &lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just hide the expression in Presentation tab. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221401#M390482</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-02-06T17:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis greater or equal to field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221402#M390483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other option is to create a flag in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(QuantityA &amp;gt;= QuantityB, 1, 0) as Flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Type,OrderDate,QuantityA,QuantityB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 29/01/2017, 12, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 29/01/2017, 4, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 15/01/2017, 4, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 29/01/2017, 7, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 10/01/2017, 4, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 25/12/2016, 4, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 18/12/2016, 4, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 29/01/2017, 10, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 20/11/2016, 4, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 23/10/2016, 4, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 16/10/2016, 4, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and then this expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;OrderDate = {"$(=Date(Max(OrderDate), 'DD/MM/YYYY'))"}&amp;gt;}Flag)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221402#M390483</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-06T17:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis greater or equal to field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221403#M390484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks All the options above worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 18:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-greater-or-equal-to-field/m-p/1221403#M390484</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-06T18:04:13Z</dc:date>
    </item>
  </channel>
</rss>

