<?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 Expression in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326942#M583650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What problem .Please upload your qlikview file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 11:36:27 GMT</pubDate>
    <dc:creator>perumal_41</dc:creator>
    <dc:date>2011-10-11T11:36:27Z</dc:date>
    <item>
      <title>Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326940#M583648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've stuck with set analysis formula. Basically I want to get table to dispaly the data only where Statement.Amount devided by Currency.Exchangerate is &amp;gt;= than 10000 or &amp;lt;= than - 10000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula should look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Statement.amount={"&amp;gt;=10000&amp;lt;=-10000"}&amp;gt;}Statement.amount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But 'Statement.amount' needs to be devided by 'Currency.Exchangerate' first in this formula. Does anyone know how to achieve this?&lt;/P&gt;&lt;P&gt; Any idea will be very helpful for me. Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Sergejs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 11:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326940#M583648</guid>
      <dc:creator>zekazak</dc:creator>
      <dc:date>2011-10-11T11:06:55Z</dc:date>
    </item>
    <item>
      <title>Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326941#M583649</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 would suggest to do this calculation in the script and to create a new field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Björn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 11:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326941#M583649</guid>
      <dc:creator />
      <dc:date>2011-10-11T11:11:23Z</dc:date>
    </item>
    <item>
      <title>Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326942#M583650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What problem .Please upload your qlikview file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 11:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326942#M583650</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2011-10-11T11:36:27Z</dc:date>
    </item>
    <item>
      <title>Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326943#M583651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not multiply your limits (10000 and -10000) with Currency.Exchangerate in your search expression?&lt;/P&gt;&lt;P&gt;(well, does your search expression results in any records? I wouldn't think that &amp;gt;=10000 and &amp;lt;=-10000 is possible for any value of amount, I belive the search string uses an implicite AND operator).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will probably only work with a fixed, single Currency.Exchangerate in the scope of the set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hm, I assume you have a Currency.Exchangerate that may change by record, right?&lt;/P&gt;&lt;P&gt;Then I think you can't use the set expression, you need a record based evaluation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if( (Statement.amount / Currency.Exchangerate) &amp;gt;=10000 or (Statement.amount / Currency.Exchangerate) &amp;lt;=-10000, Statement.amount / Currency.Exchangerate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I think Björn is right, performing the currency calculation in the script is probably better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 11:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326943#M583651</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-11T11:41:24Z</dc:date>
    </item>
    <item>
      <title>Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326944#M583652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can set your Set Analysis like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum({$&amp;lt;Statement.amount={"&amp;gt;=10000"}&amp;gt;+&amp;lt;Statement.amount={"&amp;lt;=-10000"}&amp;gt;}Statement.amount)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If can use + operator like OR logical.&lt;/P&gt;&lt;P&gt;This will be behaviour of your expression:&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Statement.amount &amp;gt;=10000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Statement.amount &amp;lt;=-10000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Malki Ely&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 12:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326944#M583652</guid>
      <dc:creator />
      <dc:date>2011-10-11T12:59:16Z</dc:date>
    </item>
    <item>
      <title>Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326945#M583653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for quick responses and sorry for poor explanation of the problem from my side.&lt;/P&gt;&lt;P&gt;So this formula '=sum({$&amp;lt;Statement.amount={"&amp;gt;=10000&amp;lt;=-10000"}&amp;gt;}Statement.amount)' works perfectly for me. &lt;/P&gt;&lt;P&gt;We use to use this formula in our reports, but recently I realized that Statement.amount field value needs to be devided by Currency.exchangerate. I just wanted to modify my set analysis formula rather than modify the load script. &lt;/P&gt;&lt;P&gt;And I would like to create the formula something like this:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Statement.amount/Currency.exchangerate={"&amp;gt;=10000&amp;lt;=-10000"}&amp;gt;}Statement.amount/Currency.exchangerate).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;~Sergejs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 14:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326945#M583653</guid>
      <dc:creator>zekazak</dc:creator>
      <dc:date>2011-10-11T14:23:11Z</dc:date>
    </item>
    <item>
      <title>Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326946#M583654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergejs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you can't use an expression like Statement.amount/Currency.exchangerate on the left side of a set analyis expression assignment. You must state a field here - you could think of field selection, so what field do you wanna select in giving an expression like amount / exchangerate? &lt;/P&gt;&lt;P&gt;This is not like the left side of a comparison, it's more like an assignment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried the sum with the if clause I posted above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326946#M583654</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-11T15:07:37Z</dc:date>
    </item>
    <item>
      <title>Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326947#M583655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. Your idea helped me a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Sergejs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 17:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/326947#M583655</guid>
      <dc:creator>zekazak</dc:creator>
      <dc:date>2012-01-30T17:24:44Z</dc:date>
    </item>
  </channel>
</rss>

