<?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: How to sum an &amp;quot;applymap&amp;quot;? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422329#M33779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your comments. I actually haven't made it work like i would've liked, but I've found a work-around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Aug 2017 07:09:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-08-25T07:09:16Z</dc:date>
    <item>
      <title>How to sum an "applymap"?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422325#M33775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a mapping in a table (A) whichs searches for values (1 or 0) in another table (B). The relationship between the two tables is a one-to-many.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to show in table A is the existence of a "1" in one of the related rows in table B. To do that I want to sum the results in table B and I though that would be able by using "sum" in combination with a mapping field in table A. So I wrote this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;sum(Applymap('$(vApplyMap1)',%ShippingOrder,'0'))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, on load the script returns an error: "invalid expression".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I remvove the sum function but keep the rest of the mapping field intact, the script does not return an error (but is doesn't return the result I want either, of course).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows why I get an error when I try to apply the sum function to a mapping field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 07:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422325#M33775</guid>
      <dc:creator />
      <dc:date>2017-08-18T07:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum an "applymap"?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422326#M33776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think may have to do the sum in the Mapping Load along with a Group By.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 07:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422326#M33776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-18T07:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum an "applymap"?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422327#M33777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your general idea is sound. However, there is probably some issue with the variable you're passing. This should just be the name of a mapping table, loading using "Mapping LOAD".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 07:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422327#M33777</guid>
      <dc:creator>tore_arneson</dc:creator>
      <dc:date>2017-08-18T07:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum an "applymap"?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422328#M33778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's odd if there is not a syntax error. But alternatively you can use "preceding load" to get desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;sum(Value) as Value&lt;/P&gt;&lt;P&gt;group by id;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;ApplyMap('MapTable',id) as Value;&lt;/P&gt;&lt;P&gt;sql select id from source&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 08:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422328#M33778</guid>
      <dc:creator>kaanerisen</dc:creator>
      <dc:date>2017-08-18T08:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum an "applymap"?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422329#M33779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your comments. I actually haven't made it work like i would've liked, but I've found a work-around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2017 07:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-sum-an-quot-applymap-quot/m-p/1422329#M33779</guid>
      <dc:creator />
      <dc:date>2017-08-25T07:09:16Z</dc:date>
    </item>
  </channel>
</rss>

