<?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: Ignore selections and include max of date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054306#M923231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try including the set in max() too, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({$&amp;lt;Year=, pay_fortnight= , FinacialYear= ,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;snap_pay_end_date={"$(=date(max(&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;{1}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;snap_pay_end_date&lt;/SPAN&gt;)))"}&lt;/SPAN&gt;&amp;gt;}excess_leave_days&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;You might want to replace {1} with your time dimensions, if you wish to ignore the selection for only them. I.e. -&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;sum({$&amp;lt;Year=, pay_fortnight= , FinacialYear= , &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;snap_pay_end_date={"$(=date(max(&lt;SPAN style="color: #ff0000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;{&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Year=, pay_fortnight= , FinacialYear=,&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;snap_pay_end_date&lt;/SPAN&gt;)))"}&lt;/SPAN&gt;&amp;gt;}excess_leave_days&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 06:56:01 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-04-19T06:56:01Z</dc:date>
    <item>
      <title>Ignore selections and include max of date</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054303#M923225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have an expression like this in my straight table, i wanted to exclude all the selections even if a month year is selected and at the same time i wanted to use sum of leaves for max of end date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;/P&gt;&lt;P&gt;Test = sum({$&amp;lt;Year=, pay_fortnight= , FinacialYear=&amp;nbsp; snap_pay_end_date=&amp;gt;}if((snap_pay_end_date)='$(=max({$&amp;lt;Year=, pay_fortnight=&amp;gt;}snap_pay_end_date))',excess_leave_days)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i did this , i was getting values only for the selection period not for all months. But i want the same for all the months regardless of selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121949_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik&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/Ignore-selections-and-include-max-of-date/m-p/1054303#M923225</guid>
      <dc:creator>karthikdaibala</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections and include max of date</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054304#M923227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; sum({$&amp;lt;Year=, pay_fortnight= , FinacialYear= , snap_pay_end_date=,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;snap_pay_end_date={"$(=date(max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;snap_pay_end_date&lt;/SPAN&gt;)))"}&lt;/SPAN&gt;&amp;gt;}excess_leave_days&lt;SPAN style="line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 06:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054304#M923227</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-19T06:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections and include max of date</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054305#M923229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;left join(YourTable)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD MonthYear,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;snap_pay_end_date)) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;snap_pay_end_date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as MaxDateFlag&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Resident Your Table&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&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;sum({$&amp;lt;Year=, pay_fortnight= , FinacialYear= , snap_pay_end_date=,MaxDateFlag ={'1'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;excess_leave_days)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 06:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054305#M923229</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-19T06:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections and include max of date</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054306#M923231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try including the set in max() too, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({$&amp;lt;Year=, pay_fortnight= , FinacialYear= ,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;snap_pay_end_date={"$(=date(max(&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;{1}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;snap_pay_end_date&lt;/SPAN&gt;)))"}&lt;/SPAN&gt;&amp;gt;}excess_leave_days&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;You might want to replace {1} with your time dimensions, if you wish to ignore the selection for only them. I.e. -&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;sum({$&amp;lt;Year=, pay_fortnight= , FinacialYear= , &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;snap_pay_end_date={"$(=date(max(&lt;SPAN style="color: #ff0000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;{&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Year=, pay_fortnight= , FinacialYear=,&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;snap_pay_end_date&lt;/SPAN&gt;)))"}&lt;/SPAN&gt;&amp;gt;}excess_leave_days&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 06:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054306#M923231</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-04-19T06:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections and include max of date</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054307#M923233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your reply, i have tried this already. But i want to try the same using expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 21:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054307#M923233</guid>
      <dc:creator>karthikdaibala</dc:creator>
      <dc:date>2016-04-19T21:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections and include max of date</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054308#M923234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have Month as a dimension, so i would like to write an expression to get the value for the last pay fortnight value for that each months. and i need to exclude all the selection from it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 21:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054308#M923234</guid>
      <dc:creator>karthikdaibala</dc:creator>
      <dc:date>2016-04-19T21:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections and include max of date</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054309#M923235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$&amp;lt;Year=, pay_fortnight=, FinacialYear=, snap_pay_end_date=&amp;gt;} &lt;/SPAN&gt;Aggr(Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$&amp;lt;Year=, pay_fortnight=, FinacialYear=, snap_pay_end_date=&amp;gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;excess_leave_days), &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;snap_pay_end_date), -&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;snap_pay_end_date)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 00:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-and-include-max-of-date/m-p/1054309#M923235</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-20T00:59:18Z</dc:date>
    </item>
  </channel>
</rss>

