<?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: Make a button to select the date range of the previous year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2413970#M94912</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77610"&gt;@Magogar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;try to adjust like:&lt;/P&gt;
&lt;P&gt;max(&lt;SPAN&gt;[fecha]&lt;/SPAN&gt;)-1&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;year(today())-1&lt;BR /&gt;&lt;BR /&gt;Regarts,&lt;BR /&gt;Matheus&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 12:11:39 GMT</pubDate>
    <dc:creator>MatheusC</dc:creator>
    <dc:date>2024-02-02T12:11:39Z</dc:date>
    <item>
      <title>Make a button to select the date range of the previous year</title>
      <link>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2413959#M94910</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;How can I make a button to select the date range of the previous year. Everything I've tried so far fails.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Magogar_0-1706874611142.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158925i1A4D1C78DB00589D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Magogar_0-1706874611142.png" alt="Magogar_0-1706874611142.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Magogar_1-1706874924367.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158926i95A2F7FF4E3BC794/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Magogar_1-1706874924367.png" alt="Magogar_1-1706874924367.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Year(max([fecha]))-1&lt;/P&gt;
&lt;P&gt;=(max({&amp;lt;[fecha.autoCalendar.Year]={"$(=Year(max([fecha])))"}&amp;gt;}[fecha]))-1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 11:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2413959#M94910</guid>
      <dc:creator>Magogar</dc:creator>
      <dc:date>2024-02-02T11:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Make a button to select the date range of the previous year</title>
      <link>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2413970#M94912</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77610"&gt;@Magogar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;try to adjust like:&lt;/P&gt;
&lt;P&gt;max(&lt;SPAN&gt;[fecha]&lt;/SPAN&gt;)-1&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;year(today())-1&lt;BR /&gt;&lt;BR /&gt;Regarts,&lt;BR /&gt;Matheus&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 12:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2413970#M94912</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-02-02T12:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Make a button to select the date range of the previous year</title>
      <link>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2413985#M94913</link>
      <description>&lt;P&gt;Thanks, but it doesn't work. The dates are in DD/MM/YYYY format, and I want to get the date range of the previous entire year. For the buttons I don't know how to write it.&lt;/P&gt;
&lt;P&gt;=Year(max([fecha]))-1&lt;/P&gt;
&lt;P&gt;=max(year([fecha.autoCalendar.Year]))-1&lt;/P&gt;
&lt;P&gt;=max(year([fecha.autoCalendar.Year])-1)&lt;/P&gt;
&lt;P&gt;=max([fecha.autoCalendar.Year])-1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 12:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2413985#M94913</guid>
      <dc:creator>Magogar</dc:creator>
      <dc:date>2024-02-02T12:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Make a button to select the date range of the previous year</title>
      <link>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2414019#M94914</link>
      <description>&lt;P&gt;see with the following expression,&amp;nbsp;&lt;STRONG&gt;put your date field&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjJvtSA2YyEAxUmqpUCHca-AlQQ3ewLegQIBRAU"&gt;&lt;SPAN class="Y2IQFc"&gt;Concat({&amp;lt;&lt;SPAN&gt;[fecha]&lt;/SPAN&gt;= {"&amp;gt;=$(=Date(YearStart(max(&lt;SPAN&gt;[fecha]&lt;/SPAN&gt;),-1),'DD/MM/YYYY'))&amp;lt;=$(=Date(Yearend(max(&lt;SPAN&gt;[fecha]&lt;/SPAN&gt;),- 1),'DD/MM/YYYY'))"}&amp;gt;} DISTINCT date(&lt;SPAN&gt;[fecha]&lt;/SPAN&gt;), ';' )&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Regarts,&lt;BR /&gt;Matheus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 12:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2414019#M94914</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-02-02T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Make a button to select the date range of the previous year</title>
      <link>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2414035#M94918</link>
      <description>&lt;P&gt;Awesome! it works perfectly. Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 13:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Make-a-button-to-select-the-date-range-of-the-previous-year/m-p/2414035#M94918</guid>
      <dc:creator>Magogar</dc:creator>
      <dc:date>2024-02-02T13:08:41Z</dc:date>
    </item>
  </channel>
</rss>

