<?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 Ignoring fields by IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ignoring-fields-by-IF/m-p/148977#M27192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;over the time my QlikView application became a bit slow. I mainly use simple expressions like "Sum(Revenue)". (In performance tests I already sorted out the more complex expressions)&lt;/P&gt;&lt;P&gt;The sluggish performance is only disturbing, if in ONE certain field (valuetype) no selection is made.&lt;BR /&gt;So I thought about a simple solution to calculate the Sum only if a selection is made.&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(valuetype)=0,0,Sum(Revenue))&lt;/P&gt;&lt;P&gt;This works in terms of returning 0 in case no selection is made, but the (bad) performance is as it was before.&lt;BR /&gt;The idea is to calculate the Sums only if a selection is made for valuetype, otherwise just return 0 ("do not even touch the Sum formula"). I thought this should be faster than any Sum(if(a=b,myfield)) or Sum({a=b}myfield) approach, where the Sum-function must at least do 'something'.&lt;BR /&gt;But it is not ....&lt;/P&gt;&lt;P&gt;Any thoughts on this?&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2009 14:08:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-10T14:08:40Z</dc:date>
    <item>
      <title>Ignoring fields by IF</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-fields-by-IF/m-p/148977#M27192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;over the time my QlikView application became a bit slow. I mainly use simple expressions like "Sum(Revenue)". (In performance tests I already sorted out the more complex expressions)&lt;/P&gt;&lt;P&gt;The sluggish performance is only disturbing, if in ONE certain field (valuetype) no selection is made.&lt;BR /&gt;So I thought about a simple solution to calculate the Sum only if a selection is made.&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(valuetype)=0,0,Sum(Revenue))&lt;/P&gt;&lt;P&gt;This works in terms of returning 0 in case no selection is made, but the (bad) performance is as it was before.&lt;BR /&gt;The idea is to calculate the Sums only if a selection is made for valuetype, otherwise just return 0 ("do not even touch the Sum formula"). I thought this should be faster than any Sum(if(a=b,myfield)) or Sum({a=b}myfield) approach, where the Sum-function must at least do 'something'.&lt;BR /&gt;But it is not ....&lt;/P&gt;&lt;P&gt;Any thoughts on this?&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 14:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-fields-by-IF/m-p/148977#M27192</guid>
      <dc:creator />
      <dc:date>2009-07-10T14:08:40Z</dc:date>
    </item>
    <item>
      <title>Ignoring fields by IF</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-fields-by-IF/m-p/148978#M27193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is okay to display the chart only when some selections are made, then you could try this:&lt;/P&gt;&lt;P&gt;In the chart properties, you can put calculation condition "getselectedcount(valuetype) &amp;gt; 0". This will show the chart only when some selection is made else will display a message which can be customized (Properties/General/Error Messages).&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 17:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-fields-by-IF/m-p/148978#M27193</guid>
      <dc:creator />
      <dc:date>2009-07-10T17:25:40Z</dc:date>
    </item>
    <item>
      <title>Ignoring fields by IF</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-fields-by-IF/m-p/148979#M27194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;yes - I can imagine this as a workaround.&lt;/P&gt;&lt;P&gt;But still I'd like to understand QlikView in more detail.&lt;/P&gt;&lt;P&gt;In case of a formula like "if (condition, expression1, expression2)" ... when is 'expression2' processed?&lt;BR /&gt;I would expect that this is done only in case of 'condition = false'.&lt;BR /&gt;Does QlikView work this way?&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 02:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-fields-by-IF/m-p/148979#M27194</guid>
      <dc:creator />
      <dc:date>2009-07-13T02:43:49Z</dc:date>
    </item>
  </channel>
</rss>

