<?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: Selecting map layer data calculated using variables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2029885#M84836</link>
    <description>&lt;P&gt;All the areas on the map are zip code locations. What designates their color is two things, one being the result of a few variable stored expressions that rank win/loss/no change for sales performance forecast, two being the values entered in the variable input box for estimated growth and the name.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 13:58:47 GMT</pubDate>
    <dc:creator>JeffMelon</dc:creator>
    <dc:date>2023-01-25T13:58:47Z</dc:date>
    <item>
      <title>Selecting map layer data calculated using variables</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2027978#M84706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Is there a way to select all area locations within a map layer that contains location data calculated through variables/variable input boxes?&lt;/P&gt;
&lt;P&gt;The snip below shows a portion of the map I currently have, each different colored area is it's own Area Layer. Each area's color may change as users different values in the input box; users would then like select a colored area, for example "Red", and the map filter for all Red areas, not the individual Red area.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this achievable?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffMelon_0-1674154860741.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98467i8ABAE200D23D9A39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffMelon_0-1674154860741.png" alt="JeffMelon_0-1674154860741.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank You&lt;/P&gt;
&lt;P&gt;Jeff Melon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 19:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2027978#M84706</guid>
      <dc:creator>JeffMelon</dc:creator>
      <dc:date>2023-01-19T19:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting map layer data calculated using variables</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2028443#M84734</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;
&lt;P&gt;I don't think there is a way to do that in the Map object. You could create buttons that make selections in the field based on the values you've used to define the colors.&lt;/P&gt;
&lt;P&gt;For example,&lt;/P&gt;
&lt;P&gt;If the user inputs 12 to highlight counties with a value of 12 as red, you could have a button that selects all counties with a value of 12.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you provide a little more information about the data, I could try to create some sample code that would do this.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 20:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2028443#M84734</guid>
      <dc:creator>KGalloway</dc:creator>
      <dc:date>2023-01-20T20:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting map layer data calculated using variables</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2029885#M84836</link>
      <description>&lt;P&gt;All the areas on the map are zip code locations. What designates their color is two things, one being the result of a few variable stored expressions that rank win/loss/no change for sales performance forecast, two being the values entered in the variable input box for estimated growth and the name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 13:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2029885#M84836</guid>
      <dc:creator>JeffMelon</dc:creator>
      <dc:date>2023-01-25T13:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting map layer data calculated using variables</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2029958#M84839</link>
      <description>&lt;P&gt;I think I have a partial solution. The method described below works for me.&lt;/P&gt;
&lt;P&gt;1. I created the following test data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KGalloway_0-1674660319864.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98846iDA8260DDE7024A5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KGalloway_0-1674660319864.png" alt="KGalloway_0-1674660319864.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The first three columns are loaded in the load script, but the average values are calculated in the chart.&lt;/P&gt;
&lt;P&gt;2. I colored the map based on the average values and the following logic: &amp;gt;6 is red, then &amp;gt;3 is yellow, else is green.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KGalloway_1-1674660385807.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98847i825F60F195368467/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KGalloway_1-1674660385807.png" alt="KGalloway_1-1674660385807.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. Finally, I created 3 buttons that make selections in the Country field when clicked. The key is how the buttons choose to make selections.&amp;nbsp; Set the button function to 'Select values matching search criteria' and set the value to some variation of&amp;nbsp;&lt;STRONG&gt;'("' &amp;amp; concat(if((value1 + value2) / 2 &amp;gt; 3 and (value1 + value2) / 2 &amp;lt;= 6, Country), '"|"') &amp;amp; '")'&amp;nbsp;&lt;/STRONG&gt; where the exact conditions of the if statement vary based on which values you want to pick. This example picks RUS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My example is simple, but I think you may be able to adjust it to fit your needs by replacing the if statement conditions with your specific requirements.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2029958#M84839</guid>
      <dc:creator>KGalloway</dc:creator>
      <dc:date>2023-01-25T15:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting map layer data calculated using variables</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2030622#M84887</link>
      <description>&lt;P&gt;Thank you, applying that logic and formulas it finally works. Much appreciated!!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 00:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-map-layer-data-calculated-using-variables/m-p/2030622#M84887</guid>
      <dc:creator>JeffMelon</dc:creator>
      <dc:date>2023-01-27T00:32:35Z</dc:date>
    </item>
  </channel>
</rss>

