<?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: Multiple Parameter Values In Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Parameter-Values-In-Variable/m-p/1878079#M1216762</link>
    <description>&lt;P&gt;You can't use a comma within a variable value. It will always be interpreted a parameter separator.&amp;nbsp; The only workaround I know is to use a proxy character like "&lt;SPAN&gt;peppermint| Cthulu" and then swap the "|" for "," in the variable using Replace(). The syntax can get pretty ugly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Rob&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 16:46:50 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2022-01-06T16:46:50Z</dc:date>
    <item>
      <title>Multiple Parameter Values In Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Parameter-Values-In-Variable/m-p/1878072#M1216761</link>
      <description>&lt;DIV class="_3xX726aBn29LDbsDtzr_6E _1Ap4F5maDtT1E1YuCiaO0r D3IL3FD0RFy_mkKLPwL4" data-click-id="text"&gt;
&lt;DIV class="_292iotee39Lmt0MkQZ2hPV RichTextJSON-root"&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'm trying to use multiple values for a parameter within a variable, and would like to know firstly if this is possible, and secondly how to do it.&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I have variable v.Example (obviously I am using proxies as I can't show my details)&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Sum({&amp;lt; Category1 = {"$1"},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category2 = {"$2"}&amp;gt;}&lt;BR /&gt;Amount)/1000))&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Category1 can take the following values up, down, left, right&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Category2 can take the following values peppermint, topspin, Cthulu -&amp;nbsp;&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;So if I'm looking for say Category1 to be down, and Category2 to be Cthulu, I would now write&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;$(v.Example(down, Cthulu))&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I would like to be able to select more than one value for each parameter, so I would like to use something similar to the below.&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;$(v.Example(down, [peppermint, Cthulu]))&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Can someone please help out with the correct syntax?&amp;nbsp;&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Cheers&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jan 2022 16:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Parameter-Values-In-Variable/m-p/1878072#M1216761</guid>
      <dc:creator>nongspits</dc:creator>
      <dc:date>2022-01-06T16:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Parameter Values In Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Parameter-Values-In-Variable/m-p/1878079#M1216762</link>
      <description>&lt;P&gt;You can't use a comma within a variable value. It will always be interpreted a parameter separator.&amp;nbsp; The only workaround I know is to use a proxy character like "&lt;SPAN&gt;peppermint| Cthulu" and then swap the "|" for "," in the variable using Replace(). The syntax can get pretty ugly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Rob&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 16:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Parameter-Values-In-Variable/m-p/1878079#M1216762</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-01-06T16:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Parameter Values In Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Parameter-Values-In-Variable/m-p/1878094#M1216763</link>
      <description>&lt;P&gt;Like Rob mentioned you need to avoid commas within a single-parameter. But depending on your intended usage you may reach it also with a different expression-syntax. In your case you could list the multi-values like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$(v.Example(down, &lt;STRONG&gt;(&lt;/STRONG&gt;peppermint&lt;STRONG&gt;|&lt;/STRONG&gt;Cthulu&lt;STRONG&gt;)&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 17:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Parameter-Values-In-Variable/m-p/1878094#M1216763</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-01-06T17:12:19Z</dc:date>
    </item>
  </channel>
</rss>

