<?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: Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error/m-p/1243694#M621583</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;What you can do is put your script in if statement like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not isnull($(vMaxDate)) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load from table 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load from.table 2&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2017 03:28:00 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2017-02-10T03:28:00Z</dc:date>
    <item>
      <title>Error</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/1243691#M621578</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;there is one variable vMaxDate&amp;nbsp; , which is created by taking first row from date field .&lt;/P&gt;&lt;P&gt;As the date field is blank so script is failing at &lt;SPAN style="font-size: 13.3333px;"&gt;Date &amp;gt; $(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vMaxDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt;, but we want to ignore the TAB1 load on first TAb of script and move to second TAb and load Table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First TAb in script---&lt;/P&gt;&lt;P&gt;TAB1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;RET,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;from Table1 where Date &amp;gt; $(&lt;SPAN style="font-size: 13.3333px;"&gt;vMaxDate&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Second TAb in script---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;TAB2:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RES,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Date,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Amt&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;from Table 2;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;We can do it by SET ErrorMode = 0;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;but is there any other way to do it or we want something like if &lt;SPAN style="font-size: 13.3333px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vMaxDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt; is null the &lt;SPAN style="font-size: 13.3333px;"&gt;SET ErrorMode = 0&lt;/SPAN&gt; else 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 10:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/1243691#M621578</guid>
      <dc:creator />
      <dc:date>2017-02-09T10:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/1243692#M621579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;but is there any other way to do it or we want something like if &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMaxDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; is null the &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET ErrorMode = 0&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; else 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&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; font-size: 13.3333px;"&gt;From here, What was the condition seems this, But what the vMaxDate here simple Max(Date) or what?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;If($(vMaxDate) = Null(), 0, 1) as ErrorMode&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/1243692#M621579</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-09T12:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/1243693#M621581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try with the following WHERE clause for TAB1 (add quotes)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;from Table1 where Date &amp;gt; &lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #3d3d3d;"&gt;vMaxDate&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;)&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&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; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;First time around, this code will load all rows. If that's not what you want, set the default value for vMaxDate to some exceptionally high date value that none of the available Dates will match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/1243693#M621581</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-02-09T12:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/1243694#M621583</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;What you can do is put your script in if statement like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not isnull($(vMaxDate)) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load from table 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load from.table 2&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 03:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/1243694#M621583</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-02-10T03:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/1243695#M621585</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;May be even if values in vmaxDate there or not and you want to run table 2 then You can try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here not adding anything btn else and end if bcs we don't want it to do anything If vmax Date id null..Plss Try and let me know.Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not isnull($(vMaxDate)) then&lt;/P&gt;&lt;P&gt;Load from table 1&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load from.table 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 05:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/1243695#M621585</guid>
      <dc:creator>sdmech81</dc:creator>
      <dc:date>2017-02-10T05:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/1243696#M621586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And really avoiding error mode helps I guess bcs wt if it throws error bcs of some othr issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 05:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/1243696#M621586</guid>
      <dc:creator>sdmech81</dc:creator>
      <dc:date>2017-02-10T05:53:07Z</dc:date>
    </item>
  </channel>
</rss>

