<?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: Multiple ID Column to one ID Row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-ID-Column-to-one-ID-Row/m-p/496576#M693099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, but this is not for the data model. I just need to to automate some outputs for third party aplications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jul 2013 11:45:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-21T11:45:38Z</dc:date>
    <item>
      <title>Multiple ID Column to one ID Row</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-ID-Column-to-one-ID-Row/m-p/496573#M693096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to transform table nr1 into table nr2 throught scripting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example is with 3 columns but they should be as many as the maximum cases for one ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table nr1&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="128"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59; background-color: #9bbb59;" width="64"&gt;ID&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59; background-color: #9bbb59;" width="64"&gt;Q1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;1&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;1&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;2&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;Blue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;3&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;Blue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;3&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;4&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;4&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;5&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;5&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: #9bbb59; border-bottom-width: 0.5pt; border-bottom-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;5&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59; border-bottom-width: 0.5pt; border-bottom-color: #9bbb59;"&gt;Blue&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table nr2&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="256"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59; background-color: #9bbb59;" width="64"&gt;ID&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none; border-top-color: #9bbb59; background-color: #9bbb59;" width="64"&gt;Q1.1&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none; border-top-color: #9bbb59; background-color: #9bbb59;" width="64"&gt;Q1.2&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59; background-color: #9bbb59;" width="64"&gt;Q1.3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;1&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none; border-top-color: #9bbb59;"&gt;Red&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none; border-top-color: #9bbb59;"&gt;Green&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;2&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none; border-top-color: #9bbb59;"&gt;Blue&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none; border-top-color: #9bbb59;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;3&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none; border-top-color: #9bbb59;"&gt;Blue&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none; border-top-color: #9bbb59;"&gt;Green&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;4&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none; border-top-color: #9bbb59;"&gt;Green&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none; border-top-color: #9bbb59;"&gt;Red&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: #9bbb59; border-bottom-width: 0.5pt; border-bottom-color: #9bbb59; border-left-width: 0.5pt; border-left-color: #9bbb59;"&gt;5&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none; border-top-color: #9bbb59; border-bottom-width: 0.5pt; border-bottom-color: #9bbb59;"&gt;Red&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none; border-top-color: #9bbb59; border-bottom-width: 0.5pt; border-bottom-color: #9bbb59;"&gt;Green&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: #9bbb59; border-right-width: 0.5pt; border-right-color: #9bbb59; border-bottom-width: 0.5pt; border-bottom-color: #9bbb59;"&gt;Blue&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Nuno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 16:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-ID-Column-to-one-ID-Row/m-p/496573#M693096</guid>
      <dc:creator />
      <dc:date>2013-07-18T16:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ID Column to one ID Row</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-ID-Column-to-one-ID-Row/m-p/496574#M693097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a bad idea because it messes up your data model. You should keep the data as it is and use a pivot table chart object to show it in the format that table nr2 has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if you insist....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input:&lt;/P&gt;&lt;P&gt;load ID, Q1,if(previous(ID)=ID,peek('Ctr')+1,1) as Ctr INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Q1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Red&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Green&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Blue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Blue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Green&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Green&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Red&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, Red&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, Green&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, Blue&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;load 1 as ID AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to FieldValueCount('Ctr')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; join (Result)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load ID, Q1 as 'Q1.$(i)'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where Ctr = $(i);&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Input;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 16:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-ID-Column-to-one-ID-Row/m-p/496574#M693097</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-18T16:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ID Column to one ID Row</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-ID-Column-to-one-ID-Row/m-p/496575#M693098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Nuno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you try generic loads?&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;P&gt;nr2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GENERIC LOAD ID,'Q1.'&amp;amp;ID ,Q1&lt;/P&gt;&lt;P&gt;RESIDENT nr1;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if works..&lt;/P&gt;&lt;P&gt;cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 20:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-ID-Column-to-one-ID-Row/m-p/496575#M693098</guid>
      <dc:creator />
      <dc:date>2013-07-18T20:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ID Column to one ID Row</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-ID-Column-to-one-ID-Row/m-p/496576#M693099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, but this is not for the data model. I just need to to automate some outputs for third party aplications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2013 11:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-ID-Column-to-one-ID-Row/m-p/496576#M693099</guid>
      <dc:creator />
      <dc:date>2013-07-21T11:45:38Z</dc:date>
    </item>
  </channel>
</rss>

