<?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: Count based on past due date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1894993#M73838</link>
    <description>&lt;P&gt;Also try to see how $() expression is evaluated in the expression editor bottom section, it gives some hint about the problem.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Feb 2022 20:20:09 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2022-02-18T20:20:09Z</dc:date>
    <item>
      <title>Count based on past due date</title>
      <link>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1894980#M73832</link>
      <description>&lt;P&gt;In my source data records there is a due date field.&amp;nbsp; I want to create a very simple visual showing &lt;STRONG&gt;count of records with a due date that is older than today&lt;/STRONG&gt;...meaning that it is now past due.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Here's the script I created which throws a garbage error.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;if([SPPAP Due Date]&amp;lt;=(today()),count(DISTINCT([SPPAP Due Date])))&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Here's the script that an experienced coworker created which also throws a garbage error&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;COUNT({&amp;lt;[SPPAP Due Date] = {“&amp;lt;= $(=Today())”}&amp;gt;} DISTINCT [SPPAP Due Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 19:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1894980#M73832</guid>
      <dc:creator>Lori1219</dc:creator>
      <dc:date>2022-02-18T19:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on past due date</title>
      <link>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1894992#M73837</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I prefer set expression but sometimes it doesn't work if comparison is not proper, try to match format of Due date and today -&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;COUNT({&amp;lt;[SPPAP Due Date] = {“&amp;lt;= $(=Date(Today(),'MM/DD/YYYY'))”}&amp;gt;} DISTINCT [SPPAP Due Date])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or with single quote may be, don't remember if its needed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;COUNT({&amp;lt;[SPPAP Due Date] = {“&amp;lt;= '$(=Date(Today(),'MM/DD/YYYY'))'”}&amp;gt;} DISTINCT [SPPAP Due Date])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;IF will be slower but comparison is straigthforward -&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;count(distinct if([SPPAP Due Date]&amp;lt;=today(),[SPPAP Due Date]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;pl share some sample data, in case it doesn't work&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 20:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1894992#M73837</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-02-18T20:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on past due date</title>
      <link>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1894993#M73838</link>
      <description>&lt;P&gt;Also try to see how $() expression is evaluated in the expression editor bottom section, it gives some hint about the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 20:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1894993#M73838</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-02-18T20:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on past due date - here's the error message it's now throwing</title>
      <link>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1895008#M73840</link>
      <description>Used this&lt;BR /&gt;&lt;BR /&gt;COUNT({&amp;lt;[SPPAP Due Date] = {"&amp;lt;= '$(=Date(Today(),'MM/DD/YYYY'))'"}&amp;gt;} DISTINCT [SPPAP Due Date])&lt;BR /&gt;&lt;BR /&gt;Got this&lt;BR /&gt;[cid:image001.jpg@01D824DE.C41093B0]&lt;BR /&gt;Error in expression&lt;BR /&gt;Error in set modifier ad hoc element list: " or ' expected&lt;BR /&gt;COUNT({&amp;lt;[SPPAP Due Date] = {"&amp;lt;='02/18/2022'"}&amp;gt;}DISTINCT [SPPAP Due Due})&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Feb 2022 21:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1895008#M73840</guid>
      <dc:creator>Lori1219</dc:creator>
      <dc:date>2022-02-18T21:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on past due date - here's the error message it's now throwing</title>
      <link>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1895010#M73841</link>
      <description>&lt;P&gt;not sure why '}' is in the error expression u mentioned? but not in the first line of your response, is it a typo?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;COUNT({&amp;lt;[SPPAP Due Date] = {"&amp;lt;='02/18/2022'"}&amp;gt;}DISTINCT [SPPAP Due Due&lt;FONT size="5" color="#FF0000"&gt;}&lt;/FONT&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you try without date or the exp with IF?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;COUNT({&amp;lt;[SPPAP Due Date] = {"&amp;lt;= $(=Today())"}&amp;gt;} DISTINCT [SPPAP Due Date])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 21:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1895010#M73841</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-02-18T21:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on past due date</title>
      <link>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1895012#M73842</link>
      <description>Error cleared.  Now I need to feed in a selection to get an actual number.&lt;BR /&gt;Thank you&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Feb 2022 21:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1895012#M73842</guid>
      <dc:creator>Lori1219</dc:creator>
      <dc:date>2022-02-18T21:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on past due date</title>
      <link>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1897134#M74043</link>
      <description>&lt;P&gt;COUNT({&amp;lt;[SPPAP Due Date] = {"&amp;lt;= $(=Today())"}&amp;gt;} DISTINCT [SPPAP Due Date])&lt;/P&gt;
&lt;P&gt;No longer getting errors.&amp;nbsp; Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 13:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-based-on-past-due-date/m-p/1897134#M74043</guid>
      <dc:creator>Lori1219</dc:creator>
      <dc:date>2022-02-24T13:21:22Z</dc:date>
    </item>
  </channel>
</rss>

