<?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 Bad debt calculation in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Bad-debt-calculation/m-p/45803#M9679</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 style="margin: 0 0 10.5px; color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;My ultimate aim is to calculate bad debt (outstanding for more than 31 days). Currently I managed to make it work with this (1-(Sum([Payment of loan id])/Sum([Loan amount id]))). But the user has to select the last 31 days and exclude them manually each time they want to view bad debt.&lt;/P&gt;&lt;P style="margin: 0 0 10.5px; color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;//Only({$&amp;lt;[Loan Date] = {'&amp;lt;=$(=Max([Loan Date])-31)'}&amp;gt;} (1-(Sum([Payment of loan id])/Sum([Loan amount id])))))&lt;/P&gt;&lt;P style="margin: 0 0 10.5px; color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;1-(Sum({$&amp;lt;[Loan Date] = {'&amp;lt;=$(=Max([Loan Date])-31)'}&amp;gt;}[Payment of loan id])/Sum({$&amp;lt;[Loan Date] = {'&amp;lt;=$(=Max([Loan Date])-31)'}&amp;gt;}[Loan amount id]))&lt;/P&gt;&lt;P style="margin: 0 0 10.5px; color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;So far I get a blank display&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10.5px; color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Feb 2018 05:45:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-19T05:45:05Z</dc:date>
    <item>
      <title>Bad debt calculation</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Bad-debt-calculation/m-p/45803#M9679</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 style="margin: 0 0 10.5px; color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;My ultimate aim is to calculate bad debt (outstanding for more than 31 days). Currently I managed to make it work with this (1-(Sum([Payment of loan id])/Sum([Loan amount id]))). But the user has to select the last 31 days and exclude them manually each time they want to view bad debt.&lt;/P&gt;&lt;P style="margin: 0 0 10.5px; color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;//Only({$&amp;lt;[Loan Date] = {'&amp;lt;=$(=Max([Loan Date])-31)'}&amp;gt;} (1-(Sum([Payment of loan id])/Sum([Loan amount id])))))&lt;/P&gt;&lt;P style="margin: 0 0 10.5px; color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;1-(Sum({$&amp;lt;[Loan Date] = {'&amp;lt;=$(=Max([Loan Date])-31)'}&amp;gt;}[Payment of loan id])/Sum({$&amp;lt;[Loan Date] = {'&amp;lt;=$(=Max([Loan Date])-31)'}&amp;gt;}[Loan amount id]))&lt;/P&gt;&lt;P style="margin: 0 0 10.5px; color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;So far I get a blank display&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10.5px; color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 05:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Bad-debt-calculation/m-p/45803#M9679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T05:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bad debt calculation</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Bad-debt-calculation/m-p/45804#M9680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which QS version you are using, I think from Nov release onwards single quote and double quote are not considered identical, try double quote instead of apostrophe, also Loan Date needs to be date type, may be - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #29303b; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;1-(Sum({$&amp;lt;[Loan Date] = {"&amp;lt;=$(=Max([Loan Date])-31)"}&amp;gt;}[Payment of loan id])/Sum({$&amp;lt;[Loan Date] = {"&amp;lt;=$(=Max([Loan Date])-31)"}&amp;gt;}[Loan amount id]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 05:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Bad-debt-calculation/m-p/45804#M9680</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-19T05:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bad debt calculation</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Bad-debt-calculation/m-p/45805#M9681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/189406"&gt;digvijay&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;I tried it.. It didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-(Sum({$&amp;lt;[Loan Date] = {"&amp;lt;=$(=Max([Loan Date])-31)"}&amp;gt;}[Payment of loan id])/Sum({$&amp;lt;[Loan Date] = {"&amp;lt;=$(=Max([Loan Date])-31)"}&amp;gt;}[Loan amount id]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 05:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Bad-debt-calculation/m-p/45805#M9681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T05:59:23Z</dc:date>
    </item>
  </channel>
</rss>

