<?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 Split table rows into multiple rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Split-table-rows-into-multiple-rows/m-p/1672444#M593529</link>
    <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;I have the following problem which I have been unable to solve.&lt;/P&gt;&lt;P&gt;I have a source table with data that I need to split across rows&lt;/P&gt;&lt;P&gt;Below I have tried to show an example of each table. For the fields Subject, Cat, Reason, Description - the data in this field can change every time I extract it.&lt;/P&gt;&lt;P&gt;The second table is an example of a fixed table&lt;/P&gt;&lt;P&gt;The third is ideally what I would like to happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully you can solve it or point me in the right direciton&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikview.png" style="width: 413px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27980iAD0F5F8AFC57A946/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikview.png" alt="qlikview.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 09:35:51 GMT</pubDate>
    <dc:creator>stuartfrew</dc:creator>
    <dc:date>2020-02-05T09:35:51Z</dc:date>
    <item>
      <title>Split table rows into multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/Split-table-rows-into-multiple-rows/m-p/1672444#M593529</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;I have the following problem which I have been unable to solve.&lt;/P&gt;&lt;P&gt;I have a source table with data that I need to split across rows&lt;/P&gt;&lt;P&gt;Below I have tried to show an example of each table. For the fields Subject, Cat, Reason, Description - the data in this field can change every time I extract it.&lt;/P&gt;&lt;P&gt;The second table is an example of a fixed table&lt;/P&gt;&lt;P&gt;The third is ideally what I would like to happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully you can solve it or point me in the right direciton&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikview.png" style="width: 413px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27980iAD0F5F8AFC57A946/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikview.png" alt="qlikview.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 09:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-table-rows-into-multiple-rows/m-p/1672444#M593529</guid>
      <dc:creator>stuartfrew</dc:creator>
      <dc:date>2020-02-05T09:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Split table rows into multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/Split-table-rows-into-multiple-rows/m-p/1672532#M593530</link>
      <description>&lt;P&gt;can you explain in more detail? how do you get the third table from the two table ?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-table-rows-into-multiple-rows/m-p/1672532#M593530</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-02-05T13:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Split table rows into multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/Split-table-rows-into-multiple-rows/m-p/1672542#M593531</link>
      <description>&lt;P&gt;Should your second table look more like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 229px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27993i502D21CE44AA6FC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You seem to have used 0.95 for Week 4.... I might be wrong... but just wanted to clarify&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-table-rows-into-multiple-rows/m-p/1672542#M593531</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-05T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Split table rows into multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/Split-table-rows-into-multiple-rows/m-p/1672548#M593532</link>
      <description>&lt;P&gt;If the above is right, you can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD * INLINE [
    Subject, Cat, Reason, Description, Number, Week
    A, North, Broken, Machine 1, 3, 1
    B, North, Broken, Machine 1, 45, 2
    C, East, Fixed, Machine 10, 6, 3
    D, West, In Progress, Machine 55, 8, 4
    E, South, Fixed, Machine 334, 92, 5
];

Left Join (Table)
LOAD * INLINE [
    Week, Month, Apportion
    1, 1, 1
    2, 1, 1
    3, 1, 1
    4, 1, 1
    5, 1, 0.95
    5, 2, 0.05
];

FinalTable:
NoConcatenate
LOAD Subject,
	 Cat,
	 Reason,
	 Description,
	 Number * Apportion as Number,
	 Week,
	 Month,
	 Apportion
Resident Table;

DROP Table Table;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-table-rows-into-multiple-rows/m-p/1672548#M593532</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-05T13:46:03Z</dc:date>
    </item>
  </channel>
</rss>

