<?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: Limit years in a table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Limit-years-in-a-table/m-p/1379289#M31293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lorenzo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure that I follow what you try to do, but here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating the dimension in your chart you could use the following expression &lt;/P&gt;&lt;P&gt;=If(Num(Year(DateField))&amp;gt;=$(vYearFrom),Year(DateField))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which needs that you had created the following variable inyour script:&lt;/P&gt;&lt;P&gt;Let vYearFrom = Num(Year(Today())) - 6;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2017 00:49:56 GMT</pubDate>
    <dc:creator>luismadriz</dc:creator>
    <dc:date>2017-10-31T00:49:56Z</dc:date>
    <item>
      <title>Limit years in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Limit-years-in-a-table/m-p/1379288#M31292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a range of years in my data from 01/01/2000 and 01/01/2017, but I want to 1) limit the table to displaying only the last 7 seven years and 2) only display the year. I've tried all sorts of expressions, but can't get it right. Sometimes the Expression Editor displays a syntax error, sometimes it does not, but when I click apply, I see "Invalid Dimension" in the table. How can I make this work?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Limit-years-in-a-table/m-p/1379288#M31292</guid>
      <dc:creator>lthurman</dc:creator>
      <dc:date>2024-11-16T09:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Limit years in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Limit-years-in-a-table/m-p/1379289#M31293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lorenzo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure that I follow what you try to do, but here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating the dimension in your chart you could use the following expression &lt;/P&gt;&lt;P&gt;=If(Num(Year(DateField))&amp;gt;=$(vYearFrom),Year(DateField))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which needs that you had created the following variable inyour script:&lt;/P&gt;&lt;P&gt;Let vYearFrom = Num(Year(Today())) - 6;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 00:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Limit-years-in-a-table/m-p/1379289#M31293</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-10-31T00:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Limit years in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Limit-years-in-a-table/m-p/1379290#M31294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this is precisely what I'm looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 15:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Limit-years-in-a-table/m-p/1379290#M31294</guid>
      <dc:creator>lthurman</dc:creator>
      <dc:date>2017-10-31T15:05:38Z</dc:date>
    </item>
  </channel>
</rss>

