<?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: Accounts receivable aging set analysis with multiple conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745787#M590773</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22016"&gt;@dadumas&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum({&amp;lt;[Days Aged]={'&amp;gt;60'}&amp;gt;}[Current Trx Amount]))&amp;gt;$(vGEAmount)"}&amp;gt;} [Current Trx Amount])&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 21 Sep 2020 21:16:20 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-09-21T21:16:20Z</dc:date>
    <item>
      <title>Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745775#M590772</link>
      <description>&lt;P&gt;I wish to show accounts receivable invoice data based on the [Current Trx Amount] measure, but only for customers that (1) have an &lt;EM&gt;absolute value&lt;/EM&gt; of their AR sum total total greater than a desired amount and&amp;nbsp;(2) additionally only consider AR invoices that are &amp;gt;60 days old..&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the variable&amp;nbsp;$(vGEAmount)&amp;nbsp; for the aggregate amount, set by the user in an input box.&amp;nbsp; Example:&amp;nbsp; $25,000, or ($25000).&amp;nbsp; [Days Aged] is the number of days old for an invoice, and is stored as an attribute in the invoice record.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Currently this works fine:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum([Current Trx Amount]))&amp;gt;$(vGEAmount)"}&amp;gt;} [Current Trx Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, the above does not yet additionally filter for&amp;nbsp; AR invoices that are &amp;gt;60 days old.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I added this, and it does not error out, but ignores the first part of the filter above(ignores aggregate total search condition):&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum([Current Trx Amount]))&amp;gt;$(vGEAmount)"}&lt;STRONG&gt;&lt;FONT size="6"&gt;,&lt;/FONT&gt; [Days Aged]={"&amp;gt;60"}&lt;/STRONG&gt;&amp;gt;} [Current Trx Amount])&lt;/P&gt;&lt;P&gt;I have also tried this:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum([Current Trx Amount]))&amp;gt;$(vGEAmount)"}&lt;STRONG&gt;&amp;gt; &lt;FONT size="6"&gt;+&lt;/FONT&gt; &amp;lt;[Days Aged]={"&amp;gt;60"} [Current Trx Amount])&lt;/STRONG&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;I have also tried this:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum([Current Trx Amount]))&amp;gt;$(vGEAmount)"}&lt;STRONG&gt;&amp;gt; &lt;FONT size="6"&gt;*&lt;/FONT&gt; &amp;lt;[Days Aged]={"&amp;gt;60"} [Current Trx Amount])&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;None work except for the very first one at the top.&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745775#M590772</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2024-11-15T23:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745787#M590773</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22016"&gt;@dadumas&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum({&amp;lt;[Days Aged]={'&amp;gt;60'}&amp;gt;}[Current Trx Amount]))&amp;gt;$(vGEAmount)"}&amp;gt;} [Current Trx Amount])&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Sep 2020 21:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745787#M590773</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-21T21:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745789#M590774</link>
      <description>&lt;P&gt;I like this simplified logic, but I get the "Error in set modifier ad hoc element list [,] or[ )] expected".&amp;nbsp; &amp;nbsp; I am guessing that it does not like 2 strings even if one uses double quotes and 1 used single quotes.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 21:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745789#M590774</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2020-09-21T21:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745793#M590775</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22016"&gt;@dadumas&lt;/a&gt;&amp;nbsp; I don't see any errors and there is not issue with quotes as well. Can you share screenshot of your expression to look at?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 22:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745793#M590775</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-21T22:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745799#M590776</link>
      <description>&lt;P&gt;It is literally this:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum(&amp;lt;[Days Aged]={'&amp;gt;60'}&amp;gt; [Current Trx Amount]))&amp;gt;$(vGEAmount)"&amp;gt;} [Current Trx Amount])&lt;/P&gt;&lt;P&gt;I do not see red in the expression editor, but once I clik apply, or ok, the table chart gives me that error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 22:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745799#M590776</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2020-09-21T22:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745801#M590777</link>
      <description>&lt;P&gt;Sorry, this gives the error:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum({&amp;lt;[Days Aged]={'&amp;gt;60'}&amp;gt;} [Current Trx Amount]))&amp;gt;$(vGEAmount)"&amp;gt;} [Current Trx Amount])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 22:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745801#M590777</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2020-09-21T22:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745802#M590778</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22016"&gt;@dadumas&lt;/a&gt;&amp;nbsp; there is syntax issue in your expression&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum({&amp;lt;[Days Aged]={'&amp;gt;60'}&amp;gt;} [Current Trx Amount]))&amp;gt;$(vGEAmount)"&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/FONT&gt;&amp;gt;} [Current Trx Amount])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 22:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745802#M590778</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-21T22:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745807#M590779</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This is the one I am using without that extra }, same error...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum({&amp;lt;[Days Aged]={'&amp;gt;60'}&amp;gt;} [Current Trx Amount]))&amp;gt;$(vGEAmount)"&amp;gt;} [Current Trx Amount])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 23:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745807#M590779</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2020-09-21T23:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745808#M590780</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22016"&gt;@dadumas&lt;/a&gt;&amp;nbsp; the error which I highlighted actually you need to include it and not to remove it. So add that bracket&amp;nbsp; as highlighted in my previous reply&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 23:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745808#M590780</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-21T23:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745810#M590781</link>
      <description>&lt;P&gt;I changed back to this:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Customer Number]={"=fabs(Sum({&amp;lt;[Days Aged]={'&amp;gt;60'}&amp;gt;} [Current Trx Amount]))&amp;gt;25000"}&amp;gt;} [Current Trx Amount])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I get no error, but&lt;/STRONG&gt; the embedded logic of&amp;nbsp;{&amp;lt;[Days Aged]={'&amp;gt;60'}&amp;gt;} is ignored.&amp;nbsp; I still see invoices that are less than 60 days old.&lt;/P&gt;&lt;P&gt;So, if we can get that piece to work, its done.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 23:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745810#M590781</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2020-09-21T23:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745811#M590782</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22016"&gt;@dadumas&lt;/a&gt;&amp;nbsp; add this to outer set as well&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({$&amp;lt;[Days Aged]={"&amp;gt;60"},[Customer Number]={"=fabs(Sum({&amp;lt;[Days Aged]={'&amp;gt;60'}&amp;gt;} [Current Trx Amount]))&amp;gt;25000"}&amp;gt;} [Current Trx Amount])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 23:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745811#M590782</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-21T23:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accounts receivable aging set analysis with multiple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745812#M590783</link>
      <description>&lt;P&gt;Home Run - out of the park!&amp;nbsp; Works perfect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My final is:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Days Aged]={"&amp;gt;$(vGEDays)"},[Customer Number]={"=fabs(Sum({&amp;lt;[Days Aged]={'&amp;gt;$(vGEDays)'}&amp;gt;} [Current Trx Amount]))&amp;gt;$(vGEAmount)"}&amp;gt;} [Current Trx Amount])&lt;/P&gt;&lt;P&gt;Once I got it working with your outer suggestion, I created another input variable.&amp;nbsp; You are a hero!&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 23:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accounts-receivable-aging-set-analysis-with-multiple-conditions/m-p/1745812#M590783</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2020-09-21T23:57:12Z</dc:date>
    </item>
  </channel>
</rss>

