<?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: Dynamic data source structure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841365#M656620</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;Try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;RecordNum,&lt;/P&gt;&lt;P&gt;SubField(DataType, '=', 1) AS FieldType,&lt;/P&gt;&lt;P&gt;SubField(DataType, '=', 2) AS FieldValue;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;RecNo() AS RecordNum,&lt;/P&gt;&lt;P&gt;SubField(Data, ' ') AS DataType&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Data&lt;/P&gt;&lt;P&gt;date=2015-05-04 time=23:59:58 logid=0000000013 type=traffic subtype=forward level=notice vd=root srcip=192.168.1.215&lt;/P&gt;&lt;P&gt;date=2015-05-05 time=23:59:58 logid=0000000013 type=traffic subtype=forward level=notice srcip=192.168.1.216&lt;/P&gt;&lt;P&gt;date=2015-05-04 time=23:59:58 logid=0000000013 type=traffic level=notice vd=root srcip=192.168.1.215];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Generic &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;RecordNum,&lt;/P&gt;&lt;P&gt;FieldType,&lt;/P&gt;&lt;P&gt;FieldValue&lt;/P&gt;&lt;P&gt;RESIDENT Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2015 05:37:18 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-05-25T05:37:18Z</dc:date>
    <item>
      <title>Dynamic data source structure</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841360#M656615</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;&lt;/P&gt;&lt;P&gt;I am facing some difficulty to load my flat file into Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find below as the structure of the flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date=2015-05-04 time=23:59:58 logid=0000000013 type=traffic subtype=forward level=notice vd=root srcip=192.168.1.215&lt;/P&gt;&lt;P&gt;date=2015-05-05 time=23:59:58 logid=0000000013 type=traffic subtype=forward level=notice srcip=192.168.1.216&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;date=2015-05-04 time=23:59:58 logid=0000000013 type=traffic level=notice vd=root srcip=192.168.1.215&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;As you can see, the structure for each record could be different. The column name is left side of the equal sign and the data is on right side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;May i know how to handle such unstructured data source?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thai&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 02:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841360#M656615</guid>
      <dc:creator />
      <dc:date>2015-05-25T02:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data source structure</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841361#M656616</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;Try to set the delimited as &lt;STRONG&gt;space&lt;/STRONG&gt; so that it can identify the fields and use &lt;STRONG&gt;Cross Table&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 03:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841361#M656616</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2015-05-25T03:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data source structure</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841362#M656617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set the delimiter as space, but the problem is each transaction will have different numbers of column.&lt;/P&gt;&lt;P&gt;All the column name is inside the transaction itself. The file does not comes with header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Thai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 03:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841362#M656617</guid>
      <dc:creator />
      <dc:date>2015-05-25T03:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data source structure</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841363#M656618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;How come all the fields are not available in all the rows, is the way coming from data source.,?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 03:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841363#M656618</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2015-05-25T03:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data source structure</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841364#M656619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, this is coming directly from data source. Those column without data will not be populated into the flat file.&lt;/P&gt;&lt;P&gt;Therefore certain records will missing some columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 05:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841364#M656619</guid>
      <dc:creator />
      <dc:date>2015-05-25T05:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data source structure</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841365#M656620</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;Try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;RecordNum,&lt;/P&gt;&lt;P&gt;SubField(DataType, '=', 1) AS FieldType,&lt;/P&gt;&lt;P&gt;SubField(DataType, '=', 2) AS FieldValue;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;RecNo() AS RecordNum,&lt;/P&gt;&lt;P&gt;SubField(Data, ' ') AS DataType&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Data&lt;/P&gt;&lt;P&gt;date=2015-05-04 time=23:59:58 logid=0000000013 type=traffic subtype=forward level=notice vd=root srcip=192.168.1.215&lt;/P&gt;&lt;P&gt;date=2015-05-05 time=23:59:58 logid=0000000013 type=traffic subtype=forward level=notice srcip=192.168.1.216&lt;/P&gt;&lt;P&gt;date=2015-05-04 time=23:59:58 logid=0000000013 type=traffic level=notice vd=root srcip=192.168.1.215];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Generic &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;RecordNum,&lt;/P&gt;&lt;P&gt;FieldType,&lt;/P&gt;&lt;P&gt;FieldValue&lt;/P&gt;&lt;P&gt;RESIDENT Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 05:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841365#M656620</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-05-25T05:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data source structure</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841366#M656621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think to use subfield() is a practiable solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;Load subfield(RecordValue, '=', 1) as Categorie, subfield(RecordValue, '=', 2) as Value, rowno() as RowNo, RecNo;&lt;/P&gt;&lt;P&gt;LOAD subfield(Record, ' ') as RecordValue, RecNo;&lt;/P&gt;&lt;P&gt;LOAD @1:n as Record, recno() as RecNo&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;G&gt; // your example-record saved as txt-file&lt;/G&gt;&lt;/P&gt;&lt;P&gt;(fix, codepage is 1252);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 05:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-data-source-structure/m-p/841366#M656621</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-25T05:58:04Z</dc:date>
    </item>
  </channel>
</rss>

