<?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: Aggr with Two parameter Variable not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191569#M385016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look here: &lt;A href="https://community.qlik.com/message/1129861"&gt;Re: variable with comma parameter&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2016 11:47:10 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-10-25T11:47:10Z</dc:date>
    <item>
      <title>Aggr with Two parameter Variable not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191564#M385011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a scenario for Numerator and Denominator calculation. I have to consider some filters for Numerator and Denominator calculation.&lt;/P&gt;&lt;P&gt;One more condition we need to consider while calculating Numerator and Denominator which We have to look at Numerator and Denominator for each "MonthYear" and "Category" value should be '&amp;gt;' Zero, then only we have to take Numerator and Denominator for that particular "&lt;SPAN style="font-size: 13.3333px;"&gt;MonthYear" and "Category".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;PFA .qvw and Data. We have used Aggr with SetAnalysis the expression is working fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The same way We have 100 No.of expressions. So we planned to use variable with two parameters. but it is now working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Please help me to rectify the syntax problem.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Saranya.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 07:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191564#M385011</guid>
      <dc:creator />
      <dc:date>2016-10-25T07:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Two parameter Variable not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191565#M385012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add an '=' to this variable : eNumerator, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;SubType1={'X','Y'}&amp;gt;}Measure1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aurélien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit : same thing for eDenominator&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 07:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191565#M385012</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2016-10-25T07:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Two parameter Variable not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191566#M385013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the support Aurelien.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this, but actually I have to get the Expected result for Numerator is 640326 and Denominator is 35.&lt;/P&gt;&lt;P&gt;Then only my variable with parameter is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me to work on two parameter variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saranya A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 08:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191566#M385013</guid>
      <dc:creator />
      <dc:date>2016-10-25T08:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Two parameter Variable not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191567#M385014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you i do that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;SubType1={'X'}&amp;gt;}Measure1) + sum({&amp;lt;SubType1={'Y'}&amp;gt;}Measure1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in the ',' in set analysis...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 08:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191567#M385014</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2016-10-25T08:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Two parameter Variable not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191568#M385015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Aurelin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is meeting my requirement. Actually, I have shared sample expression. In real scenario we have 4 to 5 no.of modifiers, each modifier have multiple values. So splitting it for 100 expression is difficult task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to acheive?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Saranya A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 09:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191568#M385015</guid>
      <dc:creator />
      <dc:date>2016-10-25T09:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Two parameter Variable not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191569#M385016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look here: &lt;A href="https://community.qlik.com/message/1129861"&gt;Re: variable with comma parameter&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 11:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191569#M385016</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-25T11:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Two parameter Variable not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191570#M385017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I understood the ',' is creating problem. But could not fix the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will please suggest me how to implement it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Saranya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 13:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191570#M385017</guid>
      <dc:creator />
      <dc:date>2016-10-25T13:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Two parameter Variable not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191571#M385018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your parameter which is another variable which include a whole expression could be globally calculated you could do something like this: &lt;A href="https://community.qlik.com/thread/119550"&gt;Nesting Variables with parameters&lt;/A&gt;. But must be those expression calculate the results depending on certain dimensions this way isn't possible. In short I don't think that there is a way to nest such variables if they must be expanded in eachother.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternatively would be to do something like this as variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(if((&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;$1={$2}&amp;gt;}$3))&amp;gt;0 and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (sum({&amp;lt;$4={'$(=replace($5, '+', chr(39) &amp;amp; chr(44) &amp;amp; chr(39)))'}&amp;gt;}$6))&amp;gt;0,(sum({&amp;lt;$4={'$(=replace($5, '+', chr(39) &amp;amp; chr(44) &amp;amp; chr(39)))'}&amp;gt;}$6)),0),MonthYear,Category))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(eparameterVar_NrNew(Type, 'A', Measure2, SubType1, 'X+Y', Measure1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141871_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 16:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191571#M385018</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-25T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Two parameter Variable not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191572#M385019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to implement the same concept into my application. In my case, passing parameter will differ for each and every expression, so i need to create multiple variables, to avoid these I will go for direct expression method only, instead of parameter with variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saranya A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 05:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191572#M385019</guid>
      <dc:creator />
      <dc:date>2016-10-26T05:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Two parameter Variable not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191573#M385020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for all your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have tried it in double dollar expansion format. Now it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA which is udated with double dollar expansion variable with two parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saranya A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 07:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Two-parameter-Variable-not-working/m-p/1191573#M385020</guid>
      <dc:creator />
      <dc:date>2016-10-26T07:16:32Z</dc:date>
    </item>
  </channel>
</rss>

