<?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 How to Optimize and remove if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Optimize-and-remove-if-statement/m-p/564618#M210722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if(WildMatch(UrgencyID,'*CRITICAL -*') and ([Close Date]-[Open Date])=0 ,'Under SLA',&lt;/P&gt;&lt;P&gt;if(WildMatch(UrgencyID,'*HIGH*') and ([Close Date]-[Open Date])&amp;gt;=1,'SLA LOW Priority',&lt;/P&gt;&lt;P&gt;if(WildMatch(UrgencyID,'*MEDIUM*') and ([Close Date]-[Open Date])&amp;gt;=3 ,'SLA MEDIUM PRIORITY',&lt;/P&gt;&lt;P&gt;if(WildMatch(UrgencyID,'*LOW*') and ([Close Date]-[Open Date])&amp;gt;=5 ,'SLA HIGH PRIORITY'&lt;/P&gt;&lt;P&gt;'SLA MISSED'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;in above script i want to remove if and optimize using other mean (eg. set analysis).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: rahul b&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2014 10:12:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-24T10:12:23Z</dc:date>
    <item>
      <title>How to Optimize and remove if statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Optimize-and-remove-if-statement/m-p/564618#M210722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if(WildMatch(UrgencyID,'*CRITICAL -*') and ([Close Date]-[Open Date])=0 ,'Under SLA',&lt;/P&gt;&lt;P&gt;if(WildMatch(UrgencyID,'*HIGH*') and ([Close Date]-[Open Date])&amp;gt;=1,'SLA LOW Priority',&lt;/P&gt;&lt;P&gt;if(WildMatch(UrgencyID,'*MEDIUM*') and ([Close Date]-[Open Date])&amp;gt;=3 ,'SLA MEDIUM PRIORITY',&lt;/P&gt;&lt;P&gt;if(WildMatch(UrgencyID,'*LOW*') and ([Close Date]-[Open Date])&amp;gt;=5 ,'SLA HIGH PRIORITY'&lt;/P&gt;&lt;P&gt;'SLA MISSED'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;in above script i want to remove if and optimize using other mean (eg. set analysis).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: rahul b&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 10:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Optimize-and-remove-if-statement/m-p/564618#M210722</guid>
      <dc:creator />
      <dc:date>2014-01-24T10:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Optimize and remove if statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Optimize-and-remove-if-statement/m-p/564619#M210723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rahul,&lt;/P&gt;&lt;P&gt;one thing you can do is that you can calculate these condition in your script as flag &lt;/P&gt;&lt;P&gt;For example &lt;/P&gt;&lt;P&gt;You can calculate&amp;nbsp; (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Close Date]-[Open Date]) in script and name it as DateDiff.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in UI you can use this Flag in your expression if possible you can go in the same way for the other caonditions too&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 10:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Optimize-and-remove-if-statement/m-p/564619#M210723</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-01-24T10:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Optimize and remove if statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Optimize-and-remove-if-statement/m-p/564620#M210724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 10:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Optimize-and-remove-if-statement/m-p/564620#M210724</guid>
      <dc:creator />
      <dc:date>2014-03-18T10:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Optimize and remove if statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Optimize-and-remove-if-statement/m-p/564621#M210725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;best optimization is almost always put the logic at the script level&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 10:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Optimize-and-remove-if-statement/m-p/564621#M210725</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-18T10:26:17Z</dc:date>
    </item>
  </channel>
</rss>

