<?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 - script issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1753222#M719078</link>
    <description>&lt;P&gt;Thank you, this is a great guide, and I also learned that I had inverted my =&amp;gt; and should have been &amp;gt;=.&lt;/P&gt;&lt;P&gt;Appreciate the guidance.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2020 14:01:09 GMT</pubDate>
    <dc:creator>gfisch13</dc:creator>
    <dc:date>2020-10-16T14:01:09Z</dc:date>
    <item>
      <title>If condition - script issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1752947#M719075</link>
      <description>&lt;P&gt;Hi - I'm loading data from a spreadsheet source and trying to create a field called bucket where records are classified as:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Under 30,&lt;/LI&gt;&lt;LI&gt;31-60,&lt;/LI&gt;&lt;LI&gt;61-120,&lt;/LI&gt;&lt;LI&gt;Greater than 120.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The attached script (to preserve color) continues to throw an error indicating the the expression is missing a ")" (closing parenthesis).&amp;nbsp; I've also listed the script below, the section in question is highlighted in orange.&lt;/P&gt;&lt;P&gt;I cannot seem to understand where this should be placed.&amp;nbsp; Open to any comments/suggestions.&lt;/P&gt;&lt;P&gt;Thanks, George&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; Location,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Case Number (Fraud ID)],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date Reported],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date Investigation Started],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Amount at Risk/Detected Fraud (USD)],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Subject of Investigation],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Case Contact],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product/Claim Type],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Case Type],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Coverage Type],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Internal/ External],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Case Details],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Action Taken],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Amount of Recovered Fraud (USD)],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Amount of Prevented Fraud (USD)],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Case Investigation Status],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date Investigation Closed],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Fraud Type],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Case Age (Days)],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Net Loss (USD)],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Opened Period],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Closed Period],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;FONT color="#FF9900"&gt; IF ([Case Age (Days)] &amp;lt;= 30, Dual('Less than 30', 1),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF ([Case Age (Days)] =&amp;gt; 31 and [Case Age (Days)] &amp;lt;= 60, Dual('30-60', 2),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF ([Case Age (Days)] =&amp;gt; 61 and [Case Age (Days)] &amp;lt;= 120, Dual('61-120', 3),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF ([Case Age (Days)] =&amp;gt; 121, Dual('Greater than 120', 4))))) as Buckets,&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Confidential&lt;BR /&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1752947#M719075</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2024-11-15T23:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: If condition - script issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1752973#M719076</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you have &amp;nbsp;look on this ? It might help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/If-Condition/td-p/1364702" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/If-Condition/td-p/1364702&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 18:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1752973#M719076</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2020-10-15T18:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: If condition - script issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1752975#M719077</link>
      <description>&lt;P&gt;Or try to create those bucket in before load statement only ? Did you tried that ?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 18:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1752975#M719077</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2020-10-15T18:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: If condition - script issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1753222#M719078</link>
      <description>&lt;P&gt;Thank you, this is a great guide, and I also learned that I had inverted my =&amp;gt; and should have been &amp;gt;=.&lt;/P&gt;&lt;P&gt;Appreciate the guidance.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 14:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1753222#M719078</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2020-10-16T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: If condition - script issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1753241#M719079</link>
      <description>&lt;P&gt;cool it worked for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 14:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-script-issue/m-p/1753241#M719079</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2020-10-16T14:43:09Z</dc:date>
    </item>
  </channel>
</rss>

