<?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: Load header data as line item with each transaction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947923#M968548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general it would be possible to read and transform such data-structures with qlikview because the defintion in which row is the header, how many rows with which condition should be included and checking previous records - per peek() - and creating new columns with them is quite flexible especially in a cascade of load-statements which might be in a loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But before you could try if you get what you want with the extended options from table-wizard. But unfortunately is the documentation here very small but in the following book is an explanation available: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QlikView 11 for Developers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Barry Harmsen und Miguel Garcia&lt;/P&gt;&lt;P&gt;ISBN-13: 978-1849686068&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one of the other &lt;A href="https://community.qlik.com/docs/DOC-8898"&gt;Books and literature&lt;/A&gt; (from Stephen Redmond) is another example of using the wizard but I don't know excactly which one but especially the above mentioned is general recommended as reference book.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here - &lt;A href="https://community.qlik.com/message/373924"&gt;Re: Loading spreadsheets with different formatting&lt;/A&gt; - you find an example of loading not well structured data into qlikview without the wizard to get an idea what I mean. &lt;STRONG&gt;But at first you should follow the suggestion from &lt;/STRONG&gt;&lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;, then the table-wizard and as worst-case you could try to load and transform it without them (you will need a lot of efforts for this).&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, 28 Sep 2015 10:29:48 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-09-28T10:29:48Z</dc:date>
    <item>
      <title>Load header data as line item with each transaction</title>
      <link>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947919#M968544</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;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have data in the format as indicated in the 'Source' tab on the attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the data to load in the format indicated in the 'Required' tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have is how to deal with the Date/Trip Ref field. In my original data, the file contains many different Date/Trip Ref headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just need to add the Date/Trip Ref field as a line item alongside the related line item data below it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amy suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 08:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947919#M968544</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2015-09-28T08:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Load header data as line item with each transaction</title>
      <link>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947920#M968545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That kind of source is generated from some other source system. That source system is where you should retrieve your data from. Or ask the owners of that system to provide data in a format that can be used for automated processing. What you now have is meant for humans to read. Qlikview is not designed to process such reports.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 08:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947920#M968545</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-28T08:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Load header data as line item with each transaction</title>
      <link>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947921#M968546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your response Gysbert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately,the data is not available in any other format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I take your point about the nature of these reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, with respect (and I am a financial, not a technical person), whatever the truth about what Qlikview was designed for, &lt;SPAN style="font-size: 13.3333px;"&gt;I have previously loaded data in this format - with solutions provided by the community.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is one of the things I really like about Qlikview - it's flexibility in handling this type of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I would be able to overcome the current problem if there were only ONE trip per report. My problems arises from multiple trip instances on the one page.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I believe there is some combination of Peek, Previous and with a "flag delete" field that will work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 10:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947921#M968546</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2015-09-28T10:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Load header data as line item with each transaction</title>
      <link>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947922#M968547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt; I am a financial, not a technical person&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you saying that financial persons are not allowed to ask or not capable of asking the owner of a system for a different format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px; background-color: #f2f2f2;"&gt;I have previously loaded data in this format&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Uhm... then why are you asking again if you already have a working solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;And I would be able to overcome the current problem if there were only ONE trip per report. My problems arises from multiple trip instances on the one page.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are there any other requirements that your example excel document doesn't mention?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 10:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947922#M968547</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-28T10:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Load header data as line item with each transaction</title>
      <link>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947923#M968548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general it would be possible to read and transform such data-structures with qlikview because the defintion in which row is the header, how many rows with which condition should be included and checking previous records - per peek() - and creating new columns with them is quite flexible especially in a cascade of load-statements which might be in a loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But before you could try if you get what you want with the extended options from table-wizard. But unfortunately is the documentation here very small but in the following book is an explanation available: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QlikView 11 for Developers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Barry Harmsen und Miguel Garcia&lt;/P&gt;&lt;P&gt;ISBN-13: 978-1849686068&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one of the other &lt;A href="https://community.qlik.com/docs/DOC-8898"&gt;Books and literature&lt;/A&gt; (from Stephen Redmond) is another example of using the wizard but I don't know excactly which one but especially the above mentioned is general recommended as reference book.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here - &lt;A href="https://community.qlik.com/message/373924"&gt;Re: Loading spreadsheets with different formatting&lt;/A&gt; - you find an example of loading not well structured data into qlikview without the wizard to get an idea what I mean. &lt;STRONG&gt;But at first you should follow the suggestion from &lt;/STRONG&gt;&lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;, then the table-wizard and as worst-case you could try to load and transform it without them (you will need a lot of efforts for this).&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, 28 Sep 2015 10:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947923#M968548</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-28T10:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load header data as line item with each transaction</title>
      <link>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947924#M968549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long story (and I did ask) - but the data is just not available in any other format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I meant to say was that I had previously loaded data that was not in an easy format for data load. The data was, as you describe, designed for reading, not loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it was not in the exact format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data actually comes in csv. Otherwise, I think the excel file correctly describes the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 10:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947924#M968549</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2015-09-28T10:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load header data as line item with each transaction</title>
      <link>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947925#M968550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;think&lt;/STRONG&gt;&lt;/SPAN&gt; I have it sorted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I loaded all the transaction fields AND the Date/Trip Ref fields only using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where (len(@7)&amp;gt;0 and not @7 like 'Run Ref') or wildmatch (@1,'*Ref:*')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I loaded field 1 as Start - this field contains the actual Start data I need AND the Date/TripRef data also. (Note this latter data will uniquely contain a 'Date' string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then need to extract the Date/TripRef values from this field and create a new field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do a noconcatenate load into a temporary table, creating a flagdelete field FOR THOSE RECORDS WITH Date/TripRef DATA. I use the presence of the string 'Date' to generate the flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(left(Start,4)='Date',1) as FlagDelete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also create a new field for the Date/TripRef data, again using the presence of the 'Date' string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(left(Previous(Start),4)='Date',Previous(Start) ,Peek(Date_TripRef)) as Date_TripRef&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I drop my original table, then do another noconcatenate load, this time deleting the flagdelete field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to finish:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;TempTable2&lt;/P&gt;&lt;P&gt;Where FlagDelete &amp;lt;&amp;gt; 1 ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field FlagDelete;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table TempTable2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 19:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-header-data-as-line-item-with-each-transaction/m-p/947925#M968550</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2015-09-28T19:55:21Z</dc:date>
    </item>
  </channel>
</rss>

