<?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: Set Analysis for Max of Date when date is a string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750924#M453587</link>
    <description>&lt;P&gt;The suggestion from Ramchalla is missing single-quotes around the $-sign expansion and it missed an ending bracket - therefore try it in this way:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;billing_date={&lt;STRONG&gt;'&lt;/STRONG&gt;$(=Date(max(billing_date),'YYYY-MM-DD')&lt;STRONG&gt;)'&lt;/STRONG&gt;}&amp;gt;}_volume)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 07:01:58 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-10-09T07:01:58Z</dc:date>
    <item>
      <title>Set Analysis for Max of Date when date is a string</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750811#M453574</link>
      <description>&lt;P&gt;I have a field billling_date that is displayed in the format '2020-10-7' for October 7th.&lt;/P&gt;&lt;P&gt;When i evaluate max(billing_date) i get a numerical value 44111&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;billing_date={$(=max(billing_date))}&amp;gt;}_volume)&amp;nbsp;&lt;/P&gt;&lt;P&gt;does not work, just returns zero.&amp;nbsp; However if i use&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;billing_date={'2020-10-07'}&amp;gt;} _volume)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the results I want.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;What do i need to do in order to create a set analysis expression that will work correctly?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 16:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750811#M453574</guid>
      <dc:creator>tomdabek</dc:creator>
      <dc:date>2020-10-08T16:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Max of Date when date is a string</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750816#M453575</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5202"&gt;@tomdabek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if billing_date is in string format, convert it to date by using Date#(billing_date,'YYYY-MMM-DD') and you can use the below expression.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;billing_date={$(=Date(max(billing_date),'YYYY-MM-DD')}&amp;gt;}_volume)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 17:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750816#M453575</guid>
      <dc:creator>ramchalla</dc:creator>
      <dc:date>2020-10-08T17:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Max of Date when date is a string</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750831#M453578</link>
      <description>&lt;P&gt;This doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can correctly display&amp;nbsp;&lt;SPAN&gt;Date(max(billing_date),'YYYY-MM-DD')) as an expression in a column it correctly shows the value as a date - but within the set analysis expression it doesn't work&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 17:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750831#M453578</guid>
      <dc:creator>tomdabek</dc:creator>
      <dc:date>2020-10-08T17:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Max of Date when date is a string</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750924#M453587</link>
      <description>&lt;P&gt;The suggestion from Ramchalla is missing single-quotes around the $-sign expansion and it missed an ending bracket - therefore try it in this way:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;billing_date={&lt;STRONG&gt;'&lt;/STRONG&gt;$(=Date(max(billing_date),'YYYY-MM-DD')&lt;STRONG&gt;)'&lt;/STRONG&gt;}&amp;gt;}_volume)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 07:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750924#M453587</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-10-09T07:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Max of Date when date is a string</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750932#M453588</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Please follow the Marcus suggestion. Additionally, if you are using the value in multiple places, pls create the variable for Max Date &amp;amp; use that variable in set analysis or required places.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Like&amp;nbsp;&lt;BR /&gt;vMaxBillingDate&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;=Date(max(billing_date),'YYYY-MM-DD')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Exp: sum({&amp;lt;billing_date={&lt;STRONG&gt;'&lt;/STRONG&gt;$(vMaxBillingDate)'}&amp;gt;}_volume)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So that, if any changes required, you can change in variable alone. Time saving &amp;amp; less maintenance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Mayil Vahanan R&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 08:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1750932#M453588</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-10-09T08:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Max of Date when date is a string</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1751075#M453599</link>
      <description>&lt;P&gt;Thank you to both for your help with this.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 13:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Max-of-Date-when-date-is-a-string/m-p/1751075#M453599</guid>
      <dc:creator>tomdabek</dc:creator>
      <dc:date>2020-10-09T13:20:27Z</dc:date>
    </item>
  </channel>
</rss>

