<?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 Year calculation based on selected date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Year-calculation-based-on-selected-date/m-p/2527503#M107405</link>
    <description>&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;I have a scenario where i want to show the text label based on the below scenario. Please suggest.&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;Year&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;Quarter&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;2024&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;Q1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;2024&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;Q2&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;2024&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;Q3&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;2024&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;Q4&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;2025&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;Q1&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;2025&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;Q2&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;&lt;EM&gt;2025&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;&lt;EM&gt;Q3&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;here we have &lt;U&gt;4-Quarters&lt;/U&gt; data for 2024 and &lt;U&gt;3-Quarters&lt;/U&gt; for 2025.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;1. If the user selects Year as 2024, i should see the text label as 2024-Q4 as the max in Year 2024 is Q4.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;2. &lt;EM&gt;Approved&lt;/EM&gt; data for 2025 we have till Quarter 2 only. i should see text label as 2025-Q2.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Aug 2025 06:11:59 GMT</pubDate>
    <dc:creator>Kaushik2020</dc:creator>
    <dc:date>2025-08-17T06:11:59Z</dc:date>
    <item>
      <title>Year calculation based on selected date</title>
      <link>https://community.qlik.com/t5/App-Development/Year-calculation-based-on-selected-date/m-p/2527503#M107405</link>
      <description>&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;I have a scenario where i want to show the text label based on the below scenario. Please suggest.&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;Year&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;Quarter&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;2024&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;Q1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;2024&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;Q2&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;2024&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;Q3&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;2024&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;Q4&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;2025&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;Q1&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;2025&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;Q2&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;&lt;EM&gt;2025&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="georgia,palatino"&gt;&lt;STRONG&gt;&lt;EM&gt;Q3&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;here we have &lt;U&gt;4-Quarters&lt;/U&gt; data for 2024 and &lt;U&gt;3-Quarters&lt;/U&gt; for 2025.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;1. If the user selects Year as 2024, i should see the text label as 2024-Q4 as the max in Year 2024 is Q4.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;2. &lt;EM&gt;Approved&lt;/EM&gt; data for 2025 we have till Quarter 2 only. i should see text label as 2025-Q2.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Aug 2025 06:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-calculation-based-on-selected-date/m-p/2527503#M107405</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2025-08-17T06:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Year calculation based on selected date</title>
      <link>https://community.qlik.com/t5/App-Development/Year-calculation-based-on-selected-date/m-p/2527514#M107406</link>
      <description>&lt;P&gt;We can use the &lt;STRONG&gt;MaxString()&lt;/STRONG&gt; function here. &lt;BR /&gt;When a user selects a year—like 2025&lt;/P&gt;
&lt;P&gt;it will return the highest quarter for that year.&lt;/P&gt;
&lt;P&gt;For example, if all quarters (Q1 to Q4) are available for 2025, it will show &lt;STRONG&gt;2025 Q4&lt;/STRONG&gt; using this expression: &lt;STRONG&gt;&lt;CODE&gt;=[_Fiscal Year] &amp;amp; ' ' &amp;amp; MaxString([Fiscal Quarter])&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amit_Prajapati_0-1755444196088.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182907iF4F4A11E2DF4C7D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amit_Prajapati_0-1755444196088.png" alt="Amit_Prajapati_0-1755444196088.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If I select Fiscal Year 2026 it will return Q2&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amit_Prajapati_1-1755444357604.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182908iEFB734568CAD26C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amit_Prajapati_1-1755444357604.png" alt="Amit_Prajapati_1-1755444357604.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Let me know if it's working in you case or not.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Aug 2025 15:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-calculation-based-on-selected-date/m-p/2527514#M107406</guid>
      <dc:creator>Amit_Prajapati</dc:creator>
      <dc:date>2025-08-17T15:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Year calculation based on selected date</title>
      <link>https://community.qlik.com/t5/App-Development/Year-calculation-based-on-selected-date/m-p/2527577#M107409</link>
      <description>&lt;P&gt;You could pre-format a dual field for year quarter in the script.&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Dual(Year&amp;amp;'-'&amp;amp;Quarter ,Year&amp;amp;right(Quarter,1)) as Year_Quarter,&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;*&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;inline [&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;Year Quarter&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;2024 Q1&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;2024 Q2&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;2024 Q3&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;2024 Q4&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;2025 Q1&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;2025 Q2&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;2025 Q3&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;](delimiter&amp;nbsp; is ' ');&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you could just use&amp;nbsp;&lt;FONT face="courier new,courier"&gt;=maxstring(Year_Quarter)&lt;/FONT&gt; to fetch and present the lates year quarter value in your selection.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 12:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-calculation-based-on-selected-date/m-p/2527577#M107409</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-08-18T12:26:18Z</dc:date>
    </item>
  </channel>
</rss>

