<?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 Maxdate parameter in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380472#M817365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one is going to come off as pretty dumb, but I'm forgetting something or skipping something simple in my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want is the count of IDs, with the maxDate as the expression. But I'm not sure how to set up that expression with the function in it, and finding proper syntax within the community is far from easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So imagine the regular count of IDs:&lt;/P&gt;&lt;P&gt;=count(distinct ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like the count to be for the maxDate only, either using a variable set to max(theDate) or the function within the expression itself, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;theDate = max(theDate)&amp;gt;} distinct ID)&lt;/P&gt;&lt;P&gt;this syntax is wrong, I know, but I'm not sure what to add/take away to make it function properly. Any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Maxdate parameter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380472#M817365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one is going to come off as pretty dumb, but I'm forgetting something or skipping something simple in my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want is the count of IDs, with the maxDate as the expression. But I'm not sure how to set up that expression with the function in it, and finding proper syntax within the community is far from easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So imagine the regular count of IDs:&lt;/P&gt;&lt;P&gt;=count(distinct ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like the count to be for the maxDate only, either using a variable set to max(theDate) or the function within the expression itself, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;theDate = max(theDate)&amp;gt;} distinct ID)&lt;/P&gt;&lt;P&gt;this syntax is wrong, I know, but I'm not sure what to add/take away to make it function properly. Any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380472#M817365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Maxdate parameter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380473#M817366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;=count( { &amp;lt; theDate =&amp;nbsp; {$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max(theDate) &lt;/SPAN&gt;) }&amp;nbsp;&amp;nbsp; &amp;gt;} distinct ID)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 13:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380473#M817366</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-08-24T13:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Maxdate parameter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380474#M817367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count( { &amp;lt; &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;theDate &lt;/EM&gt; =&amp;nbsp; {'$(=Date(max( &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;theDate &lt;/EM&gt;)) )' }&amp;nbsp;&amp;nbsp; &amp;gt;}&amp;nbsp; Distinct Doc_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=count( { &amp;lt; &lt;/SPAN&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;theDate &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; =&amp;nbsp; {'$(=Date(max( &lt;/SPAN&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;theDate &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)) )' }&amp;nbsp;&amp;nbsp; &amp;gt;}&amp;nbsp;&amp;nbsp; Doc_name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=count( { &amp;lt; theDate =&amp;nbsp; {$(=&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;max(theDate) &lt;/SPAN&gt;) }&amp;nbsp;&amp;nbsp; &amp;gt;} distinct &lt;SPAN style="font-size: 13.3333px;"&gt;Doc_name&lt;/SPAN&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 13:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380474#M817367</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-08-24T13:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Maxdate parameter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380475#M817368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting 0 as the result, I've attach the simplified qlik to my original and maybe you can write the expression until it works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have inline loaded the dates as exactly the dates numbers... so they may need to be reformatted I suppose. Perhaps that's an issue as well. Sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating the maxDate as a variable and using that would also be totally fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380475#M817368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-24T14:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Maxdate parameter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380476#M817369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({&amp;lt;theDate = {"$(=Date(Max(theDate), 'YYYY-MM-DD'))"}&amp;gt;} distinct ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380476#M817369</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-24T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Maxdate parameter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380477#M817370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nailed it, thanks Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380477#M817370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-24T14:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Maxdate parameter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380478#M817371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok it is date format issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try and see attached also&lt;/P&gt;&lt;P&gt;=count({&amp;lt; theDate = { '$(=max(theDate))' }&amp;gt;} distinct ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380478#M817371</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-08-24T14:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Maxdate parameter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380479#M817372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check my reply as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxdate-parameter-in-expression/m-p/1380479#M817372</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-08-24T14:12:59Z</dc:date>
    </item>
  </channel>
</rss>

