<?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 Data Load transformation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Load-transformation/m-p/610244#M1101979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set that includes goals and actuals for multiple campaigns.&amp;nbsp; The way the data is listed is all in one row based on the Employee ID#.&amp;nbsp; The data is listed in columns labeled as: STR Q1 Goal, STR Q2 Goal, STR Q1 Actual, STR Q2 Actual...&amp;nbsp; I need to identify each column as referencing the Campaign (STR, LTR, Catering, etc), Quarter (Q1, Q2, Q3, Q4) and Component (Goal, Weight, Actual) in order to make my dashboard be functional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&amp;nbsp; This is only my 2nd time working with a load script and the first time I didn't need to transform much data other than the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jackie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 15:16:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-07T15:16:24Z</dc:date>
    <item>
      <title>Data Load transformation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load-transformation/m-p/610244#M1101979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set that includes goals and actuals for multiple campaigns.&amp;nbsp; The way the data is listed is all in one row based on the Employee ID#.&amp;nbsp; The data is listed in columns labeled as: STR Q1 Goal, STR Q2 Goal, STR Q1 Actual, STR Q2 Actual...&amp;nbsp; I need to identify each column as referencing the Campaign (STR, LTR, Catering, etc), Quarter (Q1, Q2, Q3, Q4) and Component (Goal, Weight, Actual) in order to make my dashboard be functional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&amp;nbsp; This is only my 2nd time working with a load script and the first time I didn't need to transform much data other than the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jackie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load-transformation/m-p/610244#M1101979</guid>
      <dc:creator />
      <dc:date>2014-04-07T15:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load transformation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Load-transformation/m-p/610245#M1101980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, let me get this straight...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your data looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/56737_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you want it to look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/56744_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then load script like this should do the trick:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;CrossTable (Type,Value)&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;Employee ID#,STR Q1 Goal,STR Q2 Goal,STR Q1 Actual,STR Q2 Actual&lt;/P&gt;
&lt;P&gt;1,20,20,30,30&lt;/P&gt;
&lt;P&gt;2,50,50,40,40&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DataFinal:&lt;/P&gt;
&lt;P&gt;LOAD [Employee ID#],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Type,' ',1) as Campaign,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Type,' ',2) as Quarter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Type,' ',3) as Component,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;
&lt;P&gt;RESIDENT Data;&lt;/P&gt;
&lt;P&gt;DROP TABLE Data;&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;An example file is also attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Load-transformation/m-p/610245#M1101980</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-04-07T15:35:06Z</dc:date>
    </item>
  </channel>
</rss>

