<?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 Problem with applymap in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556368#M599478</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a number of mappings and apply map&amp;nbsp;function wrt one table and these mappings used in a number of applications.&lt;/P&gt;&lt;P&gt;To reduce loading time I have created a centralise mapping&amp;nbsp;file and used these calculated mappings in a different application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I found that the result is not matching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please suggest what could be the best way to avoid repetitive&amp;nbsp;mapping calculation time for the number of applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:10:44 GMT</pubDate>
    <dc:creator>kishorj1982</dc:creator>
    <dc:date>2024-11-16T04:10:44Z</dc:date>
    <item>
      <title>Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556368#M599478</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a number of mappings and apply map&amp;nbsp;function wrt one table and these mappings used in a number of applications.&lt;/P&gt;&lt;P&gt;To reduce loading time I have created a centralise mapping&amp;nbsp;file and used these calculated mappings in a different application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I found that the result is not matching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please suggest what could be the best way to avoid repetitive&amp;nbsp;mapping calculation time for the number of applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556368#M599478</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2024-11-16T04:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556382#M599479</link>
      <description>&lt;P&gt;Hi Kishorj,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible than please share the sample Qlikview Application.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Av7eN&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 08:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556382#M599479</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2019-03-14T08:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556398#M599480</link>
      <description>&lt;P&gt;Make sure you got distinct key values in your mapping table. If you do not have distinct key values you might get different result depending on which order you load the rows in your master table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first map table will not return the same values as the second.&lt;/P&gt;&lt;P&gt;The first:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MyMapTable:&lt;BR /&gt;MAPPING LOAD * [
MapKey, MapValue
A, Ali
B, Betty
C, Cecil
A, Anna
B, Billy
C, Conny
];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The second:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MyMapTable:
MAPPING LOAD * [
MapKey, MapValue
A, Anna
B, Billy
C, Conny&lt;BR /&gt;A, Ali &lt;BR /&gt;B, Betty &lt;BR /&gt;C, Cecil
];&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Mar 2019 09:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556398#M599480</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-14T09:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556438#M599481</link>
      <description>&lt;P&gt;If you have more than 1 mapping values in your mapping table, then only first one will be picked in your mapping load.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 10:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556438#M599481</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2019-03-14T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556474#M599482</link>
      <description>&lt;P&gt;s this mean that all values in mapping load must be distinct and in apply map&amp;nbsp;is it need to use distinct clauses on the primary key in the tablle&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 11:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556474#M599482</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2019-03-14T11:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556499#M599483</link>
      <description>You don't have to, but as I and &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/37497"&gt;@shiveshsingh&lt;/a&gt; said it will map the value of the first loaded keyvalue of the map table and "ignore" all later duplicate key values.&lt;BR /&gt;&lt;BR /&gt;However it could be an good idea to load each key value only once to avoid confusions or diffrent mapping output when used with different load order.&lt;BR /&gt;&lt;BR /&gt;If you are 100% certain that you only have distinct values in your table then you will get the same result from a left join as from using applymap().</description>
      <pubDate>Thu, 14 Mar 2019 12:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556499#M599483</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-14T12:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556593#M599484</link>
      <description>&lt;P&gt;In addition to the other statements a mapping-table could be (variously) sorted with an order by statement and your lookup value could be extended with an appropriate counter, like: value &amp;amp; '|' &amp;amp; counter-number and then an applymap() could grab the n-th value. But there are not many usecases in which such advanced approaches are really useful - therefore keep it simple and ensure that only distinct values are within your mappings.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 14:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556593#M599484</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-03-14T14:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556752#M599485</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a mapping file for avoiding duplicate mappings from multiple applications.&lt;/P&gt;&lt;P&gt;I am creating transformed QVd for this and wherever&amp;nbsp;mapping columns are required I am fetching these columns from created transformed QVd.&lt;/P&gt;&lt;P&gt;The purpose is to&amp;nbsp;add all mappings related to SalesOrder.qvd to SalesOrderMappings.QVW file and use transformed&lt;/P&gt;&lt;P&gt;SalesOrderMappings.qvd file in all applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but looks like values does not match.&lt;/P&gt;&lt;P&gt;Can you please suggest where I need to test this application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 18:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556752#M599485</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2019-03-14T18:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556757#M599486</link>
      <description>Which version are you running the application on. Previous versions of&lt;BR /&gt;QlikView had problem creating mapping tables from QVD files when loaded&lt;BR /&gt;with optimized load.&lt;BR /&gt;&lt;BR /&gt;Try losing your mapping table using a where clause 1=1, it will break your&lt;BR /&gt;optimized load.&lt;BR /&gt;&lt;BR /&gt;MapTable:&lt;BR /&gt;MAPPING LOAD&lt;BR /&gt;KeyField, ValueField&lt;BR /&gt;FROM&lt;BR /&gt;MapFile.qvd (QVD)&lt;BR /&gt;WHERE&lt;BR /&gt;1=1;&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Vegar&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Mar 2019 18:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556757#M599486</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-14T18:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556897#M599487</link>
      <description>&lt;P&gt;Hi Vegar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your valuable inputs. We are using Qlikview 12 but I do not know. Anyway, I will make changes suggested by you.&lt;/P&gt;&lt;P&gt;If there is already where condition&amp;nbsp;I am using and statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Handling Unit Creation Date Map]:&lt;BR /&gt;MAPPING LOAD [Sales Document Item Key],&lt;BR /&gt;Date (Min ([Handling Unit Creation Date])) as [Handling Unit Creation Date]&lt;BR /&gt;RESIDENT temp&lt;BR /&gt;GROUP BY [Sales Document Item Key] and 1=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please correct me if I am wrong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 05:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1556897#M599487</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2019-03-15T05:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1558583#M599488</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using apply map in where the condition as per below.&lt;/P&gt;&lt;P&gt;[Sales Order Purchased]:&lt;BR /&gt;LOAD DISTINCT [Sales Document Item Key] as [Sales Document Item Key Purchased]&lt;BR /&gt;FROM&lt;BR /&gt;[SalesOrder.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;WHERE Match ([%Sales doc. type_DOC_TYPE], 'ZQT', 'ZQH') = 0&lt;BR /&gt;AND Exists ([Sales Document Item Key]) //AND NOT Exists ([%Sales Document TECO Complete Item], [Sales Document Item Key])&lt;BR /&gt;AND ApplyMap ('PO Material Map', [Sales Document Item Key], 'N/A') = %Material_MATERIAL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I can use the calculated column instead of&amp;nbsp;&amp;nbsp;ApplyMap ('PO Material Map', [Sales Document Item Key], 'N/A') the result does not match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 17:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-applymap/m-p/1558583#M599488</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2019-03-19T17:27:00Z</dc:date>
    </item>
  </channel>
</rss>

