<?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: Simplifying Loads... in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Simplifying-Loads/m-p/99368#M6595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I think this should work&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15332239687708264 jive_text_macro" jivemacro_uid="_15332239687708264"&gt;
&lt;P&gt;for n=1 to 2&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Key,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if($(n)=1, 'N' ,'V') as Const&lt;/P&gt;
&lt;P&gt;resident Temp;&lt;/P&gt;
&lt;P&gt;next n;&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Not sure if it's that much cleaner or faster to be honest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2018 15:38:24 GMT</pubDate>
    <dc:creator>pabloviera</dc:creator>
    <dc:date>2018-08-02T15:38:24Z</dc:date>
    <item>
      <title>Simplifying Loads...</title>
      <link>https://community.qlik.com/t5/App-Development/Simplifying-Loads/m-p/99367#M6594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read a unique key from a resident temp table. I need to store it in a result table and I need to add to each key two different constants into the same field. This will obviously doubled the number of records in the result table.&lt;/P&gt;&lt;P&gt;Now I proceed like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'N' as Const&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Resident &lt;STRONG&gt;Temp&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'V' as Const&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Resident &lt;STRONG&gt;Temp&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is no racket science and I can live with that, but I'm convinced that the result can be achieved with one simple load.&lt;/P&gt;&lt;P&gt;Please advice...&lt;/P&gt;&lt;P&gt;TL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 11:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simplifying-Loads/m-p/99367#M6594</guid>
      <dc:creator>luiluigi</dc:creator>
      <dc:date>2018-08-02T11:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Simplifying Loads...</title>
      <link>https://community.qlik.com/t5/App-Development/Simplifying-Loads/m-p/99368#M6595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I think this should work&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15332239687708264 jive_text_macro" jivemacro_uid="_15332239687708264"&gt;
&lt;P&gt;for n=1 to 2&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Key,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if($(n)=1, 'N' ,'V') as Const&lt;/P&gt;
&lt;P&gt;resident Temp;&lt;/P&gt;
&lt;P&gt;next n;&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Not sure if it's that much cleaner or faster to be honest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 15:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simplifying-Loads/m-p/99368#M6595</guid>
      <dc:creator>pabloviera</dc:creator>
      <dc:date>2018-08-02T15:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Simplifying Loads...</title>
      <link>https://community.qlik.com/t5/App-Development/Simplifying-Loads/m-p/99369#M6596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pablo.&lt;/P&gt;&lt;P&gt;Thank you for your idea. Yes, it works and it gives correct output.&lt;/P&gt;&lt;P&gt;BUT...&lt;/P&gt;&lt;P&gt;Let's assume, that we have more then 2 constants to add to the key. And moreover, the number of constants can change dynamically...&lt;/P&gt;&lt;P&gt;Is there any other technique how to get desired outcome without using For-Next structure?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please advice...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 06:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simplifying-Loads/m-p/99369#M6596</guid>
      <dc:creator>luiluigi</dc:creator>
      <dc:date>2018-08-03T06:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Simplifying Loads...</title>
      <link>https://community.qlik.com/t5/App-Development/Simplifying-Loads/m-p/99370#M6597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we'd need to know how are the constants stored and the logic behind assigning them to each key before coming up with a technique to apply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take into account you can't have 2 different expressións for the same field in the same load, so If you want to code the LOAD only once,&amp;nbsp; it will have to be inside some sort of loop or use a concatenated field with concat(), concatenated ApplyMap(),&amp;nbsp; etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 11:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simplifying-Loads/m-p/99370#M6597</guid>
      <dc:creator>pabloviera</dc:creator>
      <dc:date>2018-08-08T11:46:59Z</dc:date>
    </item>
  </channel>
</rss>

