<?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 Conditional Appending in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Conditional-Appending/m-p/2483050#M100981</link>
    <description>&lt;P&gt;I want to append latest/current week's data to a file wherein we have 6 month's data(excluding the current week) ,&lt;/P&gt;
&lt;P&gt;to do that I am using a peek function to look for the max date in the 6months data,&lt;/P&gt;
&lt;P&gt;and then wants to compare it with the latest week's max date , if the date&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;matchs&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that means we have&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;concatenated&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the data if it&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;doesn't&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;match then&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;we have to concatenate the latest week's file to 6 Month's file.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For getting latest week's data we are using a REST Connector, 6 months data is stored as qvd&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;$(maxdate_latest) is the variable to peek into latest max date and&amp;nbsp;$(vmaxdate) is the variable for the 6months max date&lt;/P&gt;
&lt;P&gt;I'm using this script&lt;/P&gt;
&lt;P&gt;if '$(maxdate_latest)' &amp;lt;&amp;gt; '$(vmaxdate)' then&lt;BR /&gt;Reference_data:&lt;BR /&gt;load * from reference_qvd2;&lt;/P&gt;
&lt;P&gt;concatenate&lt;/P&gt;
&lt;P&gt;Streaming_data:&lt;/P&gt;
&lt;P&gt;load * from reference_qvd2;&lt;/P&gt;
&lt;P&gt;Else&lt;/P&gt;
&lt;P&gt;0;&lt;/P&gt;
&lt;P&gt;Endif;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 16:37:58 GMT</pubDate>
    <dc:creator>Kartik2</dc:creator>
    <dc:date>2024-09-23T16:37:58Z</dc:date>
    <item>
      <title>Conditional Appending</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Appending/m-p/2483050#M100981</link>
      <description>&lt;P&gt;I want to append latest/current week's data to a file wherein we have 6 month's data(excluding the current week) ,&lt;/P&gt;
&lt;P&gt;to do that I am using a peek function to look for the max date in the 6months data,&lt;/P&gt;
&lt;P&gt;and then wants to compare it with the latest week's max date , if the date&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;matchs&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that means we have&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;concatenated&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the data if it&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;doesn't&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;match then&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;we have to concatenate the latest week's file to 6 Month's file.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For getting latest week's data we are using a REST Connector, 6 months data is stored as qvd&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;$(maxdate_latest) is the variable to peek into latest max date and&amp;nbsp;$(vmaxdate) is the variable for the 6months max date&lt;/P&gt;
&lt;P&gt;I'm using this script&lt;/P&gt;
&lt;P&gt;if '$(maxdate_latest)' &amp;lt;&amp;gt; '$(vmaxdate)' then&lt;BR /&gt;Reference_data:&lt;BR /&gt;load * from reference_qvd2;&lt;/P&gt;
&lt;P&gt;concatenate&lt;/P&gt;
&lt;P&gt;Streaming_data:&lt;/P&gt;
&lt;P&gt;load * from reference_qvd2;&lt;/P&gt;
&lt;P&gt;Else&lt;/P&gt;
&lt;P&gt;0;&lt;/P&gt;
&lt;P&gt;Endif;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 16:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Appending/m-p/2483050#M100981</guid>
      <dc:creator>Kartik2</dc:creator>
      <dc:date>2024-09-23T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Appending</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Appending/m-p/2483128#M100997</link>
      <description>&lt;P&gt;so what does your script lead to?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 06:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Appending/m-p/2483128#M100997</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2024-09-24T06:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Appending</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Appending/m-p/2483243#M101012</link>
      <description>&lt;P&gt;Its not working properly.&lt;/P&gt;
&lt;P&gt;is there anything wrong with the code?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 13:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Appending/m-p/2483243#M101012</guid>
      <dc:creator>Kartik2</dc:creator>
      <dc:date>2024-09-24T13:22:36Z</dc:date>
    </item>
  </channel>
</rss>

