<?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: Data Model help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574971#M214084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the script for all the logics in design level.I want to do the same in script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have stucked some where how to map &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;product code,&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;segment&lt;/STRONG&gt;&lt;/STRONG&gt; &lt;/STRONG&gt; both are coming from different table of course the linkage is not directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 18:51:20 GMT</pubDate>
    <dc:creator>dhanu_today</dc:creator>
    <dc:date>2014-02-26T18:51:20Z</dc:date>
    <item>
      <title>Data Model help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574966#M214079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to build the below logic's in script level only as per the attached data model.Am unable to add the sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic 1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;e.g. if &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;product code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; contains 430,470 then we have to show “&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;N/A” &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;else &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;segment&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic 2:&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;LRM code&lt;/STRONG&gt; is equal to &lt;STRONG&gt;RM code &lt;/STRONG&gt; then consider&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;RM Segment(Consider Like LRM Segment)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;Asset code&lt;/STRONG&gt; is equal to &lt;STRONG&gt;RM code &lt;/STRONG&gt; then consider &lt;STRONG&gt;RM Segment(Consider Like Asset Segment)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;Segment &lt;/STRONG&gt; is equal to &lt;STRONG&gt;LRM Segment &lt;/STRONG&gt; then &lt;STRONG&gt;LRM Segment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;Segment &lt;/STRONG&gt; is equal to &lt;STRONG&gt;Asset Segment &lt;/STRONG&gt; then &lt;STRONG&gt;Asset Segment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LRM Segment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanu&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574966#M214079</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-02-26T18:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574967#M214080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Hint.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574967#M214080</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-02-26T18:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574968#M214081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you create INLINE DATA for sample &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574968#M214081</guid>
      <dc:creator />
      <dc:date>2014-02-26T18:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574969#M214082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom...I am looking for sample data model script how we can get this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574969#M214082</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-02-26T18:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574970#M214083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;product code = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;430,470&lt;/SPAN&gt; , 'NA' , &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;segment&lt;/STRONG&gt; &lt;/STRONG&gt;)&amp;nbsp; AS logic1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want code like above ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574970#M214083</guid>
      <dc:creator />
      <dc:date>2014-02-26T18:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574971#M214084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the script for all the logics in design level.I want to do the same in script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have stucked some where how to map &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;product code,&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;segment&lt;/STRONG&gt;&lt;/STRONG&gt; &lt;/STRONG&gt; both are coming from different table of course the linkage is not directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574971#M214084</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-02-26T18:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574972#M214085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can JOIN tables with load statements then do your calculations,&lt;/P&gt;&lt;P&gt;Or use APPLY MAP to introduce one or two more fields needed for your calculations into desired table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calculations you can clean up the data model and drop unnecessary/redundant fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following post to decide which option works for you:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/09/18/one-favorite-function-applymap" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/09/18/one-favorite-function-applymap"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/09/18/one-favorite-function-applymap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ersen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574972#M214085</guid>
      <dc:creator />
      <dc:date>2014-02-26T18:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574973#M214086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take Resident load of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load Custid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LRM Code&lt;/P&gt;&lt;P&gt;Resident of Master 2 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join (Temp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load Custid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Souring RM&lt;/P&gt;&lt;P&gt;Resident of Master 1 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(Temp1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Souring RM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RM Code&lt;/P&gt;&lt;P&gt;Resident of Master 4 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your Temp Table having both fields as you want .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it's help full !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 19:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574973#M214086</guid>
      <dc:creator />
      <dc:date>2014-02-26T19:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574974#M214087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forgot to drop tables TEMP 1 , 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 19:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-help/m-p/574974#M214087</guid>
      <dc:creator />
      <dc:date>2014-02-26T19:09:47Z</dc:date>
    </item>
  </channel>
</rss>

