<?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: Variable Function is not accepting more than one set operator parameters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1704808#M451411</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the update.!! This is working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;</description>
    <pubDate>Mon, 25 May 2020 03:36:33 GMT</pubDate>
    <dc:creator>qlik_venu</dc:creator>
    <dc:date>2020-05-25T03:36:33Z</dc:date>
    <item>
      <title>Variable Function is not accepting more than one set operator parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1702177#M451276</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using a Variable defined function for calculaitng the Million, Thousand or number format. this part below is defined in the script.&lt;/P&gt;&lt;P&gt;SET vScaleNumbers_EU = if( fabs($1)&amp;gt; 1000000 and $2=2, num($1/1000000 ,'# ##0,00 M',',',' '),&lt;BR /&gt;if( fabs($1)&amp;gt; 1000 and $2=2, num($1/1000 ,'# ##0,00 K',',',' '),&lt;BR /&gt;NUM($1,'# ##0','',' ')));&lt;BR /&gt;&lt;BR /&gt;SET vScaleNumbers_US = if(fabs($1)&amp;gt; 1000000 and $2=2, num($1/1000000 ,'#,##0.00 M','.',','),&lt;BR /&gt;if(fabs($1)&amp;gt; 1000 and $2=2, num($1/1000, '#,##0.00 K' ,'.',','),NUM($1,'# ##0','',' ')));&lt;BR /&gt;&lt;BR /&gt;And in the expresions in the chart, I am using,&lt;BR /&gt;&lt;BR /&gt;$(vScaleNumbers_$(vCurrencyFormat)( sum ( {&amp;lt;DATE_KEY={'$(vDateRange_Current_Full)'}&amp;gt;}Sales) ,&amp;nbsp;$(vDisplayNumberFormat) )&lt;/P&gt;&lt;P&gt;The vCurrencyFormat defines where its US or EU.&lt;BR /&gt;and $1 paremeter is = sum ( {&amp;lt;DATE_KEY={'$(vDateRange_Current_Full)'}&amp;gt;}Sales)&lt;BR /&gt;and $2 parameter is = vDisplayNumberFormat, which defines whether the number needs to be whole number ( 2) or formatted (1).&lt;/P&gt;&lt;P&gt;The above works fine when we have just one set analysis parameter. As soon as I add the other parameters the expression fails.&lt;/P&gt;&lt;P&gt;$(vScaleNumbers_$(vCurrencyFormat)( sum ( {&amp;lt;DATE_KEY={'$(vDateRange_Current_Full)'}, [Month]={'*'},[Cal Quarter]={'*'} &amp;gt;}Sales) ,&amp;nbsp;$(vDisplayNumberFormat) )&lt;/P&gt;&lt;P&gt;This is because the variable function assume comma seperator in the Sum function as the next $2 parameter.&lt;/P&gt;&lt;P&gt;Can you please suggest on this.&lt;/P&gt;&lt;P&gt;thanks,&lt;BR /&gt;Venu&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 21:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1702177#M451276</guid>
      <dc:creator>qlik_venu</dc:creator>
      <dc:date>2020-05-14T21:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Function is not accepting more than one set operator parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1702201#M451277</link>
      <description>&lt;P&gt;This is a longstanding irritant in the variable parameters.&amp;nbsp; Comma will always be interpreted as a parm separator, there is no way to pass it as data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only workaround I know of is to use a proxy character like "|" in place of the comma and then use replace() in the expression to put the comma back in.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 00:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1702201#M451277</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-05-15T00:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Function is not accepting more than one set operator parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1702359#M451295</link>
      <description>&lt;P&gt;In some cases you could bypass the comma-as-parameter handling from the variables by adjusting the syntax to a none-comma approach. Multiple conditions within a set analysis could be also written in this way:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum ( {&amp;lt;DATE_KEY={'$(vDateRange_Current_Full)'}&amp;gt; * &amp;lt; [Month]={'*'}&amp;gt; * &amp;lt; [Cal Quarter]={'*'} &amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and by multiple values within a condition they could be defined like:&lt;/P&gt;&lt;P&gt;Field = {(value1|value2|value3)}&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 11:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1702359#M451295</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-05-15T11:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Function is not accepting more than one set operator parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1704808#M451411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the update.!! This is working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 03:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1704808#M451411</guid>
      <dc:creator>qlik_venu</dc:creator>
      <dc:date>2020-05-25T03:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Function is not accepting more than one set operator parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1704975#M451415</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I had an issue using the asterixis. I wanted the sum function to remain unaffected by any selections to the "Month" field. But using the asterixis as you had suggested resulted in selections in the "Month" affecting the expression.&amp;nbsp; I guess the * intersects the month which gets added to the first set of the date range key filter.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;used the + operator to add the sets instead of the asterix. * and this seems to do the union of the sets with the month not applied to the set. This seems to work fine right now.&lt;/P&gt;&lt;P&gt;But do you see any issues in using the + which I may have missed.&amp;nbsp; Thanks for guiding this unique way of applying sets.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 21:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1704975#M451415</guid>
      <dc:creator>qlik_venu</dc:creator>
      <dc:date>2020-05-25T21:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Function is not accepting more than one set operator parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1704976#M451416</link>
      <description>&lt;P&gt;The expression I am now using,&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;=&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080"&gt;$(vScaleNumbers_$(vCurrencyFormat)( Sum({$&amp;lt; _Z_DATE_KEY={"$(vDateRange_Current_Full)"}&amp;gt; +&amp;lt;Month =&amp;gt; }$(vExpSelection)), vDisplayNumberFormat))&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 22:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Function-is-not-accepting-more-than-one-set-operator/m-p/1704976#M451416</guid>
      <dc:creator>qlik_venu</dc:creator>
      <dc:date>2020-05-25T22:01:12Z</dc:date>
    </item>
  </channel>
</rss>

