<?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: Conditional load. If Condition Concatinate Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731827#M670472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;I don't know how many different ways I tried to get this to work.&lt;/P&gt;&lt;P&gt;The variable way works great.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 10:07:59 GMT</pubDate>
    <dc:creator>pgriffiths</dc:creator>
    <dc:date>2014-10-01T10:07:59Z</dc:date>
    <item>
      <title>Conditional load. If Condition Concatinate Load</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731823#M670468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have been trying to get this to work for ages and can't seem to work it out.&lt;/P&gt;&lt;P&gt;I have a CSV file with dates in it in the format DD/MM/YYYY.&lt;/P&gt;&lt;P&gt;I load the file and I then want to concatenate a new row with todays date, but only if it does not already exist.&lt;/P&gt;&lt;P&gt;This is what I am working with to figure this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNQUALIFY &lt;SPAN style="font-size: 8pt;"&gt;*;&lt;BR /&gt;&lt;BR /&gt;History:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; History.Date&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 27/09/2014&lt;BR /&gt;&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DateRange:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;History.Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateRange.UpperDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; History;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Only load todays data if it doesn't already exist.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateRange.UpperDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt; 0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(History)&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;&lt;BR /&gt; History.Date&lt;BR /&gt;&lt;BR /&gt; '30/09.2014'&lt;BR /&gt;&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;end&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731823#M670468</guid>
      <dc:creator>pgriffiths</dc:creator>
      <dc:date>2014-09-30T20:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional load. If Condition Concatinate Load</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731824#M670469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The IF statement condition&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateRange.UpperDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Returns 3 when output in a text box so I do not see why the following doesn't trigger the IF statement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateRange.UpperDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt; 0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731824#M670469</guid>
      <dc:creator>pgriffiths</dc:creator>
      <dc:date>2014-09-30T20:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional load. If Condition Concatinate Load</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731825#M670470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;History:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; History.Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 27/09/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// add today if missing&lt;/P&gt;&lt;P&gt;Concatenate (History)&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&amp;nbsp; date(floor(Today())) as History.Date&lt;/P&gt;&lt;P&gt;AutoGenerate 1&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&amp;nbsp; not exists (History.Date, floor(Today()));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731825#M670470</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-30T20:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional load. If Condition Concatinate Load</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731826#M670471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't reference the field DateRange.UpperDate outside of the table like you have it. You'll need to store it in a variable right after like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;History:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;History.Date&lt;/P&gt;&lt;P&gt;27/09/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateRange:&lt;/P&gt;&lt;P&gt;Load max(History.Date)as DateRange.UpperDate&lt;/P&gt;&lt;P&gt;Resident History;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vMax = peek('DateRange.UpperDate');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table DateRange;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Only load todays data if it doesn't already exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (num(today()-&lt;STRONG&gt;vMax&lt;/STRONG&gt;) &amp;gt; 0) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(History)&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;History.Date&lt;/P&gt;&lt;P&gt;30/09/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vMax = Null();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731826#M670471</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-09-30T20:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional load. If Condition Concatinate Load</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731827#M670472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;I don't know how many different ways I tried to get this to work.&lt;/P&gt;&lt;P&gt;The variable way works great.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 10:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-load-If-Condition-Concatinate-Load/m-p/731827#M670472</guid>
      <dc:creator>pgriffiths</dc:creator>
      <dc:date>2014-10-01T10:07:59Z</dc:date>
    </item>
  </channel>
</rss>

