<?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: Resident Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resident-Load/m-p/1646810#M730530</link>
    <description>&lt;P&gt;One quick issue : you are using sum() that would require 'group by' clause here.&amp;nbsp; Try like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Debcontract_02:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Distinct CustId,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If(Sum(FinalNewMonthlyFee)&amp;lt;= 250,'Less','More') As ClientMonthlyFee_R250&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resident Debcontract &lt;STRONG&gt;Group By&amp;nbsp;CustId;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2019 09:23:02 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2019-11-14T09:23:02Z</dc:date>
    <item>
      <title>Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-Load/m-p/1646806#M730529</link>
      <description>&lt;P&gt;I would like to do a resident load but my script keeps giving me a error. I need to see whom of my clients that have more than one contract and the fees are group are paying less than R250.&lt;/P&gt;&lt;P&gt;Can someone please assist me in this case?&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;Debcontract_01:&lt;BR /&gt;LOAD&lt;BR /&gt;*,&lt;BR /&gt;If(DiscountEndDate = 'NoEndDate' and [Discount] = 'Y', 'Investigation') AS [Discount Error or Correct],&lt;BR /&gt;MasterTotalExc/PaymentFreq AS [New Monthly Amount],&lt;BR /&gt;if(DiscountValue&amp;gt;0, ((DiscountValue / 1.15)/PaymentFreq),0) + (MasterTotalExc/PaymentFreq) AS &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;FinalNewMonthlyFee&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;BR /&gt;If((if(DiscountValue&amp;gt;0, ((DiscountValue / 1.15)/PaymentFreq),0) + (MasterTotalExc/PaymentFreq)) &amp;lt;= 250,'Less','More') As FinalNewMonthlyFee_Less_R250&lt;BR /&gt;Resident Debcontract&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;DROP Table Debcontract&lt;BR /&gt;;&lt;BR /&gt;RENAME Table Debcontract_01 To Debcontract&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Debcontract_02:&amp;nbsp;&lt;BR /&gt;LOAD&lt;BR /&gt;Distinct CustId,&lt;BR /&gt;If(Sum(&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;FinalNewMonthlyFee&lt;/FONT&gt;&lt;/STRONG&gt;)&amp;lt;= 250,'Less','More') As ClientMonthlyFee_R250&lt;BR /&gt;Resident Debcontract&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Rename Table Debcontract_02 To Debcontract&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Invalid expression&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Debcontract_02:&lt;BR /&gt;LOAD&lt;BR /&gt;Distinct CustId,&lt;BR /&gt;If(Sum(FinalNewMonthlyFee)&amp;lt;= 250,'Less','More') As ClientMonthlyFee_R250&lt;BR /&gt;Resident Debcontract&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-Load/m-p/1646806#M730529</guid>
      <dc:creator>mcoetzee</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-Load/m-p/1646810#M730530</link>
      <description>&lt;P&gt;One quick issue : you are using sum() that would require 'group by' clause here.&amp;nbsp; Try like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Debcontract_02:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Distinct CustId,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If(Sum(FinalNewMonthlyFee)&amp;lt;= 250,'Less','More') As ClientMonthlyFee_R250&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resident Debcontract &lt;STRONG&gt;Group By&amp;nbsp;CustId;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 09:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-Load/m-p/1646810#M730530</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-11-14T09:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-Load/m-p/1646920#M730531</link>
      <description>Thanks, it works&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Nov 2019 12:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-Load/m-p/1646920#M730531</guid>
      <dc:creator>mcoetzee</dc:creator>
      <dc:date>2019-11-14T12:51:47Z</dc:date>
    </item>
  </channel>
</rss>

