<?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 Transaction with different products in one line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873909#M305249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am working on a table of transactions (sales). Every row referes to on product that has been bought. The person can buy many products. My goal is to have only one line for each person and add columns for the products that has been bought, knowing that a person can buy no more than 10 products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to make that table in Qlikview starting with an Excel file with a line per product bought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 09:29:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-21T09:29:51Z</dc:date>
    <item>
      <title>Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873909#M305249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am working on a table of transactions (sales). Every row referes to on product that has been bought. The person can buy many products. My goal is to have only one line for each person and add columns for the products that has been bought, knowing that a person can buy no more than 10 products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to make that table in Qlikview starting with an Excel file with a line per product bought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873909#M305249</guid>
      <dc:creator />
      <dc:date>2015-04-21T09:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873910#M305250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do row to column transpose... Post a sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 10:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873910#M305250</guid>
      <dc:creator />
      <dc:date>2015-04-21T10:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873911#M305251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/84214_Capture.PNG" style="height: 187px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 10:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873911#M305251</guid>
      <dc:creator />
      <dc:date>2015-04-21T10:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873912#M305252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an additional field in the script using the autonumber function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD [Transaction ID], Product FROM &lt;EM&gt;...source...&lt;/EM&gt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Transaction ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Product ' &amp;amp; autonumber(RecNo(), &lt;SPAN style="font-size: 13.3333330154419px;"&gt;[Transaction ID]&lt;/SPAN&gt;) as ProductNo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Temp&lt;/P&gt;&lt;P&gt;ORDER BY &lt;SPAN style="font-size: 13.3333330154419px;"&gt;[Transaction ID];&lt;/SPAN&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;Create a pivot table with Transaction ID and ProductNo as dimensions and only(Product) as expression. Drag the ProductNo dimension to the right above the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 10:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873912#M305252</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-21T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873913#M305253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a biginner in Qlikview, I didn't understand the part when I have to create a pivot table. I also didn't understand what is the meaning of this syntax.&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;'Product ' &amp;amp; autonumber(RecNo(), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;[Transaction ID]&lt;/SPAN&gt;) as ProductNo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 10:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873913#M305253</guid>
      <dc:creator />
      <dc:date>2015-04-21T10:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873914#M305254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could of course just try it out to see what it does, but the line &lt;STRONG&gt;'Product ' &amp;amp; autonumber(RecNo(), [Transaction ID]) as ProductNo &lt;/STRONG&gt;will create the values 'Product 1', 'Product 2', ... etc for each product value it encounters per Transaction ID value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A pivot table is a chart object that you create in the front end after loading the data into Qlikview. Chart objects are used to show data and results from calculations so users can see and interact with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 11:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873914#M305254</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-21T11:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873915#M305255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 11:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873915#M305255</guid>
      <dc:creator />
      <dc:date>2015-04-21T11:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873916#M305256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the expression you gave me but it only gave me a blank table with no columns&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 11:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873916#M305256</guid>
      <dc:creator />
      <dc:date>2015-04-21T11:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873917#M305257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 11:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873917#M305257</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-21T11:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873918#M305258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I do not see the attached example, can u please load it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 12:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873918#M305258</guid>
      <dc:creator />
      <dc:date>2015-04-21T12:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873919#M305259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I achieved the result. However, it has been impossible for me to use the obtained table as it is an object. Could the result be obtained only using the script? Otherwise how can I use the pivot table in another object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 11:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873919#M305259</guid>
      <dc:creator />
      <dc:date>2015-04-22T11:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction with different products in one line</title>
      <link>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873920#M305260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Temp1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Transaction ID, Product&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, F&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, E&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, A&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp2:&lt;/P&gt;&lt;P&gt;GENERIC&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Transaction ID],&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Product ' &amp;amp; autonumber(RecNo(), [Transaction ID]) as ProductNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product&lt;/P&gt;&lt;P&gt;RESIDENT Temp1&lt;/P&gt;&lt;P&gt;ORDER BY [Transaction ID],Product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set vListOfTables = ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; For vTableNo = 0 to NoOfTables()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vTableName = TableName($(vTableNo)) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Subfield(vTableName,'.',1)='Temp2' Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vListOfTables = vListOfTables &amp;amp; If(Len(vListOfTables)&amp;gt;0,',') &amp;amp; Chr(39) &amp;amp; vTableName &amp;amp; Chr(39) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Next vTableNo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Load FieldValue('Transaction ID', RecNo()) as [Transaction ID] AutoGenerate FieldValueCount('Transaction ID');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; For each vTableName in $(vListOfTables)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left Join (Result) Load * Resident [$(vTableName)];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Table [$(vTableName)];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Next vTableName&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 12:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transaction-with-different-products-in-one-line/m-p/873920#M305260</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-22T12:03:34Z</dc:date>
    </item>
  </channel>
</rss>

