<?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: Custom column to show dates/Quarter label - Year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537854#M108874</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;CreatedDate,&lt;BR /&gt;CASE&lt;BR /&gt;WHEN MONTH(CreatedDate) IN (11, 12)&lt;BR /&gt;THEN EOMONTH(DATEFROMPARTS(YEAR(CreatedDate) + 1, 2, 1))&lt;/P&gt;&lt;P&gt;WHEN MONTH(CreatedDate) IN (1, 2)&lt;BR /&gt;THEN EOMONTH(DATEFROMPARTS(YEAR(CreatedDate), 2, 1))&lt;/P&gt;&lt;P&gt;WHEN MONTH(CreatedDate) IN (3, 4, 5)&lt;BR /&gt;THEN EOMONTH(DATEFROMPARTS(YEAR(CreatedDate), 5, 1))&lt;/P&gt;&lt;P&gt;WHEN MONTH(CreatedDate) IN (6, 7,8)&lt;BR /&gt;THEN EOMONTH(DATEFROMPARTS(YEAR(CreatedDate), 8, 1))&lt;/P&gt;&lt;P&gt;WHEN MONTH(CreatedDate) IN (9, 10)&lt;BR /&gt;THEN EOMONTH(DATEFROMPARTS(YEAR(CreatedDate), 10, 1))&lt;/P&gt;&lt;P&gt;ELSE NULL&lt;BR /&gt;END AS CustomDate&lt;BR /&gt;FROM&lt;BR /&gt;YourTableName;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2025 08:42:54 GMT</pubDate>
    <dc:creator>Nagaraju_KCS</dc:creator>
    <dc:date>2025-12-03T08:42:54Z</dc:date>
    <item>
      <title>Custom column to show dates/Quarter label - Year</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537610#M108849</link>
      <description>&lt;P&gt;Dear All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a scenario where i get dates in CreatedDate column in my database in below format. I want to show a column named CustomDate which show the last/max date for the end month. below are the conditions for Quarters.&lt;/P&gt;&lt;P&gt;Q1 -&amp;gt; 01 Nov &lt;STRONG&gt;Previous year&lt;/STRONG&gt; to &lt;STRONG&gt;Current year&lt;/STRONG&gt; Feb end. refer below example dates&lt;BR /&gt;01-Nov-2024&lt;BR /&gt;27-Nov-2024&lt;BR /&gt;10-Dec-2024&lt;BR /&gt;10-Feb-2025&lt;/P&gt;&lt;P&gt;For these dates i want a column&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q2 -&amp;gt; 01 March Current year till 31 May Current year&lt;BR /&gt;Q3 -&amp;gt; 01 June Current year till 31 Aug Current year&lt;BR /&gt;Q4 -&amp;gt; 01 Sept current year till 31 Oct Current year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the example above, I would like to see dates in CustomDates column as below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;28-Feb-2025&lt;/P&gt;&lt;P&gt;31-May-2025&lt;/P&gt;&lt;P&gt;31-Aug-2025&lt;/P&gt;&lt;P&gt;31-Oct-2025&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Nov 2025 09:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537610#M108849</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2025-11-30T09:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom column to show dates/Quarter label - Year</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537611#M108850</link>
      <description>&lt;P&gt;You can use the Quartername() function to do this easily, but you'll have to add pick/match or an if() statement to control the exact formatting.&lt;/P&gt;&lt;P&gt;Quartername(Date,0,12) should be the right syntax, I believe, though it might be (Date,-1,12), not 100% sure and can't test right now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Nov 2025 10:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537611#M108850</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-11-30T10:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom column to show dates/Quarter label - Year</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537613#M108851</link>
      <description>&lt;P&gt;I will wait for more suggestions in this. with SQL query it is working well. but it is taking too much time in query load. Here the issue is these months are not part of generic quarters hence we need to tag them based on the months. Your prompt revert to the post is much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Nov 2025 11:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537613#M108851</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2025-11-30T11:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom column to show dates/Quarter label - Year</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537854#M108874</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;CreatedDate,&lt;BR /&gt;CASE&lt;BR /&gt;WHEN MONTH(CreatedDate) IN (11, 12)&lt;BR /&gt;THEN EOMONTH(DATEFROMPARTS(YEAR(CreatedDate) + 1, 2, 1))&lt;/P&gt;&lt;P&gt;WHEN MONTH(CreatedDate) IN (1, 2)&lt;BR /&gt;THEN EOMONTH(DATEFROMPARTS(YEAR(CreatedDate), 2, 1))&lt;/P&gt;&lt;P&gt;WHEN MONTH(CreatedDate) IN (3, 4, 5)&lt;BR /&gt;THEN EOMONTH(DATEFROMPARTS(YEAR(CreatedDate), 5, 1))&lt;/P&gt;&lt;P&gt;WHEN MONTH(CreatedDate) IN (6, 7,8)&lt;BR /&gt;THEN EOMONTH(DATEFROMPARTS(YEAR(CreatedDate), 8, 1))&lt;/P&gt;&lt;P&gt;WHEN MONTH(CreatedDate) IN (9, 10)&lt;BR /&gt;THEN EOMONTH(DATEFROMPARTS(YEAR(CreatedDate), 10, 1))&lt;/P&gt;&lt;P&gt;ELSE NULL&lt;BR /&gt;END AS CustomDate&lt;BR /&gt;FROM&lt;BR /&gt;YourTableName;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 08:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537854#M108874</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2025-12-03T08:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom column to show dates/Quarter label - Year</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537925#M108877</link>
      <description>&lt;P&gt;Thanks for the reply. I have currently handled this via the process you mentioned via ETL.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 10:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-column-to-show-dates-Quarter-label-Year/m-p/2537925#M108877</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2025-12-03T10:31:43Z</dc:date>
    </item>
  </channel>
</rss>

