<?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 on dates, using &amp;gt; operator in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209242#M388152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"=...." is an expression search&lt;/P&gt;&lt;P&gt;if the Key is associated to one ETA and one Delivery date&lt;/P&gt;&lt;P&gt;every Kye value that meets te condition (ETA&amp;nbsp; &amp;gt;&amp;nbsp; delivery) will be returned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4107"&gt;The Expression Search&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2016 10:30:34 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2016-11-07T10:30:34Z</dc:date>
    <item>
      <title>Set analysis on dates, using &gt; operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209237#M388147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 tables A and B.&lt;/P&gt;&lt;P&gt;Table A has "Request Qty" field&lt;/P&gt;&lt;P&gt;Table B has 2 Date fields "ETA" and "Delivery Date".&lt;/P&gt;&lt;P&gt;There are some common fields between tables A and B.&lt;/P&gt;&lt;P&gt;I am loading tables A and B separately in my load script and letting Qlik do the join based on the common fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following Set analysis expression does not filter at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;[ETA]={"&amp;gt;$([Delivery Date])"}&amp;gt;} [Request Qty]) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Similar expression using IF statement works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SUM(If([ETA]&amp;gt;[Delivery Date], [Request Qty], 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried the following variant:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;[ETA]={"&amp;gt;$(=Date([Delivery Date]))"}&amp;gt;} [Request Qty]) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Using this expression yields empty results.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using QS Desktop tool (3.1 SR1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 15:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209237#M388147</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2016-11-04T15:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on dates, using &gt; operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209238#M388148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you a have a key field in Table 2 (if not you can create the key in the script, with autonumber)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Key = {"=(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ETA &amp;gt;&lt;/SPAN&gt; [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Delivery Date]&lt;/SPAN&gt;)" } &amp;gt;} [Request Qty])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 20:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209238#M388148</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-11-04T20:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on dates, using &gt; operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209239#M388149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does this work?&amp;nbsp; ETA &amp;gt; Delivery Date will return -1 or 0 or 1 right?&lt;/P&gt;&lt;P&gt;How will it match an autonumber?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 22:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209239#M388149</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2016-11-04T22:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on dates, using &gt; operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209240#M388150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create a flag in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LOAD ETA,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Delivery Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(ETA &amp;gt; [Delivery Date], 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and then this use this expression&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Flag = {1}&amp;gt;} [Request Qty])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 23:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209240#M388150</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-04T23:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on dates, using &gt; operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209241#M388151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can avoid Set analysis by using like this : &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Flag * [Request Qty])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jayant&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2016 03:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209241#M388151</guid>
      <dc:creator>jayanttibhe</dc:creator>
      <dc:date>2016-11-05T03:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on dates, using &gt; operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209242#M388152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"=...." is an expression search&lt;/P&gt;&lt;P&gt;if the Key is associated to one ETA and one Delivery date&lt;/P&gt;&lt;P&gt;every Kye value that meets te condition (ETA&amp;nbsp; &amp;gt;&amp;nbsp; delivery) will be returned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4107"&gt;The Expression Search&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 10:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-dates-using-gt-operator/m-p/1209242#M388152</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-11-07T10:30:34Z</dc:date>
    </item>
  </channel>
</rss>

