<?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: changing structure of data based on Machines's Log Files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/changing-structure-of-data-based-on-Machines-s-Log-Files/m-p/557974#M686272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Julien,&lt;/P&gt;&lt;P&gt;I think I understand what you want to do. Please check out the attached file and see if it solves your issue.&lt;/P&gt;&lt;P&gt;There would be an inline table where same codes will have two different times in two rows. I used Group by and Concat to make it appear in the same row.&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 18:56:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-23T18:56:56Z</dc:date>
    <item>
      <title>changing structure of data based on Machines's Log Files</title>
      <link>https://community.qlik.com/t5/QlikView/changing-structure-of-data-based-on-Machines-s-Log-Files/m-p/557973#M686271</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;&lt;/P&gt;&lt;P&gt;Thank you in advance for reading this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got some txt log files of a huge factory with a lot of machines and all kind of errors. One row is one event, And events are listed with asc time. Here is a small extract :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3930| 88|3066|5411|UPD1_BF1122|xx &lt;/P&gt;&lt;P&gt;3930| 88|3067|5456|UPD1_BF1122|xx &lt;/P&gt;&lt;P&gt;3931| 88|3066|5419|UPD1_BF1122|xx &lt;/P&gt;&lt;P&gt;3931| 88|3067|5458|UPD1_BF1122|xx &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;931| 88|3341|PDC-WE2_BF1066|xx &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3931| 88|3341|PDC-WE_BF1066|xx &lt;/P&gt;&lt;P&gt;3932| 88|3067|5459|UPD1_BF1122|xx &lt;/P&gt;&lt;P&gt;3932| 88|3075|5459|UPD1_BF1122|xx &lt;/P&gt;&lt;P&gt;3932| 88|3076|5458|UPD1_BF1122|xx &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I successfully split it to make it clean in a table with these fields :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIMESTAMP | CODE | EQUIPMENT NAME &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my problem. It is one week i am stuck on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For one error, the log gives me two rows : one for the error start, and one for the error end :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H start&amp;nbsp;&amp;nbsp;&amp;nbsp; | start code&amp;nbsp;&amp;nbsp; | equipment&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;(&amp;nbsp; many many rows between these two rows)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;H end&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | end code&amp;nbsp;&amp;nbsp;&amp;nbsp; | equipment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i would like to make a new table with only one row per event by adding one time field :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H start | H end | error | equipment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some details :&lt;/P&gt;&lt;P&gt;- the end row can be very very far to the start row&lt;/P&gt;&lt;P&gt;- the end code is always ONE same value for all error and all equipment. " 3024"&lt;/P&gt;&lt;P&gt;- for the same equipment , some other rows / events can exist between the two start and end rows / event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea is to make a load, copy everything of the start row, and at the extra field, go search below on the table the value in the field TIMESTAMP of the &lt;STRONG&gt;closest row&lt;/STRONG&gt; where the field CODE is = 3024 (end code) and EQUIPMENT = same value than the current start row. With no success till now ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I am not too confused in my explanations. Thank you in advance. Please feel free to ask any more details.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards and Happy new year !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 18:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/changing-structure-of-data-based-on-Machines-s-Log-Files/m-p/557973#M686271</guid>
      <dc:creator />
      <dc:date>2014-01-23T18:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: changing structure of data based on Machines's Log Files</title>
      <link>https://community.qlik.com/t5/QlikView/changing-structure-of-data-based-on-Machines-s-Log-Files/m-p/557974#M686272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Julien,&lt;/P&gt;&lt;P&gt;I think I understand what you want to do. Please check out the attached file and see if it solves your issue.&lt;/P&gt;&lt;P&gt;There would be an inline table where same codes will have two different times in two rows. I used Group by and Concat to make it appear in the same row.&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 18:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/changing-structure-of-data-based-on-Machines-s-Log-Files/m-p/557974#M686272</guid>
      <dc:creator />
      <dc:date>2014-01-23T18:56:56Z</dc:date>
    </item>
  </channel>
</rss>

