<?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 Compare 2 fields in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528452#M197501</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 am using qlikview 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 fields RequiredDate and DeliveryDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a pivot table, showing the data of orders in a month.&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; to show Order Date, Required Date, Delivery Date and Order Qty and Delivered Qty.&lt;/P&gt;&lt;P&gt;All columns except Delivered Qty are working fine.&lt;/P&gt;&lt;P&gt;For Delivered Qty, I have to show how much qty is delivered on or before RequiredDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written following expression for it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; DeliveryDate = {'&amp;lt;=$(RequiredDate)'} &amp;gt;} DeliveredQty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg: dates in dd/mm/yyyy format&lt;/P&gt;&lt;P&gt;OrderDate: 5/6/2012 order qty: 144&lt;/P&gt;&lt;P&gt;Required Date: 7/6/2012&lt;/P&gt;&lt;P&gt;Delivered Date: 11/6/2012: Delivered Qty: 144&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my deliveredQty should show 0, because as on 7/6/2012 nothing was delivered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can anyone, correct my expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 04:42:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-26T04:42:54Z</dc:date>
    <item>
      <title>Compare 2 fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528452#M197501</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 am using qlikview 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 fields RequiredDate and DeliveryDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a pivot table, showing the data of orders in a month.&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; to show Order Date, Required Date, Delivery Date and Order Qty and Delivered Qty.&lt;/P&gt;&lt;P&gt;All columns except Delivered Qty are working fine.&lt;/P&gt;&lt;P&gt;For Delivered Qty, I have to show how much qty is delivered on or before RequiredDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written following expression for it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; DeliveryDate = {'&amp;lt;=$(RequiredDate)'} &amp;gt;} DeliveredQty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg: dates in dd/mm/yyyy format&lt;/P&gt;&lt;P&gt;OrderDate: 5/6/2012 order qty: 144&lt;/P&gt;&lt;P&gt;Required Date: 7/6/2012&lt;/P&gt;&lt;P&gt;Delivered Date: 11/6/2012: Delivered Qty: 144&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my deliveredQty should show 0, because as on 7/6/2012 nothing was delivered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can anyone, correct my expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 04:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528452#M197501</guid>
      <dc:creator />
      <dc:date>2013-08-26T04:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528453#M197502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Pankaj Khairnar wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;how much qty is delivered &lt;STRONG&gt;on or before&lt;/STRONG&gt; RequiredDate.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;.,.....&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;So my deliveredQty should show 0, because as&lt;STRONG&gt; on&lt;/STRONG&gt; 7/6/2012 nothing was delivered.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On or before/ ON ? Are you selecting the dates and trying to see the results? Can you post a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 04:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528453#M197502</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-26T04:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528454#M197503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no I am not selecting the date.&lt;/P&gt;&lt;P&gt;Required date and Delivery date are my fields against each order no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required date and deliverydate i have added as columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so against each row, i have order no, required date and delivery date.&lt;/P&gt;&lt;P&gt;so each row may have different required date and delivery date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 05:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528454#M197503</guid>
      <dc:creator />
      <dc:date>2013-08-26T05:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528455#M197504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, I guess you won't be able to achieve the same using set analysis, because set analysis works outside the dimension and once for every object, so that would not compare the RequiredDate row-wise. You can try with IF. If you face challenge there too, please consider to share the application with scrambled data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 05:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528455#M197504</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-26T05:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528456#M197505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt; DeliveryDate = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DeliveryDate&lt;/SPAN&gt;&amp;lt;=RequiredDate"} &amp;gt;} DeliveredQty)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Celambarasan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 05:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528456#M197505</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-26T05:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528457#M197506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;Celambarasan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;I tried the&lt;/SPAN&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="replyToName"&gt;expression given by you, but it works only if customer is selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;If customer is not selected, it shows 0 in the column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;I tried with if condition as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(if(DeliveryDate &amp;lt;= RequiredDate, DeliveredQty)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;As of now, this is working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks &lt;/SPAN&gt;&lt;SPAN class="replyToName"&gt;Celambarasan and tresesco.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 06:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528457#M197506</guid>
      <dc:creator />
      <dc:date>2013-08-26T06:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528458#M197507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; Do u have any unique identifier to identify the record? &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;use that unique identifier in the place of UID&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;Sum({&amp;lt; [UID] = {"=&lt;SPAN style="font-style: inherit;"&gt;DeliveryDate&lt;/SPAN&gt;&amp;lt;=RequiredDate"} &amp;gt;} DeliveredQty)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;Hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;Celambarasan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 06:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-fields-in-set-analysis/m-p/528458#M197507</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-26T06:53:28Z</dc:date>
    </item>
  </channel>
</rss>

