<?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: Script/expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071436#M937465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years &amp;lt; 1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '2. 0-1 years',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years &amp;gt; 1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years &amp;lt; 2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '2. 1-2 years',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;gt; 2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;lt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '3. 2-3 years',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;gt; 3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;lt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '4. 3-5 years',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;gt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;lt;10&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '5. 5-10 years',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;gt;10&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;lt;20&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '6. 10-20 years', '7. 20 years +'))))))))))) as Tenancy_Length_Years_Branding&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 13:38:12 GMT</pubDate>
    <dc:creator>carolin01</dc:creator>
    <dc:date>2016-02-08T13:38:12Z</dc:date>
    <item>
      <title>Script/expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071433#M937462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are wanting to put complaints numbers into bands for analysis purposes. We do this quite often with things like Age and the following expression works everytime:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="script.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113866_script.JPG" style="width: 620px; height: 127px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when we have tried to replicate with another field - complaint ID Qlikview keeps saying invalid expression and won't load the view- as you can see if it gives us no error prompt when in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Complaint ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ASB Complaint ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Complaint ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &amp;lt;1,'1. 0-1 Cases') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ASB_Banding&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Complaint Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date ASB Complaint made against tenant]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Complaint Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Type of ASB allegedly perpetrated]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Tenancy No]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM qlfdat.dbo."QLIKVIEW_ASB"; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Chris&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071433#M937462</guid>
      <dc:creator />
      <dc:date>2016-02-08T13:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Script/expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071434#M937463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is hard to tell from the script, but i'd comment out the [Complaint ID] just to see if the error is persistent for the next field. If it does, is the database connected? Otherwise, check the table to see what happened to the ID?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071434#M937463</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2016-02-08T13:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script/expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071435#M937464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If a similar case like yours and got is working like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OnTimeDeliveryInDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = 0, '6. On Time -5 / + 1 Day',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OnTimeDeliveryInDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = '-1', '6. On Time -5 / + 1 Day',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OnTimeDeliveryInDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = '-2', '6. On Time -5 / + 1 Day',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OnTimeDeliveryInDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = '-3', '6. On Time -5 / + 1 Day',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OnTimeDeliveryInDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = '-4', '6. On Time -5 / + 1 Day',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OnTimeDeliveryInDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = '-5', '6. On Time -5 / + 1 Day',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OnTimeDeliveryInDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = '1', '6. On Time -5 / + 1 Day',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OnTimeDeliveryInDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &amp;gt; '1', '4. More Days of delay',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OnTimeDeliveryInDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &amp;lt; '-5', '1. Earlier'))))))))) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OnTimeDeliveryMinus5Plus1Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Instead of and use a second if Statement. In your third row you also state if(Tenancy_Length_Years&amp;lt;1. &amp;lt;-- there is a Point behind the 1. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071435#M937464</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2016-02-08T13:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script/expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071436#M937465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years &amp;lt; 1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '2. 0-1 years',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years &amp;gt; 1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years &amp;lt; 2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '2. 1-2 years',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;gt; 2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;lt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '3. 2-3 years',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;gt; 3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;lt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '4. 3-5 years',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;gt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;lt;10&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '5. 5-10 years',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;gt;10&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Tenancy_Length_Years&amp;lt;20&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '6. 10-20 years', '7. 20 years +'))))))))))) as Tenancy_Length_Years_Branding&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071436#M937465</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2016-02-08T13:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script/expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071437#M937466</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;Aggregation is the problem i think. &lt;/P&gt;&lt;P&gt;You have a count in your script, so it is expecting a group by clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i reckon you will need to load the data from SQL,&lt;/P&gt;&lt;P&gt;The do a resident of the table&lt;/P&gt;&lt;P&gt;Like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Group BY Field;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071437#M937466</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-02-08T13:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script/expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071438#M937467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is that you are using Count() function which is a type of aggregation and every aggregation requires a Group By statement.&amp;nbsp; I am not sure what the required output is, but you need to add all non-aggregating fields into your group by statement. I hope that make sense &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071438#M937467</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-08T13:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script/expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071439#M937468</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;I agree with them, problem here is the aggregation function. But, moreover, I can't see the point of this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complaint ID, isn't it a unique id value within your data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And regarding your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Count(DISTINCT([Complaint ID])) &amp;lt;1,'1. 0-1 Cases') as ASB_Banding,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How these count expression could be evaluated less than 1 for a Complaint ID that you're loading? Assuming&amp;nbsp; that this expression could work, at least it will be evaluated as 1 for all rows, isn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071439#M937468</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2016-02-08T13:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script/expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071440#M937469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As suggested by the people add all non aggregated fields in group by statement&lt;/P&gt;&lt;P&gt;OR&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;If you donot have any performance issues,&lt;/P&gt;&lt;P&gt;then you can&amp;nbsp; create the same in front end with out any issues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-expression-help/m-p/1071440#M937469</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2016-02-08T13:52:45Z</dc:date>
    </item>
  </channel>
</rss>

