<?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: Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623093#M445923</link>
    <description>&lt;P&gt;Let me elaborate more on this:&lt;/P&gt;&lt;P&gt;I have dynamic set parameters passed in my set analysis.&lt;/P&gt;&lt;P&gt;Abv thing which i had mentioned is just for illustration purpose.&lt;/P&gt;&lt;P&gt;I have set analysis expression as&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; class = { $(class1), $(class2)} , year&amp;nbsp; = max(year), version=&amp;nbsp; 15&amp;gt;}, value)&lt;/P&gt;&lt;P&gt;But this gives me wrong value since this expression directly sums up two classes .&lt;/P&gt;&lt;P&gt;But my requirement is to multiply first passed classby 1 and second one by -1.&lt;/P&gt;&lt;P&gt;Class1 and class2 are variable and are dynamic&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 10:26:12 GMT</pubDate>
    <dc:creator>fj11</dc:creator>
    <dc:date>2019-09-12T10:26:12Z</dc:date>
    <item>
      <title>Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623059#M445919</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have below data:&lt;/P&gt;&lt;P&gt;Class1 = 11&lt;/P&gt;&lt;P&gt;Class2 = 15&lt;/P&gt;&lt;P&gt;Note : sum of values of class1 must be multiplied by 1&lt;/P&gt;&lt;P&gt;And sum of values of class2 must be multiplied by -1&lt;/P&gt;&lt;P&gt;Currently&amp;nbsp; I am using set analysis expression as below to get the desired data:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; class = class1 &amp;gt;} value) + (sum({&amp;lt; class = class2&amp;gt;} value))*-1&lt;/P&gt;&lt;P&gt;How do I merge this two sets into one set analysis expression ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623059#M445919</guid>
      <dc:creator>fj11</dc:creator>
      <dc:date>2024-11-16T02:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623070#M445920</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to use&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum(If(class='class1',1,-1)*value)&lt;/P&gt;&lt;P&gt;instead of set analysis&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 09:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623070#M445920</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-09-12T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623075#M445922</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to add the sum for both the classes. This expression won't work in&lt;BR /&gt;my case.&lt;BR /&gt;It will work only for one class.&lt;BR /&gt;I need this in set expression itself&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623075#M445922</guid>
      <dc:creator>fj11</dc:creator>
      <dc:date>2019-09-12T10:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623093#M445923</link>
      <description>&lt;P&gt;Let me elaborate more on this:&lt;/P&gt;&lt;P&gt;I have dynamic set parameters passed in my set analysis.&lt;/P&gt;&lt;P&gt;Abv thing which i had mentioned is just for illustration purpose.&lt;/P&gt;&lt;P&gt;I have set analysis expression as&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; class = { $(class1), $(class2)} , year&amp;nbsp; = max(year), version=&amp;nbsp; 15&amp;gt;}, value)&lt;/P&gt;&lt;P&gt;But this gives me wrong value since this expression directly sums up two classes .&lt;/P&gt;&lt;P&gt;But my requirement is to multiply first passed classby 1 and second one by -1.&lt;/P&gt;&lt;P&gt;Class1 and class2 are variable and are dynamic&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623093#M445923</guid>
      <dc:creator>fj11</dc:creator>
      <dc:date>2019-09-12T10:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623099#M445924</link>
      <description>&lt;P&gt;Set analysis within a single expression won't work because set analysis within a single expression cannot dictate if a range needs to be multiplied by 1 and the other range by -1... Either you have to use the if statement provided by&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83275"&gt;@StarinieriG&lt;/a&gt;&amp;nbsp; or use it as 2 set analysis expression like you have listed.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623099#M445924</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-12T10:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623108#M445925</link>
      <description>&lt;P&gt;Ok. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/1623108#M445925</guid>
      <dc:creator>fj11</dc:creator>
      <dc:date>2019-09-12T10:35:03Z</dc:date>
    </item>
  </channel>
</rss>

