<?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 Set analysis and if condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-if-condition/m-p/336568#M494855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try including set analysis in the condition also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(sum({&amp;lt;MonthID=&amp;gt;}Amount)&amp;lt;0,sum({&amp;lt;MonthID=&amp;gt;}Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2012 04:47:20 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-03-06T04:47:20Z</dc:date>
    <item>
      <title>Set analysis and if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-if-condition/m-p/336567#M494854</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;I'm working on a pivot table that requires the user to select a single month first and then will display amounts in different categories for this month. So far this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm trying to display the development in a category in a mini chart within the table, with the month (MonthID) as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using set analysis I can "break out" of the month selection the user made successfully, ie&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial black,avant garde;"&gt;sum({&amp;lt;MonthID=&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This works fine too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I'm trying to accomplish is that this mini chart is only displayed when the amount *for the month the user has selected*&amp;nbsp; is negative.&lt;/P&gt;&lt;P&gt;So the mini chart should display the amount development over time, including potentially positive amounts in months different to the one that the user has selected (but only if the amount in the month the user has selected is negative).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this, but this leads to nothing, it seems the whole set analysis is not working using this formula because this will only show data for the month the user has selected &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial black,avant garde;"&gt;=if(sum(Amount)&amp;lt;0,sum({&amp;lt;MonthID=&amp;gt;}Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this happening and what can I do about it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for any help about this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 19:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-if-condition/m-p/336567#M494854</guid>
      <dc:creator />
      <dc:date>2012-03-05T19:32:57Z</dc:date>
    </item>
    <item>
      <title>Set analysis and if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-if-condition/m-p/336568#M494855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try including set analysis in the condition also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(sum({&amp;lt;MonthID=&amp;gt;}Amount)&amp;lt;0,sum({&amp;lt;MonthID=&amp;gt;}Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 04:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-if-condition/m-p/336568#M494855</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-06T04:47:20Z</dc:date>
    </item>
    <item>
      <title>Set analysis and if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-if-condition/m-p/336569#M494856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try this method .is useful for u&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial black,avant garde;"&gt;=sum({&amp;lt;MonthID=,DateFeild={'&lt;/SPAN&gt;&lt;SPAN style="font-family: arial black,avant garde;"&gt;sum(Amount)&amp;lt;0&lt;/SPAN&gt;&lt;SPAN style="font-family: arial black,avant garde;"&gt;'}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial black,avant garde;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial black,avant garde;"&gt;Perumal A&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 04:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-if-condition/m-p/336569#M494856</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2012-03-06T04:55:11Z</dc:date>
    </item>
    <item>
      <title>Set analysis and if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-if-condition/m-p/336570#M494857</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;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Sum({&amp;lt;MonthID=&amp;gt;}Amount) &amp;lt; 0, Sum({&amp;lt;MonthID=&amp;gt;}Amount), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 05:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-if-condition/m-p/336570#M494857</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-06T05:10:03Z</dc:date>
    </item>
  </channel>
</rss>

