<?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 If Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99827#M751245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having trouble in finding Correct If else statements.&amp;nbsp; My Logic is if M-TYPE&amp;nbsp; is R or RE and M Status is populated then that column will be Closed Else Open . That means&amp;nbsp; If M-Status has no value or Null the field should be Open. I have tried following script but looks like some error. Please suggest.&lt;/P&gt;&lt;P&gt;if (M_Type = 'R') OR IF (MOR_Type = 'RE')and Len(M_STATUS)&amp;gt;0, ' Closed' Else 'Open',&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>niharika1234</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99827#M751245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having trouble in finding Correct If else statements.&amp;nbsp; My Logic is if M-TYPE&amp;nbsp; is R or RE and M Status is populated then that column will be Closed Else Open . That means&amp;nbsp; If M-Status has no value or Null the field should be Open. I have tried following script but looks like some error. Please suggest.&lt;/P&gt;&lt;P&gt;if (M_Type = 'R') OR IF (MOR_Type = 'RE')and Len(M_STATUS)&amp;gt;0, ' Closed' Else 'Open',&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99827#M751245</guid>
      <dc:creator>niharika1234</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99828#M751246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Match(M_Type, 'R', 'RE') and Len(Trim(M_STATUS)) &amp;gt; 0, 'Closed', 'Open')&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 17:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99828#M751246</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-01T17:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99829#M751247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 17:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99829#M751247</guid>
      <dc:creator>niharika1234</dc:creator>
      <dc:date>2018-11-01T17:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99830#M751248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;I tried your suggestion and part of results are incorrect . I believe the column has many - -&amp;nbsp; and that is causing Problem. The Logic is when when Incident type is R or RE and Mor-Category is populated, KPI should be closed. All other are Open.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217341_Untitled.png" style="height: 339px; width: 620px;" /&gt;If(Match(M_Type, 'R', 'RE') and Len(Trim(M_STATUS)) &amp;gt; 0, 'Closed', 'Open')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Niha&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 19:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99830#M751248</guid>
      <dc:creator>niharika1234</dc:creator>
      <dc:date>2018-11-01T19:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99831#M751249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;I tried your suggestion but Part of answer is incorrect. I&lt;IMG alt="Untitled.png" class="jive-image image-1" height="268" src="https://community.qlik.com/legacyfs/online/217342_Untitled.png" style="height: 267.443px; width: 490px;" width="490" /&gt;&lt;/P&gt;&lt;P&gt;believe there are lot of _ that' s why it is . Logic is MOR_CATEGORY is Populated and Incident Type is R or RE , Closed and all other are Open. Please suggest.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Niha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 20:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99831#M751249</guid>
      <dc:creator>niharika1234</dc:creator>
      <dc:date>2018-11-01T20:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99832#M751250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your field is not called M_STATUS and M_Type? May be use the correct fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Match([Incident Type], 'R', 'RE') and Len(Trim(MOR_CATEGORY)) &amp;gt; 0, 'Closed', 'Open')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Match(Trim([Incident Type]), 'R', 'RE') and Len(Trim(MOR_CATEGORY)) &amp;gt; 0, 'Closed', 'Open')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 00:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/99832#M751250</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-02T00:20:12Z</dc:date>
    </item>
  </channel>
</rss>

