<?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: How to Write a Simple IF Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/1706597#M451503</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create the following dimension and is not working&lt;/P&gt;&lt;P&gt;=If(count( distinct if( INSTANCIA &amp;gt; 0 , [LastModified.autoCalendar.Date]))&amp;gt;4,'Yes','No')&lt;/P&gt;&lt;P&gt;any suggestion?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2020 15:02:14 GMT</pubDate>
    <dc:creator>joancasellasvega</dc:creator>
    <dc:date>2020-05-29T15:02:14Z</dc:date>
    <item>
      <title>How to Write a Simple IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/228659#M80665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to write a simple IF statement that says if the calculated value is negative, then display the value as 0. Otherwise complete the expression. In Excel, the if statement would look something like this:&lt;/P&gt;&lt;P&gt;if A&amp;gt;B,A-B,0&lt;/P&gt;&lt;P&gt;How would I create this in QlikView?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 18:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/228659#M80665</guid>
      <dc:creator />
      <dc:date>2011-04-25T18:03:59Z</dc:date>
    </item>
    <item>
      <title>How to Write a Simple IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/228660#M80666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the help:&lt;/P&gt;&lt;H4&gt;&lt;A id="kanchor407" name="kanchor407"&gt;&lt;/A&gt;&lt;A id="if" name="if"&gt;&lt;/A&gt;if( condition , then , else )&lt;/H4&gt;&lt;P&gt;The three parameters condition, then and else are all expressions. The first one, condition, is interpreted logically. The two other ones, then and else, can be of any type. They should preferably be of the same type. If condition is true, the function returns the value of the expression then. If condition is false, the function returns the value of the expression else.&lt;/P&gt;&lt;H2&gt;Example:&lt;/H2&gt;&lt;P style="margin-left:40px;"&gt;if( Amount&amp;gt;= 0, 'OK', 'Alarm' )&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;In your case&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;=if( Amount&amp;gt;= 0, Amount, 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 18:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/228660#M80666</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-25T18:22:35Z</dc:date>
    </item>
    <item>
      <title>How to Write a Simple IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/228661#M80667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, to avoid the if(), you can use range functions like rangemax&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;rangemax(A-B,0)&lt;/P&gt;&lt;P&gt;So, if A-B &amp;gt; 0, the result will be (A-B), else if the result is negative, the result will be 0&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 19:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/228661#M80667</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-04-25T19:01:45Z</dc:date>
    </item>
    <item>
      <title>How to Write a Simple IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/228662#M80668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These answers were each helpful in different situations. Thank you SO much for taking the time to point me in the right direction. I'll be bookmarking this thread for sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 21:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/228662#M80668</guid>
      <dc:creator />
      <dc:date>2011-04-25T21:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Write a Simple IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/1706597#M451503</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create the following dimension and is not working&lt;/P&gt;&lt;P&gt;=If(count( distinct if( INSTANCIA &amp;gt; 0 , [LastModified.autoCalendar.Date]))&amp;gt;4,'Yes','No')&lt;/P&gt;&lt;P&gt;any suggestion?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 15:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/1706597#M451503</guid>
      <dc:creator>joancasellasvega</dc:creator>
      <dc:date>2020-05-29T15:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Write a Simple IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/1926856#M1218818</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need help i need to write if condition,&lt;/P&gt;
&lt;P&gt;I want to display attribute values where the attribute name = target_skill_MI.&lt;/P&gt;
&lt;P&gt;Can anyone help me with the exception.&lt;/P&gt;
&lt;P&gt;where ever the target_skill_MI is there i want to replace with attribute values remaining data should not change only this&amp;nbsp;target_skill_MI need to change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 12:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Write-a-Simple-IF-Statement/m-p/1926856#M1218818</guid>
      <dc:creator>VamsiKrishna05</dc:creator>
      <dc:date>2022-05-05T12:25:10Z</dc:date>
    </item>
  </channel>
</rss>

