<?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: Transpose based on data - Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Transpose-based-on-data-Script/m-p/1199400#M627267</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235068_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139503_QlikCommunity_Thread_235068_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14755334664071470" jivemacro_uid="_14755334664071470"&gt;
&lt;P&gt;LOAD RowNo() as RowNo, *&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="235068" data-objecttype="1" href="https://community.qlik.com/thread/235068"&gt;https://community.qlik.com/thread/235068&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=Sales;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2016 22:24:45 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2016-10-03T22:24:45Z</dc:date>
    <item>
      <title>Transpose based on data - Script</title>
      <link>https://community.qlik.com/t5/QlikView/Transpose-based-on-data-Script/m-p/1199399#M627266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if you could assist me in a potential transposing query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table as below:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Product&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sales&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Shoes&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jackets&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Shorts&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the aim is to transpose and repeat the data within the table to show the product multiple times (as below). This will require the data to be read and an rows created on a variable that will change frequently.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Product&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Shoes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Shoes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Shoes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jackets&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jackets&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Shorts&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to achieve this with a scenario similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to ... but so far i have been able to get the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rational for doing this is to later concatenate another field of information i receive outside of my control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions on how this can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 18:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transpose-based-on-data-Script/m-p/1199399#M627266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-03T18:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose based on data - Script</title>
      <link>https://community.qlik.com/t5/QlikView/Transpose-based-on-data-Script/m-p/1199400#M627267</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235068_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139503_QlikCommunity_Thread_235068_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14755334664071470" jivemacro_uid="_14755334664071470"&gt;
&lt;P&gt;LOAD RowNo() as RowNo, *&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="235068" data-objecttype="1" href="https://community.qlik.com/thread/235068"&gt;https://community.qlik.com/thread/235068&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=Sales;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 22:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transpose-based-on-data-Script/m-p/1199400#M627267</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-03T22:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose based on data - Script</title>
      <link>https://community.qlik.com/t5/QlikView/Transpose-based-on-data-Script/m-p/1199401#M627268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply. Works very well with the simplest addition to my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 08:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transpose-based-on-data-Script/m-p/1199401#M627268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-05T08:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose based on data - Script</title>
      <link>https://community.qlik.com/t5/QlikView/Transpose-based-on-data-Script/m-p/1199402#M627269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're welcome.&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 21:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transpose-based-on-data-Script/m-p/1199402#M627269</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-05T21:36:27Z</dc:date>
    </item>
  </channel>
</rss>

