<?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: Removing Nested If in script. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removing-Nested-If-in-script/m-p/1294930#M404354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am explaining about one part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create one variable for this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GetSelectedCount(AREA)&amp;lt;&amp;gt;1 and GetSelectedCount(Entity)&amp;lt;&amp;gt;1 and GetSelectedCount(Company)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(Region_Prototype)&amp;lt;&amp;gt;1 and GetSelectedCount([Sub Region])&amp;lt;&amp;gt;1 and&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and GetSelectedCount(CustNo)&amp;lt;&amp;gt;1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And then Use Same variable into Qlikview in variable overview (Ctrl + Alt + V)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1) create 10 variables for each and every statement&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2) Then use Pick Match condition like, I am 100% sure here, If condition kills the performance rather than Pick &amp;amp; Match combination&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Pick(Match($(Var1), $(Var2), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(Var3), $(Var4), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(Var5), $(Var6), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(Var7), $(Var8), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(Var9), $(Var10)), 'Area', 'Entity', 'Company', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Region_Prototype&lt;/SPAN&gt;', 'Sub Region', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'CustNo', 'Entity', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Region_Prototype&lt;/SPAN&gt;', 'Sub Region', 'CustNo')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2017 09:06:33 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-06-01T09:06:33Z</dc:date>
    <item>
      <title>Removing Nested If in script.</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Nested-If-in-script/m-p/1294929#M404353</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;Can you please suggest , how to remove nested if else in below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(AREA)&amp;lt;&amp;gt;1 and GetSelectedCount(Entity)&amp;lt;&amp;gt;1 and GetSelectedCount(Company)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(Region_Prototype)&amp;lt;&amp;gt;1 and GetSelectedCount([Sub Region])&amp;lt;&amp;gt;1 and &lt;/P&gt;&lt;P&gt;GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and GetSelectedCount(CustNo)&amp;lt;&amp;gt;1,'AREA',&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;P&gt;(GetSelectedCount(AREA)&amp;gt;0 and GetSelectedCount(Entity)&amp;lt;&amp;gt;1 and GetSelectedCount(Company)&amp;lt;&amp;gt;1&amp;nbsp; &lt;/P&gt;&lt;P&gt;and GetSelectedCount(Region_Prototype)&amp;lt;&amp;gt;1 and GetSelectedCount([Sub Region])&amp;lt;&amp;gt;1 and &lt;/P&gt;&lt;P&gt;GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and &lt;/P&gt;&lt;P&gt;GetSelectedCount(CustNo)&amp;lt;&amp;gt;1,'Entity',&lt;/P&gt;&lt;P&gt;If(&lt;/P&gt;&lt;P&gt;GetSelectedCount(Entity)&amp;gt;0 and GetSelectedCount(Company)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(Region_Prototype)&amp;lt;&amp;gt;1 and GetSelectedCount([Sub Region])&amp;lt;&amp;gt;1 and&lt;/P&gt;&lt;P&gt;GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and GetSelectedCount(CustNo)&amp;lt;&amp;gt;1,'Company',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(Company)&amp;gt;0&amp;nbsp; and GetSelectedCount(Region_Prototype)&amp;lt;&amp;gt;1 and &lt;/P&gt;&lt;P&gt;GetSelectedCount([Sub Region])&amp;lt;&amp;gt;1 and GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and GetSelectedCount(CustNo)&amp;lt;&amp;gt;1,'Region_Prototype',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(Region_Prototype)&amp;gt;0 and GetSelectedCount([Sub Region])&amp;lt;&amp;gt;1 and GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and&lt;/P&gt;&lt;P&gt; GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and GetSelectedCount(CustNo)&amp;lt;&amp;gt;1,'[Sub Region]',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetSelectedCount([Sub Region])&amp;gt;0 and GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and &lt;/P&gt;&lt;P&gt;GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and GetSelectedCount(CustNo)&amp;lt;&amp;gt;1,'BranchOfficeDesc',&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(BranchOfficeDesc)&amp;gt;0,'CustNo',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(Entity)&amp;lt;&amp;gt;1 and GetSelectedCount(Company)&amp;lt;&amp;gt;1&amp;nbsp; &lt;/P&gt;&lt;P&gt;and GetSelectedCount(Region_Prototype)&amp;lt;&amp;gt;1 and GetSelectedCount([Sub Region])&amp;lt;&amp;gt;1 and &lt;/P&gt;&lt;P&gt;GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and &lt;/P&gt;&lt;P&gt;GetSelectedCount(CustNo)&amp;lt;&amp;gt;1,'Entity',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(Region_Prototype)&amp;lt;&amp;gt;1 and &lt;/P&gt;&lt;P&gt;GetSelectedCount([Sub Region])&amp;lt;&amp;gt;1 and GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and GetSelectedCount(CustNo)&amp;lt;&amp;gt;1,'Region_Prototype',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([Sub Region])&amp;lt;&amp;gt;1 and GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and&lt;/P&gt;&lt;P&gt;GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and GetSelectedCount(CustNo)&amp;lt;&amp;gt;1,'[Sub Region]',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and &lt;/P&gt;&lt;P&gt;GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and GetSelectedCount(CustNo)&amp;lt;&amp;gt;1,'BranchOfficeDesc','CustNo'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 08:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Nested-If-in-script/m-p/1294929#M404353</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2017-06-01T08:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Nested If in script.</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Nested-If-in-script/m-p/1294930#M404354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am explaining about one part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create one variable for this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GetSelectedCount(AREA)&amp;lt;&amp;gt;1 and GetSelectedCount(Entity)&amp;lt;&amp;gt;1 and GetSelectedCount(Company)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(Region_Prototype)&amp;lt;&amp;gt;1 and GetSelectedCount([Sub Region])&amp;lt;&amp;gt;1 and&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GetSelectedCount(BranchOfficeDesc)&amp;lt;&amp;gt;1&amp;nbsp; and GetSelectedCount(LOBDescription)&amp;lt;&amp;gt;1 and GetSelectedCount(CustNo)&amp;lt;&amp;gt;1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And then Use Same variable into Qlikview in variable overview (Ctrl + Alt + V)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1) create 10 variables for each and every statement&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2) Then use Pick Match condition like, I am 100% sure here, If condition kills the performance rather than Pick &amp;amp; Match combination&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Pick(Match($(Var1), $(Var2), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(Var3), $(Var4), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(Var5), $(Var6), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(Var7), $(Var8), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(Var9), $(Var10)), 'Area', 'Entity', 'Company', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Region_Prototype&lt;/SPAN&gt;', 'Sub Region', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'CustNo', 'Entity', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Region_Prototype&lt;/SPAN&gt;', 'Sub Region', 'CustNo')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Nested-If-in-script/m-p/1294930#M404354</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-01T09:06:33Z</dc:date>
    </item>
  </channel>
</rss>

