<?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 Date range for years in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-range-for-years/m-p/1874146#M72089</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;I have a date field which consists of dates from 2020-01-01 to 2021-08-31&lt;/P&gt;
&lt;P&gt;I want to create a new field which will show below values when used in filter&lt;/P&gt;
&lt;P&gt;&amp;gt;2021-08-31&lt;/P&gt;
&lt;P&gt;2021&lt;/P&gt;
&lt;P&gt;2020&lt;/P&gt;
&lt;P&gt;&amp;lt;2020-01-01&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried it using if statement but not able to achieve the above expected results..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be really appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aatish&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 09:44:53 GMT</pubDate>
    <dc:creator>aatish12345</dc:creator>
    <dc:date>2021-12-22T09:44:53Z</dc:date>
    <item>
      <title>Date range for years</title>
      <link>https://community.qlik.com/t5/App-Development/Date-range-for-years/m-p/1874146#M72089</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;I have a date field which consists of dates from 2020-01-01 to 2021-08-31&lt;/P&gt;
&lt;P&gt;I want to create a new field which will show below values when used in filter&lt;/P&gt;
&lt;P&gt;&amp;gt;2021-08-31&lt;/P&gt;
&lt;P&gt;2021&lt;/P&gt;
&lt;P&gt;2020&lt;/P&gt;
&lt;P&gt;&amp;lt;2020-01-01&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried it using if statement but not able to achieve the above expected results..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be really appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aatish&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 09:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-range-for-years/m-p/1874146#M72089</guid>
      <dc:creator>aatish12345</dc:creator>
      <dc:date>2021-12-22T09:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date range for years</title>
      <link>https://community.qlik.com/t5/App-Development/Date-range-for-years/m-p/1874161#M72093</link>
      <description>&lt;P&gt;Try an IF statement like this&lt;/P&gt;
&lt;P&gt;If(DateField&amp;gt;=makedate(2021,9),'&amp;gt;2021-08-31', If(Year(DateField)=2021,'2021', if(Year(DateField)=2020,'2020','&amp;lt;2020-01-01')))&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 10:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-range-for-years/m-p/1874161#M72093</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-12-22T10:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date range for years</title>
      <link>https://community.qlik.com/t5/App-Development/Date-range-for-years/m-p/1874188#M72099</link>
      <description>&lt;P&gt;Hi Vegar,&lt;/P&gt;
&lt;P&gt;Thanks for the reply!&lt;/P&gt;
&lt;P&gt;Actually I want to make a code dynamic.&lt;/P&gt;
&lt;P&gt;The solution you've provided includes hardcoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aatish&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 11:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-range-for-years/m-p/1874188#M72099</guid>
      <dc:creator>aatish12345</dc:creator>
      <dc:date>2021-12-22T11:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date range for years</title>
      <link>https://community.qlik.com/t5/App-Development/Date-range-for-years/m-p/1874190#M72100</link>
      <description>&lt;P&gt;Then you would need to replace the har coded&amp;nbsp; parts with some kind of logic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively you could look into creating an interval table and then apply your groups using &lt;A href="https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/IntervalMatch.htm" target="_self"&gt;interval match&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 11:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-range-for-years/m-p/1874190#M72100</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-12-22T11:22:52Z</dc:date>
    </item>
  </channel>
</rss>

