<?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 IF CONDITION in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-CONDITION/m-p/1059642#M932034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;Tab: &lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;PartnerCodeTimeliness,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FeedDateTimeliness,&lt;/P&gt;&lt;P&gt;&amp;nbsp; //max(FileReceivedTimeStampPMCTTemp) AS FileReceivedTimeStampPMCT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(IsNothingToReportTimeliness = 0, 'Nothing to Report',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(RawRecordsTotalPMCTTemp = DeletedRecordsTotalPMCTTemp,'Deleted',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(IsNull(FileReceivedTimeStampPMCTTemp) and FiscalWeekEndDateTimeliness-now()&amp;gt;=Timestamp#('24:00:00','hh:mm:ss'),'Not Yet Due',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(IsNull(BatchIDCountTimeliness) , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(ExpectedDateTimeTimeliness1&amp;gt;=now() ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ExpectedDateTimeTimeliness1-now()&amp;lt;=Timestamp#('24:00:00','hh:mm:ss'),'Due Shortly',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //,'Not Yet Due2'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ExpectedDateTimeTimeliness1&amp;gt;=if(IsNull(GracePeriod1DateTimePMCTTemp),ExpectedDateTimeTimeliness1,GracePeriod1DateTimePMCTTemp),'Overdue',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ExpectedDateTimeTimeliness1&amp;gt;=if(IsNull(GracePeriod2DateTimePMCTTemp),ExpectedDateTimeTimeliness1,GracePeriod1DateTimePMCTTemp),'Overdue',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ExpectedDateTimeTimeliness1&amp;gt;=if(IsNull(GracePeriod3DateTimePMCTTemp),ExpectedDateTimeTimeliness1,GracePeriod1DateTimePMCTTemp),'Overdue','Not Received'))))), //NotReceivedStatus&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//ZAP-754, When no entry in Timeliness Master then On-Time is shown.&lt;/P&gt;&lt;P&gt;// if(BatchIDCountTimeliness &amp;lt; ExpectedFileCountTimeliness,'Partially Received',if(FileReceivedTimeStampPMCTTemp&amp;lt;= if(IsNull(ExpectedDateTimeTimeliness1) ,FileReceivedTimeStampPMCTTemp,ExpectedDateTimeTimeliness1 ),&amp;nbsp; 'On Time',&lt;/P&gt;&lt;P&gt;// if(BatchIDCountTimeliness &amp;lt; ExpectedFileCountTimeliness,'Partially Received',if(FileReceivedTimeStampPMCTTemp&amp;lt;= ExpectedDateTimeTimeliness1,if(applymap('TimeLinessTrackerMasterMap',PartnerCodeTimeliness)&amp;lt;&amp;gt;1,null(),'On Time'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(BatchIDCountTimeliness &amp;lt; ExpectedFileCountTimeliness,'Partially Received',if(FileReceivedTimeStampPMCTTemp&amp;lt;= if(IsNull(ExpectedDateTimeTimeliness1) ,FileReceivedTimeStampPMCTTemp,ExpectedDateTimeTimeliness1 ), 'On Time',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(FileReceivedTimeStampPMCTTemp&amp;lt;= if(IsNull(GracePeriod1DateTimePMCTTemp),if(IsNull(ExpectedDateTimeTimeliness1) ,FileReceivedTimeStampPMCTTemp,ExpectedDateTimeTimeliness1 ),GracePeriod1DateTimePMCTTemp) , 'In Grace Period',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(FileReceivedTimeStampPMCTTemp&amp;lt;=if(IsNull(GracePeriod2DateTimePMCTTemp),if(IsNull(ExpectedDateTimeTimeliness1) ,FileReceivedTimeStampPMCTTemp,ExpectedDateTimeTimeliness1 ),GracePeriod2DateTimePMCTTemp),'In Grace Period',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(FileReceivedTimeStampPMCTTemp&amp;lt;=GracePeriod3DateTimePMCTTemp ,'In Grace Period' , if(not IsNull(FileReceivedTimeStampPMCTTemp),'Late')))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )) //ReceivedStatus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ))) as FileUpdateStatus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ExpectedDateTimeTimeliness1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ExpectedDateTimeTimeliness,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM tab;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;For 9th MAR 2016 and&amp;nbsp; 8th MAR 2016,It should return 'Not Yet Due',But it will give 'Not Received',&lt;/P&gt;&lt;P&gt;How Can i Achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any alternate to write this much of code ???, if YES please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we use Set Analysis ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give valuable suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prathap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 12:23:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-01T12:23:35Z</dc:date>
    <item>
      <title>IF CONDITION</title>
      <link>https://community.qlik.com/t5/QlikView/IF-CONDITION/m-p/1059642#M932034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;Tab: &lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;PartnerCodeTimeliness,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FeedDateTimeliness,&lt;/P&gt;&lt;P&gt;&amp;nbsp; //max(FileReceivedTimeStampPMCTTemp) AS FileReceivedTimeStampPMCT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(IsNothingToReportTimeliness = 0, 'Nothing to Report',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(RawRecordsTotalPMCTTemp = DeletedRecordsTotalPMCTTemp,'Deleted',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(IsNull(FileReceivedTimeStampPMCTTemp) and FiscalWeekEndDateTimeliness-now()&amp;gt;=Timestamp#('24:00:00','hh:mm:ss'),'Not Yet Due',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(IsNull(BatchIDCountTimeliness) , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(ExpectedDateTimeTimeliness1&amp;gt;=now() ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ExpectedDateTimeTimeliness1-now()&amp;lt;=Timestamp#('24:00:00','hh:mm:ss'),'Due Shortly',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //,'Not Yet Due2'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ExpectedDateTimeTimeliness1&amp;gt;=if(IsNull(GracePeriod1DateTimePMCTTemp),ExpectedDateTimeTimeliness1,GracePeriod1DateTimePMCTTemp),'Overdue',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ExpectedDateTimeTimeliness1&amp;gt;=if(IsNull(GracePeriod2DateTimePMCTTemp),ExpectedDateTimeTimeliness1,GracePeriod1DateTimePMCTTemp),'Overdue',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ExpectedDateTimeTimeliness1&amp;gt;=if(IsNull(GracePeriod3DateTimePMCTTemp),ExpectedDateTimeTimeliness1,GracePeriod1DateTimePMCTTemp),'Overdue','Not Received'))))), //NotReceivedStatus&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//ZAP-754, When no entry in Timeliness Master then On-Time is shown.&lt;/P&gt;&lt;P&gt;// if(BatchIDCountTimeliness &amp;lt; ExpectedFileCountTimeliness,'Partially Received',if(FileReceivedTimeStampPMCTTemp&amp;lt;= if(IsNull(ExpectedDateTimeTimeliness1) ,FileReceivedTimeStampPMCTTemp,ExpectedDateTimeTimeliness1 ),&amp;nbsp; 'On Time',&lt;/P&gt;&lt;P&gt;// if(BatchIDCountTimeliness &amp;lt; ExpectedFileCountTimeliness,'Partially Received',if(FileReceivedTimeStampPMCTTemp&amp;lt;= ExpectedDateTimeTimeliness1,if(applymap('TimeLinessTrackerMasterMap',PartnerCodeTimeliness)&amp;lt;&amp;gt;1,null(),'On Time'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(BatchIDCountTimeliness &amp;lt; ExpectedFileCountTimeliness,'Partially Received',if(FileReceivedTimeStampPMCTTemp&amp;lt;= if(IsNull(ExpectedDateTimeTimeliness1) ,FileReceivedTimeStampPMCTTemp,ExpectedDateTimeTimeliness1 ), 'On Time',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(FileReceivedTimeStampPMCTTemp&amp;lt;= if(IsNull(GracePeriod1DateTimePMCTTemp),if(IsNull(ExpectedDateTimeTimeliness1) ,FileReceivedTimeStampPMCTTemp,ExpectedDateTimeTimeliness1 ),GracePeriod1DateTimePMCTTemp) , 'In Grace Period',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(FileReceivedTimeStampPMCTTemp&amp;lt;=if(IsNull(GracePeriod2DateTimePMCTTemp),if(IsNull(ExpectedDateTimeTimeliness1) ,FileReceivedTimeStampPMCTTemp,ExpectedDateTimeTimeliness1 ),GracePeriod2DateTimePMCTTemp),'In Grace Period',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(FileReceivedTimeStampPMCTTemp&amp;lt;=GracePeriod3DateTimePMCTTemp ,'In Grace Period' , if(not IsNull(FileReceivedTimeStampPMCTTemp),'Late')))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )) //ReceivedStatus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ))) as FileUpdateStatus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ExpectedDateTimeTimeliness1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ExpectedDateTimeTimeliness,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM tab;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;For 9th MAR 2016 and&amp;nbsp; 8th MAR 2016,It should return 'Not Yet Due',But it will give 'Not Received',&lt;/P&gt;&lt;P&gt;How Can i Achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any alternate to write this much of code ???, if YES please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we use Set Analysis ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give valuable suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prathap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 12:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-CONDITION/m-p/1059642#M932034</guid>
      <dc:creator />
      <dc:date>2016-03-01T12:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: IF CONDITION</title>
      <link>https://community.qlik.com/t5/QlikView/IF-CONDITION/m-p/1059643#M932035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"For 9th MAR 2016 and&amp;nbsp; 8th MAR 2016,It should return 'Not Yet Due',But it will give 'Not Received',&lt;/P&gt;&lt;P&gt;How Can i Achieve that."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand to which field these date values are referring. Please post a sample QVW in combination with some input records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Is there any alternate to write this much of code ???, if YES please let me know."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe? But hard to answer without knowing the data model, input records, requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Can we use Set Analysis ??"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, not in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 18:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-CONDITION/m-p/1059643#M932035</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-01T18:29:58Z</dc:date>
    </item>
  </channel>
</rss>

