<?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: Creating a Model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-Model/m-p/1537080#M745796</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to load your table this ways&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD Skey,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PSkey,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Proft&lt;BR /&gt;FROM&lt;BR /&gt;[E:\C\Source\Test.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;Inner Join(Data)&lt;BR /&gt;New:&lt;BR /&gt;LOAD Skey as PSkey,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Proft as PProft&lt;BR /&gt;Resident Data&lt;BR /&gt;Where Len(PSkey) = 0;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.JPG" style="width: 224px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4800i8F75729C64308F25/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2019 11:00:38 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2019-01-30T11:00:38Z</dc:date>
    <item>
      <title>Creating a Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Model/m-p/1536956#M745795</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have data as shown below&lt;/P&gt;&lt;P&gt;.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BT.PNG" style="width: 275px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4773i4A64EB179B6CB014/image-size/large?v=v2&amp;amp;px=999" role="button" title="BT.PNG" alt="BT.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and i need to show like below,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BT1.PNG" style="width: 256px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4776i14C475CC363329C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="BT1.PNG" alt="BT1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest a way to create separate data set in the model or suggest a way to represent as required. PFA example data&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ganesh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Model/m-p/1536956#M745795</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Model/m-p/1537080#M745796</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to load your table this ways&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD Skey,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PSkey,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Proft&lt;BR /&gt;FROM&lt;BR /&gt;[E:\C\Source\Test.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;Inner Join(Data)&lt;BR /&gt;New:&lt;BR /&gt;LOAD Skey as PSkey,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Proft as PProft&lt;BR /&gt;Resident Data&lt;BR /&gt;Where Len(PSkey) = 0;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.JPG" style="width: 224px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4800i8F75729C64308F25/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 11:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Model/m-p/1537080#M745796</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2019-01-30T11:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Model/m-p/1537119#M745797</link>
      <description>&lt;PRE&gt;Initial:
Load * Inline [
Skey, PSkey, Proft
222,111,1000
555,444,300
111,,600
777,666,300
444,,200
999,888,1000
666,,500
888,,500
333,,800
];

Final:
NoConcatenate Load 
	Skey, 
    PSkey, 
    Proft as Profit
Resident Initial where len(PSkey)&amp;gt;0; 

left join(Final)
Load 
	Skey as PSkey,
    Proft as PProfit
Resident Initial
where len(PSkey)=0;

vKeys_tmp:
Load chr(39)&amp;amp;Concat(PSkey,chr(39)&amp;amp;','&amp;amp;chr(39))&amp;amp;chr(39) as vPSkey Resident Initial
where len(PSkey)&amp;gt;0;
Let vPSkeys = peek('vPSkey',0,'vKeys_tmp');

Concatenate(Final)
Load
	Skey,
    null() as PSkey,
    Proft as Profit,
    null() as PProfit
Resident Initial
where len(PSkey)=0 and not match(Skey,$(vPSkeys));

drop table vKeys_tmp;
drop table Initial;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jan 2019 12:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Model/m-p/1537119#M745797</guid>
      <dc:creator>pasi_lehtinen</dc:creator>
      <dc:date>2019-01-30T12:04:48Z</dc:date>
    </item>
  </channel>
</rss>

