<?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: Qlik Sense 3.0 - Dynamic ApplyMap No Longer Working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174129#M21522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you happen to miss the variable within the ApplyMap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// **** Number of phase weights ****&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vTemp = Trim(Replace(FieldName(NoOfFields('Phases'), 'Phases'), 'Weight ', ''));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// **** Loop through and create weight mappings ****&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For i = 1 to $(vTemp)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Weight$(i):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Mapping Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Phase],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Weight $(i)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Resident [Phases];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Next;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// **** Get Weighted Phase Score ****&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load [Account Name],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Phase],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Max([Phase Score]) * ApplyMap('Weight&lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;$(i)&lt;/SPAN&gt;' &amp;amp; Max([Current Phase]), Max([Phase]), Null()) as [Weighted Phase Score],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident [Tasks] &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group by [Account Name], [Phase];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2016 06:30:42 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-29T06:30:42Z</dc:date>
    <item>
      <title>Qlik Sense 3.0 - Dynamic ApplyMap No Longer Working</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174128#M21521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am weighting scores for each phase of an account that we manage.&amp;nbsp; The weight of each phase depends on the current phase that the account is in (see attachment file "Phases").&amp;nbsp; There are 4 phases and an account can only be in one phase at a given time, but will have a score for each of the previous phases it's gone through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in my code I create a mapping for each of the weight breakdowns and then use the ApplyMap function to choose the corresponding table and value to bring back.&amp;nbsp; Then, I multiply the weight by the original score of the phase, thus giving me a weighted score.&amp;nbsp; I was dynamically setting the table (&lt;SPAN style="font-size: 13.3333px;"&gt;map_id Expression)&lt;/SPAN&gt; in the ApplyMap function prior to the Qlik Sense 3.0 upgrade, but now I receive an "Unknown Error".&amp;nbsp; I've attached a simplified version of my code to show what I was doing previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that there are several other ways to get to the desired result; I've implemented one of them already.&amp;nbsp; However, I am wondering if anyone else is experiencing the inability to dynamically set the "map_id Expression" value in the ApplyMap function since their upgrade to Qlik Sense 3.0 or 3.0.1.&amp;nbsp; I'd like to report this as a potential bug if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 21:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174128#M21521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T21:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 3.0 - Dynamic ApplyMap No Longer Working</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174129#M21522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you happen to miss the variable within the ApplyMap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// **** Number of phase weights ****&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vTemp = Trim(Replace(FieldName(NoOfFields('Phases'), 'Phases'), 'Weight ', ''));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// **** Loop through and create weight mappings ****&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For i = 1 to $(vTemp)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Weight$(i):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Mapping Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Phase],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Weight $(i)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Resident [Phases];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Next;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// **** Get Weighted Phase Score ****&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load [Account Name],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Phase],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Max([Phase Score]) * ApplyMap('Weight&lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;$(i)&lt;/SPAN&gt;' &amp;amp; Max([Current Phase]), Max([Phase]), Null()) as [Weighted Phase Score],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident [Tasks] &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group by [Account Name], [Phase];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174129#M21522</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-29T06:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 3.0 - Dynamic ApplyMap No Longer Working</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174130#M21523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the input.&amp;nbsp; I'm using the "Max([Current Phase])" piece as the variable as it is different for each account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// **** Number of phase weights ****&lt;/P&gt;&lt;P&gt;Let vTemp = Trim(Replace(FieldName(NoOfFields('Phases'), 'Phases'), 'Weight ', ''));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// **** Loop through and create weight mappings ****&lt;/P&gt;&lt;P&gt;For i = 1 to $(vTemp)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Weight$(i):&lt;/P&gt;&lt;P&gt;&amp;nbsp; Mapping Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Phase],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Weight $(i)]&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident [Phases];&lt;/P&gt;&lt;P&gt;Next;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// **** Get Weighted Phase Score ****&lt;/P&gt;&lt;P&gt;Load [Account Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Phase],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max([Phase Score]) * ApplyMap('Weight'&lt;STRONG&gt; &amp;amp; Max([Current Phase])&lt;/STRONG&gt;, Max([Phase]), Null()) as [Weighted Phase Score],&lt;/P&gt;&lt;P&gt;Resident [Tasks]&lt;/P&gt;&lt;P&gt;Group by [Account Name], [Phase];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 13:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174130#M21523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T13:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 3.0 - Dynamic ApplyMap No Longer Working</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174131#M21524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this, not sure if this will work or not because I have not tested this, but give it a shot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;// **** Get Weighted Phase Score ****&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD [Account Name],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Phase,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; MaxPhaseScore * ApplyMap('Weight' &amp;amp; &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;MaxCurrentPhase, &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;MaxPhase, Null()) as [Weighted Phase Score];&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD [Account Name],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; [Phase],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Max([Phase Score]) as MaxPhaseScore&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Max([Current Phase]) as MaxCurrentPhase&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Max(Phase) as MaxPhase&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: inherit; line-height: 1.5em; font-style: inherit;"&gt;Resident [Tasks]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: bold;"&gt;Group by [Account Name], [Phase]&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG style="font-family: inherit; line-height: 1.5em; font-style: inherit;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 18:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174131#M21524</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-29T18:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 3.0 - Dynamic ApplyMap No Longer Working</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174132#M21525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave that a shot (as it wasn't what I implemented as a fix for the issue) but when I try to load the data Qlik freezes at that piece of code and never completes.&amp;nbsp; I have to close out of the app, wait a few minutes, and then come back into the app.&amp;nbsp; If I try to get back into the app right away it shows the circles/bubbles of the load screen for the app and &lt;SPAN style="font-size: 13.3333px;"&gt;it doesn't ever load the app...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what the issue is with the code that you provided, as it doesn't provide an error.&amp;nbsp; But again, I'm just trying to get some awareness around my original issue.&amp;nbsp; I've already implemented a fix; I just want to get a consensus that it is indeed an issue with Qlik Sense 3.0 and above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 13:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174132#M21525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-02T13:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 3.0 - Dynamic ApplyMap No Longer Working</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174133#M21526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are able to provide a sample, I might be able to test run this at my end as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 13:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-3-0-Dynamic-ApplyMap-No-Longer-Working/m-p/1174133#M21526</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-02T13:46:25Z</dc:date>
    </item>
  </channel>
</rss>

