<?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 Display years dynamically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327115#M120389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my file i need to display last years in a single to variable based on one field, it should be dynamical changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In below to statement&amp;nbsp; is a field "DistinctCaptureDate", based on this field last 7 years should display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(max(DistinctCaptureDate))-1&amp;nbsp; to&amp;nbsp; Year(max(DistinctCaptureDate))-7&amp;nbsp; should store in a single variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i work on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check the attached QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2011 13:19:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-28T13:19:10Z</dc:date>
    <item>
      <title>Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327115#M120389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my file i need to display last years in a single to variable based on one field, it should be dynamical changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In below to statement&amp;nbsp; is a field "DistinctCaptureDate", based on this field last 7 years should display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(max(DistinctCaptureDate))-1&amp;nbsp; to&amp;nbsp; Year(max(DistinctCaptureDate))-7&amp;nbsp; should store in a single variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i work on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check the attached QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 13:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327115#M120389</guid>
      <dc:creator />
      <dc:date>2011-06-28T13:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327116#M120390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know if this makes many sense, but you can try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=Concat(ValueLoop(Max(TOTAL Year(DistinctCaptureDate)) -7, Max(TOTAL Year(DistinctCaptureDate)) -1, 1), ',')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get all the values within the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327116#M120390</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-28T14:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327117#M120391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code in variable value.&amp;nbsp; Then it is showing like this 2004,2005,2006,2007,2008,2009,2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it should show like below (in a vertical order without having commas).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2004&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2005&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2006&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2007&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2008&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2009&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327117#M120391</guid>
      <dc:creator />
      <dc:date>2011-06-28T14:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327118#M120392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Concat(ValueLoop(Max(TOTAL Year(DistinctCaptureDate)) -7, Max(TOTAL Year(DistinctCaptureDate)) -1, 1), chr(13))&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327118#M120392</guid>
      <dc:creator />
      <dc:date>2011-06-28T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327119#M120393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached sample, mostly the already proposed way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327119#M120393</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-06-28T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327120#M120394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot open your file, bcoz my Qlikview is personalized version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls send the steps to implement in my QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327120#M120394</guid>
      <dc:creator />
      <dc:date>2011-06-28T14:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327121#M120395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Variable vNYear to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ValueLoop(year(vMaxCapDate)-7,year(vMaxCapDate)-1, 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(no equal sign)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set field expression to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(vNYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327121#M120395</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-06-28T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327122#M120396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is showing years in listbox but one problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your steps BUT when i select&amp;nbsp; a particular year in listbox, it is not selecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327122#M120396</guid>
      <dc:creator />
      <dc:date>2011-06-28T14:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327123#M120397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, we have just created a list of values, no connection to other data tables. So you can't use this box for selection, just for display.&lt;/P&gt;&lt;P&gt;As I understand, the task is to generate just the list of the years, but there is no requirement for selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a requirement, you might need to add a calendar to your data model (and then limit the list box to the given years, but this is somewhat more then just two lines).&lt;/P&gt;&lt;P&gt;[Besides, there is no data for past years &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 15:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327123#M120397</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-06-28T15:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327124#M120398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached QVW file, there is a field "DistinctCaptureDate". Based on that last 7 years should display in the listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i select a particular date from "DistinctCaptureDate" field that year should be highleted in the "DistinctCaptureyear" listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i work on this. Pls see the attached QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 05:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327124#M120398</guid>
      <dc:creator />
      <dc:date>2011-06-29T05:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display years dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327125#M120399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I said in my previous post, there is no connection between this list of 7 years and your DistinctCaptureDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We created a synthetic dimension, but no link to your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to filter your data for years, you can add a year field to your data model and filter this for say the last seven years (if you want to display all this seven years without having actual data, you can additionally add a calendar table to your data model). I posted a proposal for this to another of your postings yesterday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's pretty hard to tell what is the right solution for your needs, maybe you can tell us the business need or learning exercise detail description &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 09:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-years-dynamically/m-p/327125#M120399</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-06-29T09:53:53Z</dc:date>
    </item>
  </channel>
</rss>

