<?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: Calculated dimension for max date of each month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-for-max-date-of-each-month/m-p/596498#M477518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this by two ways...&lt;/P&gt;&lt;P&gt;Create one more field in your script...&lt;/P&gt;&lt;P&gt;Month(DateField) as Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Using Calculated Dimension&lt;/P&gt;&lt;P&gt;Aggr(Max(DateField),Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression &lt;/P&gt;&lt;P&gt;SUM(Sales) //or whatever as per your data model&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Using Set Analysis&lt;/P&gt;&lt;P&gt;Dimension &lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;TIck Suppress When Value is NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Aggr(SUM({&amp;lt;Date = {"=Aggr(Max(Date),Month)"}&amp;gt;}Sales),Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance of 2nd method is much better for Large DataBase...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Apr 2014 11:47:59 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-04-19T11:47:59Z</dc:date>
    <item>
      <title>Calculated dimension for max date of each month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-for-max-date-of-each-month/m-p/596496#M477516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="dates.png" class="jive-image jiveImage" src="https://community.qlik.com/legacyfs/online/57562_dates.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get a calculated dimension so that only one date for each month is shown in the dimension, how do I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the example above, I want my dimension values to be:&lt;/P&gt;&lt;P&gt;1/04/2014&lt;/P&gt;&lt;P&gt;12/31/2013&lt;/P&gt;&lt;P&gt;11/11/2013&lt;/P&gt;&lt;P&gt;9/30/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 21:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-for-max-date-of-each-month/m-p/596496#M477516</guid>
      <dc:creator />
      <dc:date>2014-04-18T21:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension for max date of each month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-for-max-date-of-each-month/m-p/596497#M477517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that you have a Month field as well, you can try expression like: =Aggr(Max(Date), Month)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 06:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-for-max-date-of-each-month/m-p/596497#M477517</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-04-19T06:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension for max date of each month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-for-max-date-of-each-month/m-p/596498#M477518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this by two ways...&lt;/P&gt;&lt;P&gt;Create one more field in your script...&lt;/P&gt;&lt;P&gt;Month(DateField) as Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Using Calculated Dimension&lt;/P&gt;&lt;P&gt;Aggr(Max(DateField),Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression &lt;/P&gt;&lt;P&gt;SUM(Sales) //or whatever as per your data model&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Using Set Analysis&lt;/P&gt;&lt;P&gt;Dimension &lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;TIck Suppress When Value is NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Aggr(SUM({&amp;lt;Date = {"=Aggr(Max(Date),Month)"}&amp;gt;}Sales),Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance of 2nd method is much better for Large DataBase...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 11:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-for-max-date-of-each-month/m-p/596498#M477518</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-19T11:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension for max date of each month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-for-max-date-of-each-month/m-p/596499#M477519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Manish! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your 2nd method using set analysis is exactly what I was trying to figure out. It does not sum all the values for each month, but rather just displays a single value that corresponds to the single date that is displayed, which is what I wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 18:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-for-max-date-of-each-month/m-p/596499#M477519</guid>
      <dc:creator />
      <dc:date>2014-04-19T18:38:59Z</dc:date>
    </item>
  </channel>
</rss>

