<?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: IF calculation difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135032#M1248417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; think your example may be missing quotes around 'sum' and 'max'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, #1 should be faster.&amp;nbsp; it will still calculate per row, but it will only calculate one aggregation -- sum or max. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#2 will always calculate both sum and max but only display one result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2018 16:10:38 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-07-20T16:10:38Z</dc:date>
    <item>
      <title>IF calculation difference</title>
      <link>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135027#M1248401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise whether any difference between two scenarios of IF use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. $(=IF(ConditionField='True',sum,max))(Measure1)&lt;/P&gt;&lt;P&gt;Expectation is only one calculation per chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. IF(&lt;SPAN style="font-size: 13.3333px;"&gt;Condition&lt;SPAN style="font-size: 13.3333px;"&gt;Field&lt;/SPAN&gt;='True', sum(&lt;SPAN style="font-size: 13.3333px;"&gt;Measure1), max(&lt;SPAN style="font-size: 13.3333px;"&gt;Measure1&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Expectation is calculation per each row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could the first scenario work faster and calculates 'IF' only once per chart?&lt;/P&gt;&lt;P&gt;Or will it be calculated per each row anyway?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135027#M1248401</guid>
      <dc:creator>maxsheva</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: IF calculation difference</title>
      <link>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135028#M1248405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first scenario will calculate only when there is a selection in any field.&lt;/P&gt;&lt;P&gt;The second scenario is as per expectation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For faster calculation, you can use Set Analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 11:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135028#M1248405</guid>
      <dc:creator>ujjwalraja</dc:creator>
      <dc:date>2018-07-12T11:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: IF calculation difference</title>
      <link>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135029#M1248409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply Ujjwal but what do you mean "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;will calculate only when there is a selection in any field"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In scenario1 when ConditionField meet 'True' value will it start to calculate per each row?&lt;/P&gt;&lt;P&gt;I suppose formula is checking by row in both cases doesn't matter what is selection is in &lt;SPAN style="font-size: 13.3333px;"&gt;ConditionField&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; QlikView Performance Leaders could you help with this formula &lt;/SPAN&gt;behavior&lt;SPAN style="font-size: 10pt;"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;, &lt;A href="https://community.qlik.com/qlik-users/3147"&gt;bbt&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/3540"&gt;pcammaert&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;rwunderlich&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/4118"&gt;colin_albert&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you for your time!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 12:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135029#M1248409</guid>
      <dc:creator>maxsheva</dc:creator>
      <dc:date>2018-07-12T12:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: IF calculation difference</title>
      <link>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135030#M1248412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does #1 actually return something?&amp;nbsp; It looks invalid.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 22:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135030#M1248412</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-07-19T22:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: IF calculation difference</title>
      <link>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135031#M1248415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;In case when &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ConditionField equals 'True' the expression returns sum(Measure1)&lt;/SPAN&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; font-size: 13px;"&gt;It is working on practice.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 12:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135031#M1248415</guid>
      <dc:creator>maxsheva</dc:creator>
      <dc:date>2018-07-20T12:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: IF calculation difference</title>
      <link>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135032#M1248417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; think your example may be missing quotes around 'sum' and 'max'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, #1 should be faster.&amp;nbsp; it will still calculate per row, but it will only calculate one aggregation -- sum or max. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#2 will always calculate both sum and max but only display one result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 16:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-calculation-difference/m-p/135032#M1248417</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-07-20T16:10:38Z</dc:date>
    </item>
  </channel>
</rss>

