<?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: Applymap with custom value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722754#M1050127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field names in the mapping table are irrelevant to the applymap function. The field name you need to use in the applymap function is a field from, in your case, the postgres.''public''.erpoorli table that contains ID values like those you load in the mapping table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 12:59:36 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-10-29T12:59:36Z</dc:date>
    <item>
      <title>Applymap with custom value</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722751#M1050124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to make the in "Order line"script function "Applymap" picked up [vnt.svoris] from "MAP001", because now write: Field vnt.svoris not found "public".erpoorli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//--------------------item------------------------------&lt;/P&gt;&lt;P&gt;[produktai]:&lt;/P&gt;&lt;P&gt;LOAD ID as [item.ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name as [produkto.pav],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code as [nv.kodas] &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM postgres."public".erpoitm&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//----------------------MAP001----------------------------&lt;/P&gt;&lt;P&gt;MAP01:&lt;/P&gt;&lt;P&gt;Mapping LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(len(TareWeight)&amp;gt;1, TareWeight, 1) as &lt;STRONG&gt;[vnt.svoris]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM postgres."public".erpoitm&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//----------------------------order line------------------------&lt;/P&gt;&lt;P&gt;[order.line]:&lt;/P&gt;&lt;P&gt;LOAD ID as [OLID],&lt;/P&gt;&lt;P&gt;&amp;nbsp; OrderID as [order.ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemID as [item.ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty * APPLYMAP('MAP01', &lt;STRONG&gt;[vnt.svoris]&lt;/STRONG&gt;) as [svoris],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LabelledQty as [at.kiekis]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM postgres."public".erpoorli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722751#M1050124</guid>
      <dc:creator />
      <dc:date>2014-10-29T12:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with custom value</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722752#M1050125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When using the applymap, you provide the first field in the map and get the second (&lt;STRONG&gt;[vnt.svoris] in this case&lt;/STRONG&gt;) as the result, so you need to use ID (or maybe OrderID not sure which from your data) instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order.line]:&lt;/P&gt;&lt;P&gt;LOAD ID as [OLID],&lt;/P&gt;&lt;P&gt;&amp;nbsp; OrderID as [order.ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemID as [item.ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty * APPLYMAP('MAP01', ID) as [svoris],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LabelledQty as [at.kiekis]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM postgres."public".erpoorli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722752#M1050125</guid>
      <dc:creator />
      <dc:date>2014-10-29T12:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with custom value</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722753#M1050126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[vnt.svoris]&amp;nbsp; &lt;/STRONG&gt;should be replaced by the name of one&amp;nbsp; field in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;postgres."public".erpoorli (ItemID ?)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722753#M1050126</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-29T12:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with custom value</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722754#M1050127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field names in the mapping table are irrelevant to the applymap function. The field name you need to use in the applymap function is a field from, in your case, the postgres.''public''.erpoorli table that contains ID values like those you load in the mapping table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722754#M1050127</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-29T12:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with custom value</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722755#M1050128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5785"&gt;http://community.qlik.com/docs/DOC-5785&lt;/A&gt; too for more info on applymap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 13:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722755#M1050128</guid>
      <dc:creator />
      <dc:date>2014-10-29T13:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with custom value</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722756#M1050129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found it works if &lt;STRONG&gt;TareWeigh&lt;/STRONG&gt; the value is equal to the number (10) then everything works if there is a number (1,5) and then writes that can not find the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//----------------------MAP001----------------------------&lt;/P&gt;&lt;P&gt;MAP01:&lt;/P&gt;&lt;P&gt;Mapping LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; TareWeight&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM postgres."public".erpoitm&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//----------------------------order line------------------------&lt;/P&gt;&lt;P&gt;[order.line]:&lt;/P&gt;&lt;P&gt;LOAD ID as [OLID],&lt;/P&gt;&lt;P&gt;&amp;nbsp; OrderID as [order.ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemID as [item.ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty as [kiekis.bl],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty * APPLYMAP('MAP01',if(len(&lt;STRONG&gt;TareWeight&lt;/STRONG&gt;)&amp;gt;1,&lt;STRONG&gt;TareWeight&lt;/STRONG&gt;,1)) as [vnt.svoris],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LabelledQty as [at.kiekis]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM postgres."public".erpoorli&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 16:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-custom-value/m-p/722756#M1050129</guid>
      <dc:creator />
      <dc:date>2014-10-29T16:44:49Z</dc:date>
    </item>
  </channel>
</rss>

