<?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: Concatenate // Get Values from Source Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenate-Get-Values-from-Source-Table/m-p/1236795#M393281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The QVD loads as data table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149232_Screenshot_1.jpg" style="height: 154px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2017 10:14:52 GMT</pubDate>
    <dc:creator>MindaugasBacius</dc:creator>
    <dc:date>2017-01-12T10:14:52Z</dc:date>
    <item>
      <title>Concatenate // Get Values from Source Table</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-Get-Values-from-Source-Table/m-p/1236794#M393280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;i am trying to add rows to an existing qvd with concatenate. I want to check if there are allready rows with the same KPI, if yes i want the CommentNew of the most up to date row to be the CommentOld of the row i try to concatenate.&lt;/P&gt;&lt;P&gt;I only want to add rows to the qvd if the Value Old and Value New are different.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;KPI&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Value Old&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Value New&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;CommentNew&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;CommentOld&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 7&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Bar&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;BLA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;--&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17.01.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Bar&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Hi&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;BLA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;In Script it would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;KPI,&lt;/P&gt;&lt;P&gt;Value Old,&lt;/P&gt;&lt;P&gt;Value New,&lt;/P&gt;&lt;P&gt;CommentNew,&lt;/P&gt;&lt;P&gt;CommentOld,&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;from qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate (TMP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;KPI,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Value Old,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Value New,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;CommentNew,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//Pseudo Code&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF(KPI of the CSV = KPI of the Qvd, get me the latest CommentNew from Qvd,Null()) as CommentOld&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;from csv&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;where ValueOld &amp;lt;&amp;gt; ValueNew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope its understandable.&lt;/P&gt;&lt;P&gt;My problem is that i cant access the column of the QVD Load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way, how i can solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr &lt;/P&gt;&lt;P&gt;Johann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 10:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-Get-Values-from-Source-Table/m-p/1236794#M393280</guid>
      <dc:creator>johann_bauer</dc:creator>
      <dc:date>2017-01-12T10:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate // Get Values from Source Table</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-Get-Values-from-Source-Table/m-p/1236795#M393281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The QVD loads as data table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149232_Screenshot_1.jpg" style="height: 154px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 10:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-Get-Values-from-Source-Table/m-p/1236795#M393281</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2017-01-12T10:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate // Get Values from Source Table</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-Get-Values-from-Source-Table/m-p/1236796#M393282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that the Qvd Files get loaded as a Table,&lt;/P&gt;&lt;P&gt;but i cant acces the column of the qvd table from another load of a different source:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Corr: //Load of the Correction QVD&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Key_Corr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DatumKPI, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPINameQVD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Natco, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPIValueOld, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPIValueNew, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommentSetOld, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommentSetNew, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommentDataNew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommentDataOld, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TimestampCorr&lt;/P&gt;&lt;P&gt;FROM $(Correction)Corrections.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Corr)&amp;nbsp; // Attaching the rows where the values are Different to the Correction.qvd&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;//RowNo() as ID,&lt;/P&gt;&lt;P&gt;Input_ID as Key_Corr,&lt;/P&gt;&lt;P&gt;DatumKPI,&lt;/P&gt;&lt;P&gt;Natco,&lt;/P&gt;&lt;P&gt;KPINameDaily as KPINameQVD,&lt;/P&gt;&lt;P&gt;KPIValue as KPIValueNew,&lt;/P&gt;&lt;P&gt;date#(FileTime ('$(vDataFile)'),'DD.MM.YYYY') as TimestampCorr,&lt;/P&gt;&lt;P&gt;KPIValueOld,&lt;/P&gt;&lt;P&gt;CommentDataNew,&lt;/P&gt;&lt;P&gt;Resident Daily&lt;/P&gt;&lt;P&gt;where ((KPIValue&amp;lt;&amp;gt;KPIValueOld) ) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to check on concatetante if there is allready a row with the same Input_ID, and if yes i want to add the CommentDataNew from the qvd to the row i want to concatenate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 10:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-Get-Values-from-Source-Table/m-p/1236796#M393282</guid>
      <dc:creator>johann_bauer</dc:creator>
      <dc:date>2017-01-12T10:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate // Get Values from Source Table</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-Get-Values-from-Source-Table/m-p/1236797#M393283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I think something like this should work. Resorting to a JOIN is probably the easiest way of getting the newest date of a particular KPI when you need to match that&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;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14842197340741551" jivemacro_uid="_14842197340741551"&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Tmp]:&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPI,&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Value Old],&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Value New],&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommentNew,&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommentOld&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; History.qvd (qvd);&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;[NewestCommentsPerKPI]:&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPI,&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Max(Date)) AS OldDate,&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstString(CommentNew) AS CommentNewHistory&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Tmp]&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPI;&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;RIGHT JOIN (NewestCommentsPerKPI)&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CONCATENATE (Tmp) LOAD&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPI,&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Value Old],&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Value New],&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommentNew,&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( Not(IsNull(CommentNewHistory)) , CommentNewHistory , '' ) AS CommentOld&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Last.&lt;/SPAN&gt;csv] (txt)&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValueOld &amp;lt;&amp;gt; ValueNew;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 11:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-Get-Values-from-Source-Table/m-p/1236797#M393283</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-12T11:15:42Z</dc:date>
    </item>
  </channel>
</rss>

