<?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: Facing issue while creating if condition in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Facing-issue-while-creating-if-condition-in-script/m-p/1604706#M738621</link>
    <description>&lt;P&gt;I believe you are going to need to attach a sample app on this one in order to get further help, if you can do that, I suspect someone may be able to reply and help you out at that point.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2019 15:06:48 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-07-22T15:06:48Z</dc:date>
    <item>
      <title>Facing issue while creating if condition in script</title>
      <link>https://community.qlik.com/t5/QlikView/Facing-issue-while-creating-if-condition-in-script/m-p/1594131#M738620</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I have few columns like status, Id, detailed_description, Comments. Based on this columns i need to define new column like NULL,&amp;nbsp; ID was submitted with error, not repeated, Duplicate ID, Working as expected , Option not to fix, Rejected and Invalid_Rejected(8 values). while i am creating the condition i am not getting expected output.I am getting missing value in new column. I am giving condition below. Can any one please help me on this.&lt;/P&gt;&lt;P&gt;Points:&lt;/P&gt;&lt;P&gt;1)if status is rejected and comments is blank or Detailed_Description is blank then Null&lt;BR /&gt;2)if status is rejected and comments and detailed_description has some keyword we need to search with those keywords and create a values as ID was submitted with error, not repeated, Duplicate ID, Working as expected and Option not to fix.&lt;BR /&gt;3)if not find any keyword from above condition then we need to define another condition by using detailed_description is rejected or comments is rejected then rejected else invalid_rejected&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Based on above points i have written the condition:&lt;/P&gt;&lt;P&gt;if(status='Rejected',&lt;BR /&gt;if(wildmatch(Detailed_Description,'*Id was submitted with error*','*Invalid*'),&lt;BR /&gt;if(wildmatch(comments,'*Id was submitted with error*','*Invalid*'),'ID was submitted with error'),&lt;BR /&gt;if(wildmatch(Detailed_Description,'*Cannot be created*','*Cannot Repeated*'),&lt;BR /&gt;if(wildmatch(comments,'*Cannot be created*','*Cannot Repeated*'),'Not repeated'),&lt;BR /&gt;if(wildmatch(Detailed_Description,'*Same*','*Similar*'),&lt;BR /&gt;if(wildmatch(comments,'*Same*','*Similar*'),'Duplicate ID'),&lt;BR /&gt;if(wildmatch(Detailed_Description,'*Working as expected*','*working as story*'),&lt;BR /&gt;if(wildmatch(comments,'*Working as expected*','*working as story*'),'Working as expected'),&lt;BR /&gt;if(wildmatch(Detailed_Description,'*Work around*','*accept*'),&lt;BR /&gt;if(wildmatch(comments,'*Work around*','*accept*'),'Option not to fix')&lt;BR /&gt;))))),&lt;BR /&gt;if(status='Rejected',&lt;BR /&gt;if(not(wildmatch(Detailed_Description,'*Id was submitted with error*','*Invalid*')) or&lt;BR /&gt;not(comments,'*Id was submitted with error*','*Invalid*')),&lt;BR /&gt;if(not(wildmatch(Detailed_Description,'*Cannot be created*','*Cannot Repeated*')) or&lt;BR /&gt;not(comments,'*Cannot be created*','*Cannot Repeated*')),&lt;BR /&gt;if(not(wildmatch(Detailed_Description,'*Same*','*Similar*')) or&lt;BR /&gt;not(wildmatch(comments,'*Same*','*Similar*')),&lt;BR /&gt;if(not(wildmatch(Detailed_Description,'*Working as expected*','*working as story*')) or&lt;BR /&gt;not(wildmatch(comments,'*Working as expected*','*working as story*')),&lt;BR /&gt;if(not(wildmatch(Detailed_Description,'*Work around*','*accept*')) or&lt;BR /&gt;not(wildmatch(comments,'*Work around*','*accept*')),&lt;BR /&gt;if(wildmatch(comments,'*Rejected*','*Re jct*') or wildmatch(Detailed_Description,'*Rejected*','*Re jct*'),'Rejected', 'Invalid_Rejected'&lt;BR /&gt;)))))&lt;BR /&gt;))) as Reason&lt;/P&gt;&lt;P&gt;Can any one help me on this above condition.Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Facing-issue-while-creating-if-condition-in-script/m-p/1594131#M738620</guid>
      <dc:creator>shabarish0587</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue while creating if condition in script</title>
      <link>https://community.qlik.com/t5/QlikView/Facing-issue-while-creating-if-condition-in-script/m-p/1604706#M738621</link>
      <description>&lt;P&gt;I believe you are going to need to attach a sample app on this one in order to get further help, if you can do that, I suspect someone may be able to reply and help you out at that point.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 15:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Facing-issue-while-creating-if-condition-in-script/m-p/1604706#M738621</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-07-22T15:06:48Z</dc:date>
    </item>
  </channel>
</rss>

