<?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 Who to write expression in optimize way in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Who-to-write-expression-in-optimize-way/m-p/1818254#M1213213</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have written a expression with plenty of IF conditions in it and&amp;nbsp; it is doing the purpose,&amp;nbsp; &amp;nbsp;but when I look it I personal feel that it can be written in more optimize way&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly suggest me how can I write the below expression in more optimize way instead of IF conditions&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(SubStringCount([Measure for Filter],'ABSRPT'),&lt;BR /&gt;if('$(vComparison)'='8', sum([Impact]),&lt;BR /&gt;if(vComparison=1,&lt;BR /&gt;if(Num(sum([ABSRPT]), '#,##0.##', '.' , ',' )=Num($(vThresholdValue), '#,##0.##', '.' , ',' ),sum([Impact])),&lt;/P&gt;&lt;P&gt;if(vComparison=2,&lt;BR /&gt;if(sum([ABSRPT])&amp;lt;&amp;gt;$(vThresholdValue),sum([Impact])),&lt;/P&gt;&lt;P&gt;if(vComparison=3,&lt;BR /&gt;if(sum([ABSRPT])&amp;gt;$(vThresholdValue),sum([Impact])),&lt;/P&gt;&lt;P&gt;if(vComparison=4,&lt;BR /&gt;if(sum([ABSRPT])&amp;gt;=$(vThresholdValue),sum([Impact])),&lt;/P&gt;&lt;P&gt;if(vComparison=5,&lt;BR /&gt;if(sum([ABSRPT])&amp;lt;$(vThresholdValue),sum([Impact])),&lt;/P&gt;&lt;P&gt;if(vComparison=6,&lt;BR /&gt;if(sum([ABSRPT])&amp;lt;=$(vThresholdValue),sum([Impact]))&lt;/P&gt;&lt;P&gt;)))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: &lt;STRONG&gt;Copying only a piece of lines from my 143 line expression hoping that if i fix this i can fix the rest tooo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jun 2021 09:30:42 GMT</pubDate>
    <dc:creator>kunkumnaveen</dc:creator>
    <dc:date>2021-06-28T09:30:42Z</dc:date>
    <item>
      <title>Who to write expression in optimize way</title>
      <link>https://community.qlik.com/t5/QlikView/Who-to-write-expression-in-optimize-way/m-p/1818254#M1213213</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have written a expression with plenty of IF conditions in it and&amp;nbsp; it is doing the purpose,&amp;nbsp; &amp;nbsp;but when I look it I personal feel that it can be written in more optimize way&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly suggest me how can I write the below expression in more optimize way instead of IF conditions&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(SubStringCount([Measure for Filter],'ABSRPT'),&lt;BR /&gt;if('$(vComparison)'='8', sum([Impact]),&lt;BR /&gt;if(vComparison=1,&lt;BR /&gt;if(Num(sum([ABSRPT]), '#,##0.##', '.' , ',' )=Num($(vThresholdValue), '#,##0.##', '.' , ',' ),sum([Impact])),&lt;/P&gt;&lt;P&gt;if(vComparison=2,&lt;BR /&gt;if(sum([ABSRPT])&amp;lt;&amp;gt;$(vThresholdValue),sum([Impact])),&lt;/P&gt;&lt;P&gt;if(vComparison=3,&lt;BR /&gt;if(sum([ABSRPT])&amp;gt;$(vThresholdValue),sum([Impact])),&lt;/P&gt;&lt;P&gt;if(vComparison=4,&lt;BR /&gt;if(sum([ABSRPT])&amp;gt;=$(vThresholdValue),sum([Impact])),&lt;/P&gt;&lt;P&gt;if(vComparison=5,&lt;BR /&gt;if(sum([ABSRPT])&amp;lt;$(vThresholdValue),sum([Impact])),&lt;/P&gt;&lt;P&gt;if(vComparison=6,&lt;BR /&gt;if(sum([ABSRPT])&amp;lt;=$(vThresholdValue),sum([Impact]))&lt;/P&gt;&lt;P&gt;)))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: &lt;STRONG&gt;Copying only a piece of lines from my 143 line expression hoping that if i fix this i can fix the rest tooo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 09:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Who-to-write-expression-in-optimize-way/m-p/1818254#M1213213</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-06-28T09:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Who to write expression in optimize way</title>
      <link>https://community.qlik.com/t5/QlikView/Who-to-write-expression-in-optimize-way/m-p/1818285#M1213219</link>
      <description>&lt;P&gt;Any suggestion Plz how can I write the above expression in a optimize way I mean with less IF conditions&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 11:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Who-to-write-expression-in-optimize-way/m-p/1818285#M1213219</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-06-28T11:13:03Z</dc:date>
    </item>
  </channel>
</rss>

