<?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 Issue with Dynamic Postal Code Selection in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-with-Dynamic-Postal-Code-Selection-in-Qlik-Sense/m-p/2474828#M100073</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I’m encountering an issue with dynamically selecting postal codes in Qlik Sense based on a distance slider. Here’s a summary of my setup and the problem I’m facing:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Setup:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Dynamic Distance&lt;/STRONG&gt;: I have a slider that represents a distance value.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Postal Code Filtering&lt;/STRONG&gt;: I use this distance to filter postal codes dynamically. The expression for my postal codes is:&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium"&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="!whitespace-pre hljs language-qlik"&gt;Chr(39) &amp;amp; Concat(DISTINCT If($(vDistance) &amp;lt;= $(vInc), INSEE_COM), Chr(39) &amp;amp; ',' &amp;amp; Chr(39)) &amp;amp; Chr(39)
&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should concatenate postal codes (e.g., &lt;CODE&gt;69077,69242,71481&lt;/CODE&gt;) into a format like &lt;CODE&gt;'69077','69242','71481'&lt;/CODE&gt;, where &lt;CODE&gt;INSEE_COM&lt;/CODE&gt; is the postal code field.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Button Configuration&lt;/STRONG&gt;: I’ve set up a button to use the action "Select values matching search criteria", with the criteria set to &lt;CODE&gt;=($(vPostalCodesSearch))&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Problems Encountered:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;When the variable contains only one postal code, it works correctly.&lt;/LI&gt;
&lt;LI&gt;With multiple postal codes, I get the error: &lt;CODE&gt;Error in expression ')' expected = ('69077','69242','71481')&lt;/CODE&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;It appears that the issue may be related to how the values are formatted or separated in the expression. Could someone suggest a solution or provide guidance on how to correctly format and apply multiple postal codes as filters dynamically based on the distance from the slider? Any help or alternative approaches would be greatly appreciated!&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 14:34:38 GMT</pubDate>
    <dc:creator>ImasLauoraza</dc:creator>
    <dc:date>2024-08-06T14:34:38Z</dc:date>
    <item>
      <title>Issue with Dynamic Postal Code Selection in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Dynamic-Postal-Code-Selection-in-Qlik-Sense/m-p/2474828#M100073</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I’m encountering an issue with dynamically selecting postal codes in Qlik Sense based on a distance slider. Here’s a summary of my setup and the problem I’m facing:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Setup:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Dynamic Distance&lt;/STRONG&gt;: I have a slider that represents a distance value.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Postal Code Filtering&lt;/STRONG&gt;: I use this distance to filter postal codes dynamically. The expression for my postal codes is:&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium"&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="!whitespace-pre hljs language-qlik"&gt;Chr(39) &amp;amp; Concat(DISTINCT If($(vDistance) &amp;lt;= $(vInc), INSEE_COM), Chr(39) &amp;amp; ',' &amp;amp; Chr(39)) &amp;amp; Chr(39)
&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should concatenate postal codes (e.g., &lt;CODE&gt;69077,69242,71481&lt;/CODE&gt;) into a format like &lt;CODE&gt;'69077','69242','71481'&lt;/CODE&gt;, where &lt;CODE&gt;INSEE_COM&lt;/CODE&gt; is the postal code field.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Button Configuration&lt;/STRONG&gt;: I’ve set up a button to use the action "Select values matching search criteria", with the criteria set to &lt;CODE&gt;=($(vPostalCodesSearch))&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Problems Encountered:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;When the variable contains only one postal code, it works correctly.&lt;/LI&gt;
&lt;LI&gt;With multiple postal codes, I get the error: &lt;CODE&gt;Error in expression ')' expected = ('69077','69242','71481')&lt;/CODE&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;It appears that the issue may be related to how the values are formatted or separated in the expression. Could someone suggest a solution or provide guidance on how to correctly format and apply multiple postal codes as filters dynamically based on the distance from the slider? Any help or alternative approaches would be greatly appreciated!&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 14:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Dynamic-Postal-Code-Selection-in-Qlik-Sense/m-p/2474828#M100073</guid>
      <dc:creator>ImasLauoraza</dc:creator>
      <dc:date>2024-08-06T14:34:38Z</dc:date>
    </item>
  </channel>
</rss>

