<?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 Urgent Help! turn raw table into good table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Urgent-Help-turn-raw-table-into-good-table/m-p/228684#M80690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;it works. brilliant sollutions. thanks! i can work on it further.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2009 20:30:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-30T20:30:34Z</dc:date>
    <item>
      <title>Urgent Help! turn raw table into good table</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Help-turn-raw-table-into-good-table/m-p/228681#M80687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello. I am struggling to turn a raw data into result table. I use following script: &lt;BR /&gt;&lt;BR /&gt;load &lt;BR /&gt;FORM_ID, &lt;BR /&gt;if(QUESTION = 'Placement', ANSWER) as Placement, &lt;BR /&gt;if(QUESTION = 'PlacementDate', ANSWER) as PlacementDate, &lt;BR /&gt;if(QUESTION = 'Group', ANSWER) as Group, &lt;BR /&gt;if(QUESTION_ID = 125, ANSWER) as Product, &lt;BR /&gt;if(QUESTION_ID = 126, ANSWER) as Indication, &lt;BR /&gt;if(QUESTION_ID = 127, ANSWER) as School; &lt;BR /&gt;select * from Rawtable; //Rawtable is coming from SQL datawarehouse &lt;BR /&gt;&lt;BR /&gt;The result is not looking good. What I get is a new row is made when an answer is filled and one additional row with empty answers. I got: &lt;BR /&gt;&lt;BR /&gt;FORM_ID;Placement;PlacementDate;Group;Product;Indication;School &lt;BR /&gt;1111;Eindhoven;-;-;-;-;- &lt;BR /&gt;1111;-;22-10-2009;-;-;-;- &lt;BR /&gt;1111;-;-;Olifant;-;-;- &lt;BR /&gt;1111;-;-;-;-;-;- &lt;BR /&gt;1122;Utrecht;-;-;-;-;- &lt;BR /&gt;1122;-;10-10-2009;-;-;-;- &lt;BR /&gt;1122;-;-;Butterfly;;-;-;- &lt;BR /&gt;1122;-;-;-;P01;-;- &lt;BR /&gt;1122;-;-;-;-;-;- &lt;BR /&gt;1123;-;-;-;-;Yes; &lt;BR /&gt;1123;-;-;-;-;-;SchoolX &lt;BR /&gt;1123;-;-;-;-;-;- &lt;BR /&gt;&lt;BR /&gt;Anyone can help me pls..... thanks! &lt;BR /&gt;Cheers, &lt;BR /&gt;Upiek &lt;BR /&gt;&lt;BR /&gt;================================================ &lt;BR /&gt;&lt;BR /&gt;Rawtable: &lt;BR /&gt;ID;QUESTION_ID;QUESTION;ANSWER;FORM_ID &lt;BR /&gt;1;122;Placement;Eindhoven;1111 &lt;BR /&gt;2;123;PlacementDate;22-10-2009;1111 &lt;BR /&gt;3;124;Group;Olifant;1111 &lt;BR /&gt;4;122;Placement;Utrecht;1122 &lt;BR /&gt;5;123;PlacementDate;10-10-2009;1122 &lt;BR /&gt;6;124;Group;Butterfly;1122 &lt;BR /&gt;7;125;Product;P01;1122 &lt;BR /&gt;8;126;Indication;Yes;1123 &lt;BR /&gt;9;127;School;SchoolX;1123 &lt;BR /&gt;---------------------------------------------------------------------- &lt;BR /&gt;&lt;BR /&gt;Wanted result table: &lt;BR /&gt;FORM_ID;Placement;PlacementDate;Group;Product;Indication;School &lt;BR /&gt;1111;Eindhoven;22-10-2009;Olifant;-;-;- &lt;BR /&gt;1122;Utrecht;10-10-2009;Butterfly;P01;-;- &lt;BR /&gt;1123;-;-;-;-;Yes;SchoolX &lt;BR /&gt;====================================================&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 17:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Help-turn-raw-table-into-good-table/m-p/228681#M80687</guid>
      <dc:creator />
      <dc:date>2009-10-30T17:09:27Z</dc:date>
    </item>
    <item>
      <title>Urgent Help! turn raw table into good table</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Help-turn-raw-table-into-good-table/m-p/228682#M80688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;One idea since the data in the desired output table seems to be grouped by FORM_ID would be to left join the fields desired to it. E.g. &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;newTable:LOAD distinct FORM_IDresident RawTable;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;now you want to left join the fields you want to create one by one. &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;left join load FORM_ID, if(QUESTION = 'Placement', ANSWER) as Placement,resident RawTable;left join load FORM_ID, if(QUESTION = 'PlacementDate', ANSWER) as PlacementDate, resident RawTable;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Etcetera... I think that should do it... Haven't tried it. GOod luck! /Fredrik&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 18:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Help-turn-raw-table-into-good-table/m-p/228682#M80688</guid>
      <dc:creator />
      <dc:date>2009-10-30T18:54:40Z</dc:date>
    </item>
    <item>
      <title>Urgent Help! turn raw table into good table</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Help-turn-raw-table-into-good-table/m-p/228683#M80689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See enclosed. This would be the one way to do that. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 19:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Help-turn-raw-table-into-good-table/m-p/228683#M80689</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-10-30T19:06:57Z</dc:date>
    </item>
    <item>
      <title>Urgent Help! turn raw table into good table</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Help-turn-raw-table-into-good-table/m-p/228684#M80690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;it works. brilliant sollutions. thanks! i can work on it further.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 20:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Help-turn-raw-table-into-good-table/m-p/228684#M80690</guid>
      <dc:creator />
      <dc:date>2009-10-30T20:30:34Z</dc:date>
    </item>
  </channel>
</rss>

