<?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: simple if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/simple-if-statement/m-p/1587855#M738488</link>
    <description>Apart from missing brackets, need convert the output as text as well&lt;BR /&gt;&lt;BR /&gt;if( (CONTROL_DATE - PAID_THRU_DATE)&amp;lt;0,'0',&lt;BR /&gt;IF( (CONTROL_DATE - PAID_THRU_DATE)&amp;gt;90,'90+',&lt;BR /&gt;Text(CONTROL_DATE - PAID_THRU_DATE)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;ZZ</description>
    <pubDate>Tue, 04 Jun 2019 04:25:40 GMT</pubDate>
    <dc:creator>zzyjordan</dc:creator>
    <dc:date>2019-06-04T04:25:40Z</dc:date>
    <item>
      <title>simple if statement</title>
      <link>https://community.qlik.com/t5/QlikView/simple-if-statement/m-p/1587806#M738486</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm new to qlikview.&lt;/P&gt;&lt;P&gt;I'm trying to write a simple if statement as part of the expression in a straight table. Keep getting errors:&lt;/P&gt;&lt;P&gt;I have two dates, which i subtracted from each other and the results are all over the place. I'm using if statement to normalize the results, to get values of 0,30,60,90,90+&lt;/P&gt;&lt;P&gt;if((CONTROL_DATE - PAID_THRU_DATE)&amp;lt;0,0,&lt;/P&gt;&lt;P&gt;IF(CONTROL_DATE - PAID_THRU_DATE)&amp;gt;90,'90+',&lt;/P&gt;&lt;P&gt;(CONTROL_DATE - PAID_THRU_DATE))&lt;/P&gt;&lt;P&gt;Qlikview only likes this part " if((CONTROL_DATE - PAID_THRU_DATE)" everything else is underscored in red.&lt;/P&gt;&lt;P&gt;Ideally wanted to create this normalized field as part of LOAD script but kept getting an error that field is not found.&lt;/P&gt;&lt;P&gt;I created a CONTROL_DATE field in the LOAD script and than tried using it in the same script and was getting the error that CONTROL_DATE does not exist.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-if-statement/m-p/1587806#M738486</guid>
      <dc:creator>shehovsovi</dc:creator>
      <dc:date>2024-11-16T03:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: simple if statement</title>
      <link>https://community.qlik.com/t5/QlikView/simple-if-statement/m-p/1587818#M738487</link>
      <description>Missing some brackets ....&lt;BR /&gt;if((CONTROL_DATE - PAID_THRU_DATE)&amp;lt;0,0,&lt;BR /&gt;  IF((CONTROL_DATE - PAID_THRU_DATE)&amp;gt;90,'90+',&lt;BR /&gt;     (CONTROL_DATE - PAID_THRU_DATE)))</description>
      <pubDate>Mon, 03 Jun 2019 22:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-if-statement/m-p/1587818#M738487</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-06-03T22:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: simple if statement</title>
      <link>https://community.qlik.com/t5/QlikView/simple-if-statement/m-p/1587855#M738488</link>
      <description>Apart from missing brackets, need convert the output as text as well&lt;BR /&gt;&lt;BR /&gt;if( (CONTROL_DATE - PAID_THRU_DATE)&amp;lt;0,'0',&lt;BR /&gt;IF( (CONTROL_DATE - PAID_THRU_DATE)&amp;gt;90,'90+',&lt;BR /&gt;Text(CONTROL_DATE - PAID_THRU_DATE)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;ZZ</description>
      <pubDate>Tue, 04 Jun 2019 04:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-if-statement/m-p/1587855#M738488</guid>
      <dc:creator>zzyjordan</dc:creator>
      <dc:date>2019-06-04T04:25:40Z</dc:date>
    </item>
  </channel>
</rss>

