<?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: Get max date in expression based on dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830177#M292160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="181708" data-objecttype="3" href="https://community.qlik.com/people/hariprasadqv"&gt;hariprasadqv&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have a set analysis expression as given in earlier reply.&lt;/P&gt;&lt;P&gt;I have to add 1 more condition in the same.&lt;/P&gt;&lt;P&gt;I will explain again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select Jan 2015, i should get DEc 2014 as the batch date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select Oct 2014, I should get 09/19/2014 as the batch date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this way, as per the selection in the calender, batch date will change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 09:28:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-27T09:28:55Z</dc:date>
    <item>
      <title>Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830171#M292154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using pivot table to show the inventory data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 1 material no, there are different batch dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as on any selected date in calender, I want to consider only max batch date on or before calender date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg:&lt;/P&gt;&lt;P&gt;if Jan 2015 is my calender date, and material no is 11106 and there are batch dates in June 2014, Dec 2014 and March 2015.&lt;/P&gt;&lt;P&gt;So as on Jan 2015, dec 2014 is the max batch date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to write the expression using set analysis for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 08:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830171#M292154</guid>
      <dc:creator />
      <dc:date>2015-04-27T08:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830172#M292155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please post the sample data!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830172#M292155</guid>
      <dc:creator>hariprasadqv</dc:creator>
      <dc:date>2015-04-27T09:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830173#M292156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like &lt;A _jive_internal="true" href="https://community.qlik.com/people/hariprasadqv"&gt;hariprasadqv&lt;/A&gt;‌ said it would be easier to give you a better suggestion if we have a sample to look at, but if you just need general guidance, I would suggest creating flags in the script where the data exits and then use that flag in your expression. Once you select a date, the max expression with the flag should get you to what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830173#M292156</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-27T09:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830174#M292157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample data&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="294"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" width="98"&gt;material no&lt;/TD&gt;&lt;TD class="xl63" width="98"&gt;BatchDate&lt;/TD&gt;&lt;TD class="xl64" width="98"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;08/22/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;09/26/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;12/31/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;02/28/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;03/14/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;04/23/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;08/25/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;08/30/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;09/02/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;09/10/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;09/19/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;11106&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;12/31/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;223.67&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So from the above list, it should show only 12/31/2014.&lt;/P&gt;&lt;P&gt;For this currently, I have expression as&lt;/P&gt;&lt;P&gt;num(sum({$&amp;lt;Year = , Month =, Day =, PostingDate = {'&amp;gt;=$(=Date(MonthStart(min(CalenderDate)))) &amp;lt;=$(=Date(max(CalenderDate)))'}&amp;nbsp;&amp;nbsp; &amp;gt;} qty),'#,###.000')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this expression, I want to add 1 more condition for batch date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830174#M292157</guid>
      <dc:creator />
      <dc:date>2015-04-27T09:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830175#M292158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In General&amp;nbsp; You Could Use MAX in the set analysis and&amp;nbsp; Nullify the Month Selection In the Expression so That always max of month will show even if u select the any month..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if u provide sample data we can sort out the exact solution ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830175#M292158</guid>
      <dc:creator />
      <dc:date>2015-04-27T09:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830176#M292159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the attached qvw. Let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830176#M292159</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-27T09:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830177#M292160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="181708" data-objecttype="3" href="https://community.qlik.com/people/hariprasadqv"&gt;hariprasadqv&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have a set analysis expression as given in earlier reply.&lt;/P&gt;&lt;P&gt;I have to add 1 more condition in the same.&lt;/P&gt;&lt;P&gt;I will explain again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select Jan 2015, i should get DEc 2014 as the batch date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select Oct 2014, I should get 09/19/2014 as the batch date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this way, as per the selection in the calender, batch date will change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830177#M292160</guid>
      <dc:creator />
      <dc:date>2015-04-27T09:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830178#M292161</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;=Num(sum({$&amp;lt;Year = , Month =,Date={"$(=Max(Date))"}&amp;gt;}Amount ),'#,###.000')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830178#M292161</guid>
      <dc:creator />
      <dc:date>2015-04-27T09:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830179#M292162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subbarja approach will resolve your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 10:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830179#M292162</guid>
      <dc:creator>hariprasadqv</dc:creator>
      <dc:date>2015-04-27T10:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830180#M292163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so you mean, I should write my expression as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum({$&amp;lt;Year = , Month =, Day =, PostingDate = {'&amp;gt;=$(=Date(MonthStart(min(CalenderDate)))) &amp;lt;=$(=Date(max(CalenderDate)))'} , BatchDate = {'$(=Date(=Max(BatchDate)))'}&amp;nbsp; &amp;gt;} qty),'#,###.000') ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with this, but it is not giving any output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 10:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830180#M292163</guid>
      <dc:creator />
      <dc:date>2015-04-27T10:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830181#M292164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be u can try this way,u can simply setup ur calendar date with batch date,tht helps to bring the corresponding values into ur dashboard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 10:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830181#M292164</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-04-27T10:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date in expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830182#M292165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I can't do like that because I have posting date also and depending on that only I created Calender date.&lt;/P&gt;&lt;P&gt;Can you have another solution. Please reply me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 06:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-in-expression-based-on-dimension/m-p/830182#M292165</guid>
      <dc:creator />
      <dc:date>2015-04-28T06:37:54Z</dc:date>
    </item>
  </channel>
</rss>

