<?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 Getting the maximum date of the current selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-the-maximum-date-of-the-current-selection/m-p/132458#M752143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; i&amp;nbsp; am using following KPI in line chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Sum({&amp;lt;Equipment_isSMA_Upgrade_Eligible={1},Temp_isEquipmentNoContract={0},Is_Deleted={'N'},Flag ={1},Mod_EquipmentStartDate={"&amp;lt;=$(=(Max(DateID)))"},Valid_From_Date={"&amp;lt;=$(=(Max(DateID)))"}&amp;gt;}&amp;nbsp;&amp;nbsp; EquipmentCount) +&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({&amp;lt;Equipment_isSMA_Upgrade_Eligible={1},Temp_isEquipmentNoContract={0},Is_Deleted={'Y'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;,Flag ={1},Mod_EquipmentStartDate={"&amp;lt;=$(=(Max(DateID)))"},Valid_From_Date={"&amp;gt;$(=(Max(DateID)))"}&amp;gt;}&amp;nbsp;&amp;nbsp; EquipmentCount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Whenever i am putting following KPI in line chart ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am getting a different value for particular year if i made of&amp;nbsp; selection of&amp;nbsp; that year ,but without selection we are getting different value.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This is because when i am not selecting any year it is giving me overall maximum date of DateID ,But when i am selecting particulat year it is giving maximum date id of that year.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can any one tell me how to&amp;nbsp; modify this logic so that it compares only the particulat year maximum date id only when i am not making selection ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>manu1512</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Getting the maximum date of the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-maximum-date-of-the-current-selection/m-p/132458#M752143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; i&amp;nbsp; am using following KPI in line chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Sum({&amp;lt;Equipment_isSMA_Upgrade_Eligible={1},Temp_isEquipmentNoContract={0},Is_Deleted={'N'},Flag ={1},Mod_EquipmentStartDate={"&amp;lt;=$(=(Max(DateID)))"},Valid_From_Date={"&amp;lt;=$(=(Max(DateID)))"}&amp;gt;}&amp;nbsp;&amp;nbsp; EquipmentCount) +&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({&amp;lt;Equipment_isSMA_Upgrade_Eligible={1},Temp_isEquipmentNoContract={0},Is_Deleted={'Y'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;,Flag ={1},Mod_EquipmentStartDate={"&amp;lt;=$(=(Max(DateID)))"},Valid_From_Date={"&amp;gt;$(=(Max(DateID)))"}&amp;gt;}&amp;nbsp;&amp;nbsp; EquipmentCount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Whenever i am putting following KPI in line chart ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am getting a different value for particular year if i made of&amp;nbsp; selection of&amp;nbsp; that year ,but without selection we are getting different value.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This is because when i am not selecting any year it is giving me overall maximum date of DateID ,But when i am selecting particulat year it is giving maximum date id of that year.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can any one tell me how to&amp;nbsp; modify this logic so that it compares only the particulat year maximum date id only when i am not making selection ?&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/Getting-the-maximum-date-of-the-current-selection/m-p/132458#M752143</guid>
      <dc:creator>manu1512</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the maximum date of the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-maximum-date-of-the-current-selection/m-p/132459#M752144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dollar sign expansion as well as set analysis is evaluated in global context, not per your chart dimensional values.&lt;/P&gt;&lt;P&gt;Is Year a dimension in your chart?&lt;/P&gt;&lt;P&gt;Then the current expression will not 'look' at the current dimensional Year value and use this to determine the max DateID, just as you've noted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's hard to give you a more precise help without knowing anything about your context, model and data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 08:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-maximum-date-of-the-current-selection/m-p/132459#M752144</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-10-24T08:36:42Z</dc:date>
    </item>
  </channel>
</rss>

