<?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: Expression with more than one set analysis filter passed to a variable as a parameter not workin in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expression-with-more-than-one-set-analysis-filter-passed-to-a/m-p/1573785#M41802</link>
    <description>&lt;P&gt;Look here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Problem-when-I-send-parameters-to-variable-function-with-a-set/m-p/1571189#M133195" target="_blank" rel="noopener"&gt;Problem when I send parameters to variable function with a set analysys with two conditions&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 11:31:21 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-04-26T11:31:21Z</dc:date>
    <item>
      <title>Expression with more than one set analysis filter passed to a variable as a parameter not working</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-with-more-than-one-set-analysis-filter-passed-to-a/m-p/1573723#M41801</link>
      <description>&lt;P&gt;Hi guys.&lt;/P&gt;&lt;P&gt;First of all, this is my first post, so I hope I am posting it the right place.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Qlik Sense allows you to pass parameters to variables, which is great. There is an example on how it works:&lt;/P&gt;&lt;P&gt;let sum = $1+$2&lt;BR /&gt;in: $(sum(1,3))&lt;BR /&gt;out: 4&lt;/P&gt;&lt;P&gt;Equivalently, one can pass expressions to a variable. This is usefull when dealing with formats.&amp;nbsp;&lt;/P&gt;&lt;P&gt;let format = if(Fabs($1)&amp;lt;1,num($1,'0,0%'),num($1,'#.##0'))&lt;/P&gt;&lt;P&gt;The expression above apply percentage format to parameters that are less than 1.&lt;/P&gt;&lt;P&gt;An example on how to use it could be&lt;/P&gt;&lt;P&gt;$(format(sum( Sales )))&lt;/P&gt;&lt;P&gt;Or even&lt;/P&gt;&lt;P&gt;$(format(sum({&amp;lt;Country={'Spain'}&amp;gt;} Sales)))&lt;/P&gt;&lt;P&gt;The problem cames when trying to pass more than one set analysis filter, as in&amp;nbsp;&lt;/P&gt;&lt;P&gt;$(format(sum({&amp;lt;Country={'Spain'},Year={'2018'}&amp;gt;} Sales)))&lt;/P&gt;&lt;P&gt;In this last case, as there is a comma in the expression (separing the Country and Year filters), the variable understands that two parameters are being passed.&lt;/P&gt;&lt;P&gt;I mean, when passing this parameter, the variable is understanding that&lt;/P&gt;&lt;P&gt;$1 =&amp;nbsp;sum({&amp;lt;Country={'Spain'}&lt;/P&gt;&lt;P&gt;$2 =&amp;nbsp;Year={'2018'}&amp;gt;} Sales))&lt;/P&gt;&lt;P&gt;How could I tell Qlik Sense that this comma is not meaning parameter separation? I have tried concatenating, using parenthesis...&lt;/P&gt;&lt;P&gt;Thank you in adavance! Cheers!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-with-more-than-one-set-analysis-filter-passed-to-a/m-p/1573723#M41801</guid>
      <dc:creator>victor95</dc:creator>
      <dc:date>2024-11-16T05:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with more than one set analysis filter passed to a variable as a parameter not workin</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-with-more-than-one-set-analysis-filter-passed-to-a/m-p/1573785#M41802</link>
      <description>&lt;P&gt;Look here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Problem-when-I-send-parameters-to-variable-function-with-a-set/m-p/1571189#M133195" target="_blank" rel="noopener"&gt;Problem when I send parameters to variable function with a set analysys with two conditions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 11:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-with-more-than-one-set-analysis-filter-passed-to-a/m-p/1573785#M41802</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-26T11:31:21Z</dc:date>
    </item>
  </channel>
</rss>

