<?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 Simple expression to increase performance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-expression-to-increase-performance/m-p/1121193#M891285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are having around 100 different expressions similar to type 1 mentioned below. Having "IF" condition is decreasing performance. Can you please suggest some simple expression to get requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have two buttons, Next Quarter and Next Four Quarters. Based on user click it should calculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking ways to further reduce Type 2 to single expression something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sum({&amp;lt;QuarterYear={$(vNextQuarter)} + (&lt;SPAN style="font-size: 13.3333px;"&gt;vNext4QuartersButton * &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{$(vNextQuarter1), $(vNextQuarter2), $(vNextQuarter3)})&lt;/SPAN&gt;&amp;gt;} Spend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;====================================================================================================&lt;/P&gt;&lt;P&gt;Type:1&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if($(vNext4QuartersButton)=0,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Sum({&amp;lt;QuarterYear={$(vNextQuarter)}&amp;gt;} Spend)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Sum({&amp;lt;QuarterYear={$(vNextQuarter), $(vNextQuarter1), $(vNextQuarter2), $(vNextQuarter3)}&amp;gt;} Spend) )&lt;/P&gt;&lt;P&gt;====================================================================================================&lt;/P&gt;&lt;P&gt;Type:2&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;QuarterYear={$(vNextQuarter)}&amp;gt;} Spend)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;+&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(vNext4QuartersButton * Sum({&amp;lt;QuarterYear={$(vNextQuarter1), $(vNextQuarter2), $(vNextQuarter3)}&amp;gt;} Spend))&lt;/P&gt;&lt;P&gt;====================================================================================================&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Simple expression to increase performance</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-expression-to-increase-performance/m-p/1121193#M891285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are having around 100 different expressions similar to type 1 mentioned below. Having "IF" condition is decreasing performance. Can you please suggest some simple expression to get requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have two buttons, Next Quarter and Next Four Quarters. Based on user click it should calculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking ways to further reduce Type 2 to single expression something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sum({&amp;lt;QuarterYear={$(vNextQuarter)} + (&lt;SPAN style="font-size: 13.3333px;"&gt;vNext4QuartersButton * &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{$(vNextQuarter1), $(vNextQuarter2), $(vNextQuarter3)})&lt;/SPAN&gt;&amp;gt;} Spend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;====================================================================================================&lt;/P&gt;&lt;P&gt;Type:1&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if($(vNext4QuartersButton)=0,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Sum({&amp;lt;QuarterYear={$(vNextQuarter)}&amp;gt;} Spend)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Sum({&amp;lt;QuarterYear={$(vNextQuarter), $(vNextQuarter1), $(vNextQuarter2), $(vNextQuarter3)}&amp;gt;} Spend) )&lt;/P&gt;&lt;P&gt;====================================================================================================&lt;/P&gt;&lt;P&gt;Type:2&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;QuarterYear={$(vNextQuarter)}&amp;gt;} Spend)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;+&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(vNext4QuartersButton * Sum({&amp;lt;QuarterYear={$(vNextQuarter1), $(vNextQuarter2), $(vNextQuarter3)}&amp;gt;} Spend))&lt;/P&gt;&lt;P&gt;====================================================================================================&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-expression-to-increase-performance/m-p/1121193#M891285</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple expression to increase performance</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-expression-to-increase-performance/m-p/1121194#M891286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the pick &amp;amp; match functions can seriously improve functionallity over IF statements, take a look at those (search on here)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 14:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-expression-to-increase-performance/m-p/1121194#M891286</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-08-18T14:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Simple expression to increase performance</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-expression-to-increase-performance/m-p/1121195#M891287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You. is there any way to write in single expressions like below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;QuarterYear={$(vNextQuarter)} + (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vNext4QuartersButton * &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;{$(vNextQuarter1), $(vNextQuarter2), $(vNextQuarter3)})&lt;/SPAN&gt;&amp;gt;} Spend)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-expression-to-increase-performance/m-p/1121195#M891287</guid>
      <dc:creator />
      <dc:date>2016-08-30T10:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Simple expression to increase performance</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-expression-to-increase-performance/m-p/1121196#M891288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a variable and passing the quarters flag to it when button is clicked. I did some performance analysis and found this is the only better solution without using IF condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;QFlag = {$(vTP)}&amp;gt;} [Benchmark Savings])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information about creating the Flag, refer below document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-18103"&gt;Fiscal Calendar Flag&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai Krishna,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 10:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-expression-to-increase-performance/m-p/1121196#M891288</guid>
      <dc:creator />
      <dc:date>2016-11-10T10:27:13Z</dc:date>
    </item>
  </channel>
</rss>

