<?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: Concatenating fields as a single Data Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259783#M397537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case I would rather try to load the data with "normal" table-loadings, for example per crosstable like in this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrossTable:&lt;/P&gt;&lt;P&gt;crosstable(Category, Value, 5)&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; rowno() as RowNo, *&lt;/P&gt;&lt;P&gt;FROM [..\..\..\..\QlikViewServer\ProgramData\QlikViewServer\Performance_2017-03.log]&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', no quotes);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Exe Type], [Exe Version], [Server Started], Timestamp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concat(Category &amp;amp; ' = ' &amp;amp; Value, chr(10), RowNo) as Detail &lt;/P&gt;&lt;P&gt;resident CrossTable group by [Exe Type], [Exe Version], [Server Started], Timestamp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table CrossTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which will create a concatenated Detail-field which contained the category and the value in a ini-like style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 16:32:07 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-03-09T16:32:07Z</dc:date>
    <item>
      <title>Concatenating fields as a single Data Field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259779#M397533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;h‌i,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;i have a need to concat multiple fields of multiple qvd files into 1 data field, used for searching.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;for example: QVD1 contains A, B, and C, and QVD2 contains D and E.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;the needed output is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;A:aaa | B:bbb | C:ccc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;D:ddd | E:eee&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I'm successfully looping the QVDs and storing them in a temp table 'tmp'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;the below script successfully concats the fields, but i'm not able to insert the fields name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;i am able to have: &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;aaabbbccc&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;dddeee&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[...looping multiple QVDs...]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;tmp:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Load&amp;nbsp; *&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;From '$(vQvdFile)' (qvd);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;let fields = '';&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FOR j = NoOfFields('tbl') to NoOfFields('tmp') - 1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; let fld = FieldName($(j), 'tmp');&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; let fields = '$(fields)' &amp;amp; '$(fld)' &amp;amp; if($(j)=NoOfFields('tmp') - 1,'','&amp;amp;');&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Next&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;trace '[$(fields)]';&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; data:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;load $(fields) as Data&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Resident tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table tmp;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea how i can insert the field name into the Data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/218828"&gt;elie.issa&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2016"&gt;nick2009&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/55815"&gt;ali_hijazi&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2286"&gt;rwunderlich&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/139622"&gt;maleksafa&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 10:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259779#M397533</guid>
      <dc:creator>hani_saghir</dc:creator>
      <dc:date>2017-03-09T10:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating fields as a single Data Field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259780#M397534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the aim behind your attempt? Qlik has a native feature to search values in different fields at the same time, for example within a searchbox or per advanced search in a listbox - I could imagine that this served your needs better than creating new tables/fields for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 13:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259780#M397534</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-03-09T13:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating fields as a single Data Field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259781#M397535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your reply is appreciated.&lt;/P&gt;&lt;P&gt;my business case is that i have 30 error log tables, all tables have the same 1st 15 fields that contain general info, and they differ in detail logging fields.&lt;/P&gt;&lt;P&gt;i don't wish to end up with a log table with 100+ fields, but prefer to have a table box showing the general fields, and Data log field which concatenates all details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it makes sense to you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259781#M397535</guid>
      <dc:creator>hani_saghir</dc:creator>
      <dc:date>2017-03-09T14:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating fields as a single Data Field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259782#M397536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look in the Document Log to see what is being substituted for the variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 15:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259782#M397536</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-03-09T15:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating fields as a single Data Field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259783#M397537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case I would rather try to load the data with "normal" table-loadings, for example per crosstable like in this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrossTable:&lt;/P&gt;&lt;P&gt;crosstable(Category, Value, 5)&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; rowno() as RowNo, *&lt;/P&gt;&lt;P&gt;FROM [..\..\..\..\QlikViewServer\ProgramData\QlikViewServer\Performance_2017-03.log]&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', no quotes);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Exe Type], [Exe Version], [Server Started], Timestamp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concat(Category &amp;amp; ' = ' &amp;amp; Value, chr(10), RowNo) as Detail &lt;/P&gt;&lt;P&gt;resident CrossTable group by [Exe Type], [Exe Version], [Server Started], Timestamp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table CrossTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which will create a concatenated Detail-field which contained the category and the value in a ini-like style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 16:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259783#M397537</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-03-09T16:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating fields as a single Data Field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259784#M397538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;worked like a charm. just had to adapt it to my case in which the log table is an oracle table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 20:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-fields-as-a-single-Data-Field/m-p/1259784#M397538</guid>
      <dc:creator>hani_saghir</dc:creator>
      <dc:date>2017-03-13T20:01:49Z</dc:date>
    </item>
  </channel>
</rss>

