<?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 disaster in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389257#M1155916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Imush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and wrap the sum function in IF() funcction. So, IF(flag=1,sum(value),"")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2013 15:03:41 GMT</pubDate>
    <dc:creator>Gabriel</dc:creator>
    <dc:date>2013-02-01T15:03:41Z</dc:date>
    <item>
      <title>Set analysis disaster</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389254#M1155913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have what I think is a basic set analysis. I want to sum the value where a certain flag = 1. In my data there is not one flag = 1, but a lot of nulls. The below seems to for some reason be summing up all of the nulls? And giving me a value when there shouldn't be one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this would happen or if I'm missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;flag={'1'}&amp;gt;}value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389254#M1155913</guid>
      <dc:creator />
      <dc:date>2013-01-31T12:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis disaster</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389255#M1155914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing that springs to mind is that you didn't use the exact field name for your flag field in the set expression. Qlikview is case sensitive so flag is not the same as Flag or flAg or flaG. If the set expression can't be evaluated then you get the sum over all records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389255#M1155914</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-31T12:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis disaster</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389256#M1155915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Gysbert, it is definitely the correct Flag. Will it sum up all records if everything it is trying to evaluate is null?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389256#M1155915</guid>
      <dc:creator />
      <dc:date>2013-01-31T12:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis disaster</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389257#M1155916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Imush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and wrap the sum function in IF() funcction. So, IF(flag=1,sum(value),"")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 15:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389257#M1155916</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2013-02-01T15:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis disaster</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389258#M1155917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&amp;nbsp; Try double quotes for text (or numbers) or no quotes (for numbers only).&amp;nbsp; QV can be picky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need the curly braces around the match value.&amp;nbsp; Try this: sum({$&amp;lt; [flag] = {1}&amp;gt;}value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And make sure "value" means something in your file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 18:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-disaster/m-p/389258#M1155917</guid>
      <dc:creator>greg-anderson</dc:creator>
      <dc:date>2014-01-29T18:41:21Z</dc:date>
    </item>
  </channel>
</rss>

