<?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: comparisons in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/comparisons-in-set-analysis/m-p/517908#M193368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also the same in script and arrive a new flag dimension like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ColA+ColB &amp;gt;5000, 1) AS Falg&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the chart just use this&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Falg = {1}&amp;gt;} Amount)&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>Thu, 24 Oct 2013 08:56:37 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2013-10-24T08:56:37Z</dc:date>
    <item>
      <title>comparisons in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/comparisons-in-set-analysis/m-p/517906#M193366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;I have an expression in which I want the following:&lt;/P&gt;&lt;P&gt;sum(if(ColA+ColB &amp;gt;5000) Amount)&lt;/P&gt;&lt;P&gt;this works fine but is there an alternative way to accomplish this using set analysis instead of if statement&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 07:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparisons-in-set-analysis/m-p/517906#M193366</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2013-10-24T07:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: comparisons in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/comparisons-in-set-analysis/m-p/517907#M193367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A set analysis expression is only possible if you have a field that unique identifies the records.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;KeyField={'=ColA+ColB&amp;gt;5000&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ColA and ColB also need to be field names, not column labels. And if they are part of the same table then create a flag field in the script instead:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Load ColA, ColB, if(ColA+ColB&amp;gt;5000,1,0) as Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;From mysource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The expression can then become sum({&amp;lt;Flag={1}&amp;gt;}Amount)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 08:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparisons-in-set-analysis/m-p/517907#M193367</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-24T08:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: comparisons in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/comparisons-in-set-analysis/m-p/517908#M193368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also the same in script and arrive a new flag dimension like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ColA+ColB &amp;gt;5000, 1) AS Falg&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the chart just use this&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Falg = {1}&amp;gt;} Amount)&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>Thu, 24 Oct 2013 08:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparisons-in-set-analysis/m-p/517908#M193368</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-24T08:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: comparisons in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/comparisons-in-set-analysis/m-p/517909#M193369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it necessary to have a key field or it works on any field? please explain via an example if possible and please clarify technical reasons&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 14:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparisons-in-set-analysis/m-p/517909#M193369</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2013-10-24T14:22:22Z</dc:date>
    </item>
  </channel>
</rss>

