<?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 else condition in variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-else-condition-in-variable/m-p/1364028#M417690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can open the variable overview by pressing CTRL+ALT+V and add a new variable there.&lt;/P&gt;&lt;P&gt;Choose a name, and use that wherever you'd like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2017 07:15:26 GMT</pubDate>
    <dc:creator>RonaldDoes</dc:creator>
    <dc:date>2017-07-25T07:15:26Z</dc:date>
    <item>
      <title>If else condition in variable</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-in-variable/m-p/1364027#M417689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Distribution={1},[Task Category]={"ERP","Global versions"},&lt;/P&gt;&lt;P&gt; [Task Status]={'Completed', 'Warning'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if([Task Name]='AP Explorer_SAN',1,if([Task Name]='GM and OP analysis light',1,if([Task Name]='FMG Explorer_SAN',1,if([Task Name]='Reload of Quotation Hit Rate',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Reload of Sales Variance',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Reload of Service lead time',1,if([Task Name]='Reference List',1,if([Task Name]='Reload of GL line items',1,if([Task Name]='SO Condition Type',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Inventory report_SAN',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Reload of Freight report',1,if([Task Name]='Customer Statistics Finland',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Macgregor Migrated Project Life Explorer',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Material Delivery Status',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='CashFlow_SAN',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Production Order Dashboard',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Production Order',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Purchase Orders new Report&amp;nbsp; Reload',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Reload Equipment Lead Time',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Customs reporting Malaysia',1,&lt;/P&gt;&lt;P&gt;if([Task Name]='Parts - Sales Dashboard_SAN',1,&lt;/P&gt;&lt;P&gt;vReloadDailyCount)))))))))))))))))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wherein in if else condition i have task name,&lt;STRONG&gt;1&lt;/STRONG&gt; is the reload frequency(which is once a day for the mentioned apps) &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;vReloadDailyCount is 2(twice a day for other apps)&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: 13.3333px;"&gt;now this if else part is used in many places,so i want to put this if condition part in variable or some other way so that i do@nt have to repeat this part everywhere.&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: 13.3333px;"&gt;How am i supposed to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasad Mayekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 07:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-in-variable/m-p/1364027#M417689</guid>
      <dc:creator>prasadcm</dc:creator>
      <dc:date>2017-07-25T07:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: If else condition in variable</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-in-variable/m-p/1364028#M417690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can open the variable overview by pressing CTRL+ALT+V and add a new variable there.&lt;/P&gt;&lt;P&gt;Choose a name, and use that wherever you'd like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 07:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-in-variable/m-p/1364028#M417690</guid>
      <dc:creator>RonaldDoes</dc:creator>
      <dc:date>2017-07-25T07:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: If else condition in variable</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-in-variable/m-p/1364029#M417691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather create in script which called If ...Else.... Statement and the give it as 1 , 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, Use set analysis something like below&lt;/P&gt;&lt;P&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;=sum({&amp;lt;Distribution={1},[Task Category]={"ERP","Global versions"}, FlagName = {1},&lt;/STRONG&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;[Task Status]={'Completed', 'Warning'}&amp;gt;} &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;vReloadDailyCount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 07:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-in-variable/m-p/1364029#M417691</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-07-25T07:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: If else condition in variable</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-in-variable/m-p/1364030#M417692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Prasas,&lt;/P&gt;&lt;P&gt;The suggestions you've been given are good ones and my suggestion is that your expression may be easier to maintain if written as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Distribution={1},[Task Category]={"ERP","Global versions"},&lt;/P&gt;&lt;P&gt;[Task Status]={'Completed', 'Warning'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Match(&lt;/P&gt;&lt;P&gt;[Task Name],&lt;/P&gt;&lt;P&gt;'AP Explorer_SAN',&lt;/P&gt;&lt;P&gt;'GM and OP analysis light',&lt;/P&gt;&lt;P&gt;'FMG Explorer_SAN',&lt;/P&gt;&lt;P&gt;'Reload of Quotation Hit Rate',&lt;/P&gt;&lt;P&gt;'Reload of Sales Variance',&lt;/P&gt;&lt;P&gt;'Reload of Service lead time',&lt;/P&gt;&lt;P&gt;'Reference List',&lt;/P&gt;&lt;P&gt;'Reload of GL line items',&lt;/P&gt;&lt;P&gt;'SO Condition Type',&lt;/P&gt;&lt;P&gt;'Inventory report_SAN',&lt;/P&gt;&lt;P&gt;'Reload of Freight report',&lt;/P&gt;&lt;P&gt;'Customer Statistics Finland',&lt;/P&gt;&lt;P&gt;'Macgregor Migrated Project Life Explorer',&lt;/P&gt;&lt;P&gt;'Material Delivery Status',&lt;/P&gt;&lt;P&gt;'CashFlow_SAN',&lt;/P&gt;&lt;P&gt;'Production Order Dashboard',&lt;/P&gt;&lt;P&gt;'Production Order',&lt;/P&gt;&lt;P&gt;'Purchase Orders new Report&amp;nbsp; Reload',&lt;/P&gt;&lt;P&gt;'Reload Equipment Lead Time',&lt;/P&gt;&lt;P&gt;'Customs reporting Malaysia',&lt;/P&gt;&lt;P&gt;'Parts - Sales Dashboard_SAN')&lt;/P&gt;&lt;P&gt;,1,2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've replaced $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vReloadDailyCount&lt;/SPAN&gt;) with 2.&lt;/P&gt;&lt;P&gt;Not so many brackets to keep track of. The if(match(...)) part of this expression can be used in the script as well as the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 08:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-in-variable/m-p/1364030#M417692</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-25T08:11:24Z</dc:date>
    </item>
  </channel>
</rss>

