<?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 condition, checking number between two values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856650#M1011049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There shouldn't be single quotes around the numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 11:32:55 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-04-30T11:32:55Z</dc:date>
    <item>
      <title>IF condition, checking number between two values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856648#M1011047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite new in QlikView developing and I find a difficult to write an "If" statement. Now may statement is like&lt;/P&gt;&lt;P&gt; if(today() - "due_date" &amp;gt;='1' and today() - "due_date" &amp;lt;='30', "OpenAmount", '0') as [AR1-30]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it has error. Can anyone suggest me how to write this sentence? I would like to check if today - due_date is in interval between 1 and 30 and if belongs to this I would like assign OpenAmount as [AR1-30]. Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 10:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856648#M1011047</guid>
      <dc:creator />
      <dc:date>2015-04-30T10:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition, checking number between two values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856649#M1011048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((today() - "due_date")&amp;gt;='1' and (today() - "due_date")&amp;lt;='30', "OpenAmount", '0') as [AR1-30]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Maybe it is because of the parenthesys missing and the expression wasn't ok&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I hope it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856649#M1011048</guid>
      <dc:creator>jsanchezh</dc:creator>
      <dc:date>2015-04-30T11:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition, checking number between two values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856650#M1011049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There shouldn't be single quotes around the numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856650#M1011049</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-30T11:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition, checking number between two values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856651#M1011050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use Interval funciont:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(interval(today()- due_date, 'd')&amp;gt;=1 and interval(today()- due_date, 'd')&amp;lt;=30, OpenAmount, 0) as Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Elena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856651#M1011050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-30T11:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition, checking number between two values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856652#M1011051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I guess you try to find if a date is between day 1 and day 30, so try with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(day(today()) - due_date &amp;gt;=1 and day&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;(today()) - due_date &amp;lt;=30, OpenAmount, 0) as &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[AR1-30]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Let me Know if this help you&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 22:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-checking-number-between-two-values/m-p/856652#M1011051</guid>
      <dc:creator>ger_alegria</dc:creator>
      <dc:date>2015-07-09T22:05:03Z</dc:date>
    </item>
  </channel>
</rss>

