<?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 Optimize if condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711820#M256292</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;&lt;/P&gt;&lt;P&gt;We have a expression that reads&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(if(sum(XYZ)&amp;lt;0, 0, Sum(XYZ)),'$(UnitFormat)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to be consuming a high calculation time on a large document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a single function that can be used to optimize this to the best?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: for certain reasons we do not want to mention the dimension when we are calculating this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 13:24:57 GMT</pubDate>
    <dc:creator>rajeshvaswani77</dc:creator>
    <dc:date>2014-09-04T13:24:57Z</dc:date>
    <item>
      <title>Optimize if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711820#M256292</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;&lt;/P&gt;&lt;P&gt;We have a expression that reads&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(if(sum(XYZ)&amp;lt;0, 0, Sum(XYZ)),'$(UnitFormat)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to be consuming a high calculation time on a large document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a single function that can be used to optimize this to the best?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: for certain reasons we do not want to mention the dimension when we are calculating this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711820#M256292</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2014-09-04T13:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711821#M256293</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;Can you try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(sum(XYZ)&amp;lt;0, 0, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num(&lt;/SPAN&gt;Sum(XYZ),'$(UnitFormat)'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ASHFAQ&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711821#M256293</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-09-04T13:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711822#M256294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num(r&lt;/SPAN&gt;angemax(0,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(XYZ)&lt;/SPAN&gt;)&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'$(UnitFormat)')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this will improve performance, but it may be worth a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 14:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711822#M256294</guid>
      <dc:creator />
      <dc:date>2014-09-04T14:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711823#M256295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; XYZ = {"&amp;gt;0"}&amp;gt;} XYZ)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The units could you better show (dynamically) within the label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 14:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711823#M256295</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-04T14:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711824#M256296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wouldn't you want to include negative values? Just because one of the values of XYZ is negative, doesn't mean the sum is below 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 14:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711824#M256296</guid>
      <dc:creator />
      <dc:date>2014-09-04T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711825#M256297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be depend from the data-structure. In some cases I use such logic. Maybe its worth to implement the sum-check within the set analysis but I think then will be the performance not really better ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps another way could be to split these calculation in a table-chart with and reference i a second step on the other column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 14:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-if-condition/m-p/711825#M256297</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-04T14:36:52Z</dc:date>
    </item>
  </channel>
</rss>

