<?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: logical condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926824#M320743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi swuehl&lt;/P&gt;&lt;P&gt;i'll check and update to u,thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2015 14:56:01 GMT</pubDate>
    <dc:creator>buzzy996</dc:creator>
    <dc:date>2015-11-03T14:56:01Z</dc:date>
    <item>
      <title>logical condition</title>
      <link>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926817#M320736</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;some one can help,to get the attached "expected output column" in excel?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926817#M320736</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-11-03T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: logical condition</title>
      <link>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926818#M320737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure how you are getting the number 5 there. Can you explain the calculation again?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926818#M320737</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-03T13:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: logical condition</title>
      <link>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926819#M320738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry i missed one record on my previous attachment file,pfa update one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926819#M320738</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-11-03T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: logical condition</title>
      <link>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926820#M320739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is not the best of the solution, but with your current data which only goes back to the max of two rows this is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&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(Len(Trim(CalcDate)) &amp;gt; 0, Interval(LASTCHANGEDTS - CalcDate, 'd')) as OutPut;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD TASK_REF, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TASK_VERSION_KEY, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERSIONID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATETS, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LASTCHANGEDTS, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(STATUS = 'Reply Received',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Previous(Previous(STATUS)) = 'Awaiting Reply' and TASK_REF = Previous(Previous(TASK_REF)), Previous(Previous(LASTCHANGEDTS)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Previous(STATUS) = 'Awaiting Reply' and TASK_REF = Previous(TASK_REF), Previous(LASTCHANGEDTS)))) as CalcDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[In and output.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on how much back you expect your data to go you can expand the following If statement:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt; &lt;SPAN style="color: #ff0000;"&gt;If(STATUS = 'Reply Received',&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Previous(Previous(STATUS)) = 'Awaiting Reply' and TASK_REF = Previous(Previous(TASK_REF)), Previous(Previous(LASTCHANGEDTS)),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Previous(STATUS) = 'Awaiting Reply' and TASK_REF = Previous(TASK_REF), Previous(LASTCHANGEDTS)))) as CalcDate&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;Output:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103798_Capture.PNG" style="height: 201px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 14:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926820#M320739</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-03T14:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: logical condition</title>
      <link>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926821#M320740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;yes,your assumption is right..data will change dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instituted of writing if with previous(previosu()),there is any other solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 14:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926821#M320740</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-11-03T14:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: logical condition</title>
      <link>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926822#M320741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There must be, just can't think of anything right now. May be &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ or &lt;A href="https://community.qlik.com/qlik-users/61824"&gt;MarcoWedel&lt;/A&gt;‌ can help here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 14:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926822#M320741</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-03T14:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: logical condition</title>
      <link>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926823#M320742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can do it something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD TASK_REF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TASK_VERSION_KEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERSIONID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATETS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LASTCHANGEDTS&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[In and output (1).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;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(STATUS = 'Reply Received', LASTCHANGEDTS- AwaitDTS) as Output;&lt;/P&gt;&lt;P&gt;LOAD TASK_REF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TASK_VERSION_KEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERSIONID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATETS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LASTCHANGEDTS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(STATUS = 'Awaiting Reply' and not (peek('STATUS') ='Awaiting Reply' and TASK_REF = peek('TASK_REF')), LASTCHANGEDTS, PEEK('AwaitDTS')) AS AwaitDTS&lt;/P&gt;&lt;P&gt;Resident INPUT&lt;/P&gt;&lt;P&gt;ORDER BY TASK_REF, LASTCHANGEDTS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DROP TABLE INPUT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 14:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926823#M320742</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-03T14:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: logical condition</title>
      <link>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926824#M320743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi swuehl&lt;/P&gt;&lt;P&gt;i'll check and update to u,thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 14:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926824#M320743</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-11-03T14:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: logical condition</title>
      <link>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926825#M320744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD TASK_REF,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TASK_VERSION_KEY,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERSIONID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATETS,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LASTCHANGEDTS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[In and output (1).xls]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(biff, embedded labels, table is Sheet1$);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;New:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(STATUS='Reply Received',LASTCHANGEDTS-ChangeDate,Null()) as OutPut;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(TASK_REF&amp;lt;&amp;gt;Previous(TASK_REF) and STATUS='Awaiting Reply', LASTCHANGEDTS,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(TASK_REF&amp;lt;&amp;gt;Previous(TASK_REF) and STATUS='Reply Received',Null(),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(TASK_REF=Previous(TASK_REF) and (previous(STATUS)='Reply Received' and STATUS= 'Awaiting Reply'),LASTCHANGEDTS,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(TASK_REF=Previous(TASK_REF) and previous(STATUS)='Awaiting Reply',Peek('ChangeDate'),null())))) as ChangeDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Order by TASK_REF,VERSIONID asc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table Data;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 06:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/logical-condition/m-p/926825#M320744</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-11-04T06:17:34Z</dc:date>
    </item>
  </channel>
</rss>

