<?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: Scripting issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381307#M421012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No substitute function, create a mapping table for each column and use them all in a single join operation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 18:36:11 GMT</pubDate>
    <dc:creator>effinty2112</dc:creator>
    <dc:date>2017-08-24T18:36:11Z</dc:date>
    <item>
      <title>Scripting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381302#M421007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;please help!&lt;/P&gt;&lt;P&gt;I have two files, in which I have both "Codes".&lt;/P&gt;&lt;P&gt;The table 1 includes data with "Codes", "Name" and "amount"&lt;/P&gt;&lt;P&gt;The table 2 includes data with "Codes" and "percentage".&lt;/P&gt;&lt;P&gt;Requried formula: amout x percentage.&lt;/P&gt;&lt;P&gt;The issue is that both table do not match 100%. In case when the table 2 has not data on Codes, the formula should calculate percentage as 40%.&lt;/P&gt;&lt;P&gt;Please assist, which script should be written.&lt;/P&gt;&lt;P&gt;I tried the formula If(Percentage = 0, sum(amount*40%), sum(amount*percentage)). But it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ruslan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381302#M421007</guid>
      <dc:creator>rassanbekov</dc:creator>
      <dc:date>2017-08-24T15:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381303#M421008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruslan,&lt;/P&gt;&lt;P&gt;try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MappingPercentage:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Code,&lt;/P&gt;&lt;P&gt;Percentage&lt;/P&gt;&lt;P&gt;From [table 2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Code,&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;Amount*ApplyMap('&lt;SPAN style="font-size: 13.3333px;"&gt;MappingPercentage',&lt;SPAN style="font-size: 13.3333px;"&gt;Code,40&lt;/SPAN&gt;&lt;/SPAN&gt;)/100 as PCAmount&lt;/P&gt;&lt;P&gt;From Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table &lt;SPAN style="font-size: 13.3333px;"&gt;MappingPercentage is a mapping table that will disappear after the load script has executed, no need to drop it. The applymap function will look up the Percentage value corresponding to the code in the mapping table. If there is no Percentage value corresponding to the code then the default value of 40 will be applied.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 16:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381303#M421008</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-24T16:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381304#M421009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but what if I have more than two columns to upload? what is the substitute function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381304#M421009</guid>
      <dc:creator>rassanbekov</dc:creator>
      <dc:date>2017-08-24T17:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381305#M421010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd say you could continue with loading your table 2. The mapping will just help you calculate the a new field and run a calculation.&amp;nbsp; If you need to map another set of data to use in a second calculation then you simply create another mapping with similar syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 18:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381305#M421010</guid>
      <dc:creator>qvuser2012</dc:creator>
      <dc:date>2017-08-24T18:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381306#M421011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might've to create two mapping loads.&lt;/P&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;P&gt;Join the tables with a distinct primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Code,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Name,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Amount&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From Table1;&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;Join (Table1)&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;Load Code,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Column1, &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Column2 &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From Table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 18:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381306#M421011</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2017-08-24T18:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381307#M421012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No substitute function, create a mapping table for each column and use them all in a single join operation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 18:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-issue/m-p/1381307#M421012</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-24T18:36:11Z</dc:date>
    </item>
  </channel>
</rss>

