<?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: How to create a calculated dimension with only month end dates for each month? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-create-a-calculated-dimension-with-only-month-end-dates/m-p/137687#M9682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A better way to do this is to create a Month End field in a master calendar. Calculated dimensions can perform poorly on large data sets, and is should be easy enough to create the field in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you have 30,000 dates? Is this field a timestamp with time as well as date. You may want to split that field into two - a date field and a rounded time field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D&lt;EM&gt;ate(Floor(TimestampField)) as DateField,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // one entry per date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Time(Round(Frac(TimestampField), 1/1440)) as TimeField,&amp;nbsp;&amp;nbsp; // time rounded to the nearest minute (60*24 values)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Date(Floor(MonthEnd(TimestampField)), 'YYYY-MM') as MonthEndField,&amp;nbsp;&amp;nbsp; // per your requirement&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This lowers the cardinality of the date related fields which should improve performance as a whole.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2018 12:29:49 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2018-09-18T12:29:49Z</dc:date>
    <item>
      <title>How to create a calculated dimension with only month end dates for each month?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-calculated-dimension-with-only-month-end-dates/m-p/137685#M9680</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 have a Date field which has 30,000 dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create a Calculated Dimension that gives me the last date of each month from those dates?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-calculated-dimension-with-only-month-end-dates/m-p/137685#M9680</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2018-09-18T12:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a calculated dimension with only month end dates for each month?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-calculated-dimension-with-only-month-end-dates/m-p/137686#M9681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use monthend().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more understanding go through below link:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/date-time-functions.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/date-time-functions.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/date-time-fun…&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks:-&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-calculated-dimension-with-only-month-end-dates/m-p/137686#M9681</guid>
      <dc:creator>tush</dc:creator>
      <dc:date>2018-09-18T12:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a calculated dimension with only month end dates for each month?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-calculated-dimension-with-only-month-end-dates/m-p/137687#M9682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A better way to do this is to create a Month End field in a master calendar. Calculated dimensions can perform poorly on large data sets, and is should be easy enough to create the field in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you have 30,000 dates? Is this field a timestamp with time as well as date. You may want to split that field into two - a date field and a rounded time field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D&lt;EM&gt;ate(Floor(TimestampField)) as DateField,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // one entry per date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Time(Round(Frac(TimestampField), 1/1440)) as TimeField,&amp;nbsp;&amp;nbsp; // time rounded to the nearest minute (60*24 values)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Date(Floor(MonthEnd(TimestampField)), 'YYYY-MM') as MonthEndField,&amp;nbsp;&amp;nbsp; // per your requirement&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This lowers the cardinality of the date related fields which should improve performance as a whole.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-calculated-dimension-with-only-month-end-dates/m-p/137687#M9682</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-09-18T12:29:49Z</dc:date>
    </item>
  </channel>
</rss>

