<?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 Sheet Action: Show only data for the last year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sheet-Action-Show-only-data-for-the-last-year/m-p/1877298#M72323</link>
    <description>&lt;P&gt;I have an App that contains data for several years but when accessing a sheet I want to only ever show the last year, while at the same time keeping selections from other sheets. So no Bookmarks.&lt;/P&gt;
&lt;P&gt;I use a sheet Action with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Select values matching search criteria&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;on my field&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;%date&lt;/EM&gt; (date with format DD.MM.YYYY)&lt;/P&gt;
&lt;P&gt;and this is my formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;='&amp;gt;=MonthStart(today(), -12)'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the documentation it has to be enclosed in single quotes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But as a result it doesn't select anything.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Before I had a bookmark using this formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{&amp;lt;%date={"= %date &amp;gt;= MonthStart(today(), -12)"}&amp;gt;}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and it worked perfectly, so it's not a problem of my data or the MonthStart() formula.&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 16:52:05 GMT</pubDate>
    <dc:creator>Kellerassel</dc:creator>
    <dc:date>2024-11-16T16:52:05Z</dc:date>
    <item>
      <title>Sheet Action: Show only data for the last year</title>
      <link>https://community.qlik.com/t5/App-Development/Sheet-Action-Show-only-data-for-the-last-year/m-p/1877298#M72323</link>
      <description>&lt;P&gt;I have an App that contains data for several years but when accessing a sheet I want to only ever show the last year, while at the same time keeping selections from other sheets. So no Bookmarks.&lt;/P&gt;
&lt;P&gt;I use a sheet Action with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Select values matching search criteria&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;on my field&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;%date&lt;/EM&gt; (date with format DD.MM.YYYY)&lt;/P&gt;
&lt;P&gt;and this is my formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;='&amp;gt;=MonthStart(today(), -12)'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the documentation it has to be enclosed in single quotes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But as a result it doesn't select anything.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Before I had a bookmark using this formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{&amp;lt;%date={"= %date &amp;gt;= MonthStart(today(), -12)"}&amp;gt;}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and it worked perfectly, so it's not a problem of my data or the MonthStart() formula.&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 16:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sheet-Action-Show-only-data-for-the-last-year/m-p/1877298#M72323</guid>
      <dc:creator>Kellerassel</dc:creator>
      <dc:date>2024-11-16T16:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet Action: Show only data for the last year</title>
      <link>https://community.qlik.com/t5/App-Development/Sheet-Action-Show-only-data-for-the-last-year/m-p/1877339#M72327</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155989"&gt;@Kellerassel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try this&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{&amp;lt;%date={"&amp;gt;= $(=Num(YearStart(Max(DateField))))&amp;lt;=$(Num(Max(DateField)))"}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 08:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sheet-Action-Show-only-data-for-the-last-year/m-p/1877339#M72327</guid>
      <dc:creator>Vishal_Gupta</dc:creator>
      <dc:date>2022-01-05T08:56:04Z</dc:date>
    </item>
  </channel>
</rss>

