<?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 Error with multiple if statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032542#M642640</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;I am trying to enable if condition to create a calculated field called &lt;SPAN style="font-size: 13.3333px;"&gt;Results.DateShip.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I get strange result for &lt;SPAN style="font-size: 13.3333px;"&gt;Results.DateShip = 570710725 and 570710731&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(Final.DateRequest&amp;lt;=today()and ECL.CutoffTimeCheck='good', &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EO1.DateShip,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(today(),'YYYYMMDD')),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Final.DateRequest&amp;lt;=today()and ECL.CutoffTimeCheck='late', &lt;/P&gt;&lt;P&gt;&amp;nbsp; EO1.DateShip,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(today()+1,'YYYYMMDD')),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Final.DateRequest&amp;gt;today(), &lt;/P&gt;&lt;P&gt;&amp;nbsp; EO1.DateShip,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Final.DateRequest,'YYYYMMDD')) as Results.DateShip &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest where I am going wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 23:50:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-19T23:50:11Z</dc:date>
    <item>
      <title>Error with multiple if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032542#M642640</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;I am trying to enable if condition to create a calculated field called &lt;SPAN style="font-size: 13.3333px;"&gt;Results.DateShip.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I get strange result for &lt;SPAN style="font-size: 13.3333px;"&gt;Results.DateShip = 570710725 and 570710731&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(Final.DateRequest&amp;lt;=today()and ECL.CutoffTimeCheck='good', &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EO1.DateShip,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(today(),'YYYYMMDD')),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Final.DateRequest&amp;lt;=today()and ECL.CutoffTimeCheck='late', &lt;/P&gt;&lt;P&gt;&amp;nbsp; EO1.DateShip,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(today()+1,'YYYYMMDD')),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Final.DateRequest&amp;gt;today(), &lt;/P&gt;&lt;P&gt;&amp;nbsp; EO1.DateShip,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Final.DateRequest,'YYYYMMDD')) as Results.DateShip &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest where I am going wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 23:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032542#M642640</guid>
      <dc:creator />
      <dc:date>2016-01-19T23:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error with multiple if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032543#M642641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you may try it like this date(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;today(),'YYYY/MM?DD'&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 04:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032543#M642641</guid>
      <dc:creator />
      <dc:date>2016-01-20T04:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error with multiple if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032544#M642642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you getting results without error? seems there is an error with nested if. can you post the sample?&lt;/P&gt;&lt;P&gt;May be try like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #008080;"&gt;if(not (Final.DateRequest&amp;lt;=today() and ECL.CutoffTimeCheck='good'),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(today(),'YYYYMMDD'),&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&lt;EM&gt;&amp;nbsp; if(not (Final.DateRequest&amp;lt;=today() and ECL.CutoffTimeCheck='late'),&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(today()+1,'YYYYMMDD'),&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&lt;EM&gt;&amp;nbsp; if(not (Final.DateRequest&amp;gt;today()),&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(&lt;EM style="color: #008080; font-size: 13.3333px;"&gt;Final.DateRequest&lt;/EM&gt;,'YYYYMMDD'),&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&lt;EM&gt;&amp;nbsp; if((Final.DateRequest&amp;lt;=today()and (ECL.CutoffTimeCheck='good' or ECL.CutoffTimeCheck='late')) or (&lt;EM style="color: #008080; font-size: 13.3333px;"&gt;Final.DateRequest&lt;/EM&gt;&amp;gt;today()),&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EO1.DateShip)))) as &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style=": ; color: #008080;"&gt;Results.DateShip&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 05:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032544#M642642</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-01-20T05:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error with multiple if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032545#M642643</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;Please try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;if(Final.DateRequest&amp;lt;=today()and ECL.CutoffTimeCheck='good', &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;EO1.DateShip, Date(today(),'YYYYMMDD'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Final.DateRequest&amp;lt;=today()and ECL.CutoffTimeCheck='late', EO1.DateShip, Date(today()+1,'YYYYMMDD'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Final.DateRequest&amp;gt;today(), EO1.DateShip, Date(Final.DateRequest,'YYYYMMDD')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;) as Results.DateShip &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;It looks to me that the comma was not on the right place. Please try this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 06:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032545#M642643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-20T06:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error with multiple if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032546#M642644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think, comparing of Date at UI would not work with if condition...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would suggest to do same at script something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/164433"&gt;Comparing 2 date fields set analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure format should be same while comparing like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 06:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032546#M642644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-20T06:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error with multiple if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032547#M642645</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;Nested If syntax is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Conditon1, True Expression1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Condition2, True Expression2,&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(Condition3, True Expression3, False Expression) AS DimName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your expression should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;if(Final.DateRequest&amp;lt;=today()and ECL.CutoffTimeCheck='good',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; EO1.DateShip, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Final.DateRequest&amp;lt;=today()and ECL.CutoffTimeCheck='late',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; EO1.DateShip,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(Final.DateRequest&amp;gt;today(),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; EO1.DateShip,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Date(Final.DateRequest,'YYYYMMDD')) ))as Results.DateShip&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 06:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-multiple-if-statements/m-p/1032547#M642645</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-01-20T06:44:13Z</dc:date>
    </item>
  </channel>
</rss>

