<?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 of MAX record for  dynamically changing the date variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-of-MAX-record-for-dynamically-changing-the-date-variables/m-p/1747003#M453371</link>
    <description>&lt;P&gt;Thanks, Edwin, Appreciate the response!&lt;/P&gt;&lt;P&gt;But the requirement is that dates are dynamically changing based on the user selection calendar icons for start and from dates.. so I need the max value between a start and end dates...&lt;SPAN&gt;CalendarDate&amp;gt;='$(vStartDate)' and CalendarDate&amp;lt;='$(vEndDate)' ..so I tried to modify the logic to pull the max count but its not working ..can you help?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 00:33:59 GMT</pubDate>
    <dc:creator>sai_yashwan</dc:creator>
    <dc:date>2020-09-25T00:33:59Z</dc:date>
    <item>
      <title>count of MAX record for  dynamically changing the date variables</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-MAX-record-for-dynamically-changing-the-date-variables/m-p/1746210#M453325</link>
      <description>&lt;P&gt;I have a requirement to display max&amp;nbsp; records between the date range (changes dynamically)&lt;/P&gt;&lt;P&gt;Attache the data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This expression gives everything out there. however, I need to display the latest record within the selected date range&amp;nbsp;&lt;/P&gt;&lt;P&gt;forex, if the user selects the date range '20181019' to '20190415', I need&amp;nbsp;&amp;nbsp;Benefitrnk =&amp;nbsp; 4 only be counted.&lt;/P&gt;&lt;P&gt;=Count(distinct if( Case='BV' and Case_Status='Completed' and Date ='CaseCreatedDate' and (CalendarDate&amp;gt;='20181023' and CalendarDate&amp;lt;='20190305' ) , Profile_ID))&lt;/P&gt;&lt;P&gt;Any insight would help me. Many thanks for considering my request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sai.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 17:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-MAX-record-for-dynamically-changing-the-date-variables/m-p/1746210#M453325</guid>
      <dc:creator>sai_yashwan</dc:creator>
      <dc:date>2020-09-23T17:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: count of MAX record for  dynamically changing the date variables</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-MAX-record-for-dynamically-changing-the-date-variables/m-p/1746931#M453363</link>
      <description>&lt;P&gt;a bit confusing looking at the data, because for 20190415,&amp;nbsp;&lt;SPAN&gt;Benefitrnk is 3 not 4.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if you want to count only the data set where date is max of the selected range, you can create a variable&lt;/P&gt;&lt;P&gt;vMaxDate=max(Date)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count(distinct if( Case='BV' and Case_Status='Completed' and Date ='CaseCreatedDate' and (CalendarDate='$(vMaxDate)' ) , Profile_ID))&lt;/LI-CODE&gt;&lt;P&gt;but i suggest using set analysis:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count(distinct {&amp;lt;Case={'BV'},Case_Status={'Completed'},Date ={'CaseCreatedDate'},CalendarDate={'$(vMaxDate)'}&amp;gt;} Profile_ID))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 19:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-MAX-record-for-dynamically-changing-the-date-variables/m-p/1746931#M453363</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-24T19:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: count of MAX record for  dynamically changing the date variables</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-MAX-record-for-dynamically-changing-the-date-variables/m-p/1747003#M453371</link>
      <description>&lt;P&gt;Thanks, Edwin, Appreciate the response!&lt;/P&gt;&lt;P&gt;But the requirement is that dates are dynamically changing based on the user selection calendar icons for start and from dates.. so I need the max value between a start and end dates...&lt;SPAN&gt;CalendarDate&amp;gt;='$(vStartDate)' and CalendarDate&amp;lt;='$(vEndDate)' ..so I tried to modify the logic to pull the max count but its not working ..can you help?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 00:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-MAX-record-for-dynamically-changing-the-date-variables/m-p/1747003#M453371</guid>
      <dc:creator>sai_yashwan</dc:creator>
      <dc:date>2020-09-25T00:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: count of MAX record for  dynamically changing the date variables</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-MAX-record-for-dynamically-changing-the-date-variables/m-p/1753013#M453668</link>
      <description>&lt;P&gt;About the best I have is the following Design Blog area base link, search around there and see if you can find any posts that may help you with things.&amp;nbsp; I generally start with a single word, see what pops up, and then rework or narrow down from there until I find something that looks interesting.&amp;nbsp; What you may have going on with variables is a potential timing issue, just FYI that is causing an issue in that the expression is calculating before the variables are updated etc.&amp;nbsp; One potential snag I can see here depending upon how things are setup to populate.&amp;nbsp; This will kick things back up too, so maybe someone else will have a look too.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 20:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-MAX-record-for-dynamically-changing-the-date-variables/m-p/1753013#M453668</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-10-15T20:46:08Z</dc:date>
    </item>
  </channel>
</rss>

