<?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: Help - Set expression in straight table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88161#M5876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Veh,Cost&lt;/P&gt;&lt;P&gt;A,20000&lt;/P&gt;&lt;P&gt;B,25000&lt;/P&gt;&lt;P&gt;C,26000&lt;/P&gt;&lt;P&gt;D,27000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let rowcount=NoOfrows('Table1');&lt;/P&gt;&lt;P&gt;Trace (1) Table 1 size: $(rowcount);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MappingCost:&lt;/P&gt;&lt;P&gt;Mapping Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Veh,Cost&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let rowcount=NoOfrows('Table1');&lt;/P&gt;&lt;P&gt;Trace (2) Table 1 size: $(rowcount);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Table1)&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Veh,ComparetoVeh&lt;/P&gt;&lt;P&gt;A,A&lt;/P&gt;&lt;P&gt;B,A&lt;/P&gt;&lt;P&gt;C,B&lt;/P&gt;&lt;P&gt;D,C&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let rowcount=NoOfrows('Table1');&lt;/P&gt;&lt;P&gt;Trace (3) Table 1 size: $(rowcount);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Table1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Veh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MappingCost', ComparetoVeh, 0) as [cost of ComparetoVeh],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost - ApplyMap('MappingCost', ComparetoVeh, 0) as Delta&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let rowcount=NoOfrows('Table1');&lt;/P&gt;&lt;P&gt;Trace (4) Table 1 size: $(rowcount);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Jul 2018 02:30:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-15T02:30:15Z</dc:date>
    <item>
      <title>Help - Set expression in straight table</title>
      <link>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88159#M5874</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;I have a requirement to create the result as below from table 1 and table 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 128px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" colspan="2" height="20" width="128"&gt;Table 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Veh &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Cost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;25000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;26000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;P&gt;27000&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 166px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="2" height="20" width="166"&gt;Table 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Veh&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;ComparetoVeh&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 418px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="5" height="20" width="418"&gt;Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Veh&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;ComparetoVeh&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Cost of Veh&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;cost of ComparetoVeh&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Delta&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;20000&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;20000&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;25000&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;20000&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;26000&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;25000&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;27000&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;26000&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2018 15:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88159#M5874</guid>
      <dc:creator>g_santhosh86</dc:creator>
      <dc:date>2018-07-14T15:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Set expression in straight table</title>
      <link>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88160#M5875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried:&lt;/P&gt;&lt;P&gt;Step 1 - load table 1&lt;/P&gt;&lt;P&gt;Step 2 - make a mapping load with resident table 1 (Veh, Cost)&lt;/P&gt;&lt;P&gt;Step 3 - left join table 2 to table 1, (comparetoVeh), ApplyMap(step2), Cost-ApplyMap(step2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2018 23:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88160#M5875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-14T23:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Set expression in straight table</title>
      <link>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88161#M5876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Veh,Cost&lt;/P&gt;&lt;P&gt;A,20000&lt;/P&gt;&lt;P&gt;B,25000&lt;/P&gt;&lt;P&gt;C,26000&lt;/P&gt;&lt;P&gt;D,27000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let rowcount=NoOfrows('Table1');&lt;/P&gt;&lt;P&gt;Trace (1) Table 1 size: $(rowcount);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MappingCost:&lt;/P&gt;&lt;P&gt;Mapping Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Veh,Cost&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let rowcount=NoOfrows('Table1');&lt;/P&gt;&lt;P&gt;Trace (2) Table 1 size: $(rowcount);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Table1)&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Veh,ComparetoVeh&lt;/P&gt;&lt;P&gt;A,A&lt;/P&gt;&lt;P&gt;B,A&lt;/P&gt;&lt;P&gt;C,B&lt;/P&gt;&lt;P&gt;D,C&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let rowcount=NoOfrows('Table1');&lt;/P&gt;&lt;P&gt;Trace (3) Table 1 size: $(rowcount);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Table1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Veh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MappingCost', ComparetoVeh, 0) as [cost of ComparetoVeh],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost - ApplyMap('MappingCost', ComparetoVeh, 0) as Delta&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let rowcount=NoOfrows('Table1');&lt;/P&gt;&lt;P&gt;Trace (4) Table 1 size: $(rowcount);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2018 02:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88161#M5876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-15T02:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Set expression in straight table</title>
      <link>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88162#M5877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could achieve this by unpivoting the second table by using crosstable prefix on the load statement - then it is simple to use set expressions to do the calculations in a (straight) table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-07-15 11_01_04-Compare Vehicles _ Data load editor - Qlik Sense.png" class="jive-image image-1" height="345" src="/legacyfs/online/207888_2018-07-15 11_01_04-Compare Vehicles _ Data load editor - Qlik Sense.png" style="height: 345.086px; width: 305px;" width="305" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-07-15 11_01_18-Microsoft Store.png" class="jive-image image-2" src="/legacyfs/online/207889_2018-07-15 11_01_18-Microsoft Store.png" style="height: 227px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2018 09:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88162#M5877</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-15T09:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Set expression in straight table</title>
      <link>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88163#M5878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2018 21:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88163#M5878</guid>
      <dc:creator>g_santhosh86</dc:creator>
      <dc:date>2018-07-15T21:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Set expression in straight table</title>
      <link>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88164#M5879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark the approritate answer as correct to close this thread &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 22:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-Set-expression-in-straight-table/m-p/88164#M5879</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-16T22:55:50Z</dc:date>
    </item>
  </channel>
</rss>

