<?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: Range of selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609814#M225085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hej Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply - however, I can't see the attachment, could you send it to &lt;A href="mailto:mar10n_@hotmail.com"&gt;mar10n_@hotmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 12:48:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-07T12:48:55Z</dc:date>
    <item>
      <title>Range of selection</title>
      <link>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609810#M225081</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;I have a number of columns in a straight tabel to which i have added the condition, that they should only be visible if a certain year is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The minimum year that I can show data from is 2010 and the 2014 is the newest (maximum) year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a selection box that showes the years 2010, 2011, 2012, 2013 and 2014 - hence, when I select the years 2011 and 2012 I only see the columns that calculates for those years (2 columns).&amp;nbsp; If I only choose 2013, I only get 1 column with the data from the year 2013 - so far so good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when select the years 2010 and 2012, I get 3 columns, 2010, 2011 and 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following expression, so please let me know, how I can make sure that the columns get shown only if the certain year is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Year.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/54393_Year.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason it says Year-3 is that I have designet 4 columns to show at max, Max Year, Max Year-1, Max Year-2 and Max Year-3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 12:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609810#M225081</guid>
      <dc:creator />
      <dc:date>2014-03-06T12:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Range of selection</title>
      <link>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609811#M225082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can change to a pivot table then this would be much simpler and easier to maintain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;change to pivot table&lt;/LI&gt;&lt;LI&gt;add Year as a dimension&lt;/LI&gt;&lt;LI&gt;change the first year expression to remove the year condition and delete (or disable) the remaining expressions&lt;/LI&gt;&lt;LI&gt;drag the Year to the top of the pivot to create year columns&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the chart will display exactly what you select in the year list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to display the 3 years up to the maximum possible, then add this set expression clause to your expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {.... &amp;lt;Year = {"&amp;gt;= $(= Max({1} Year) - 3) &amp;lt;= $(=&amp;nbsp; Max)({1} Year))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... or drop the {1} if you want the maximum selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 12:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609811#M225082</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-06T12:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Range of selection</title>
      <link>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609812#M225083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pivot table is not an option for the report - and the suggestion that you have made is unfortunately not suitable for me. I would like to send you the .qvw file but the data that I work with is classified..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions as to how an expression can refer to selection made in a selection box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 12:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609812#M225083</guid>
      <dc:creator />
      <dc:date>2014-03-06T12:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Range of selection</title>
      <link>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609813#M225084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hope I understand your question; see attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 20:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609813#M225084</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-06T20:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Range of selection</title>
      <link>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609814#M225085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hej Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply - however, I can't see the attachment, could you send it to &lt;A href="mailto:mar10n_@hotmail.com"&gt;mar10n_@hotmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609814#M225085</guid>
      <dc:creator />
      <dc:date>2014-03-07T12:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Range of selection</title>
      <link>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609815#M225086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do it using a straight table with 1 expression per year and a conditional show expression for each year. This is not that dynamic, as the chart will need to be manually updated one a year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To take the same expression as before, adapted to a conditional show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(2013 &amp;gt;= Max(Year) - 3 And 2013 &amp;lt;= Max(Year), 1, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(2014 &amp;gt;= Max(Year) - 3 And 2014 &amp;lt;= Max(Year), 1, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jonathan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609815#M225086</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-10T15:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Range of selection</title>
      <link>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609816#M225087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Half of my Graphs are pivot tables, so for them I guess the solution will not Work.&lt;/P&gt;&lt;P&gt;the remaining tables are all straight tables, and for them, it seems to be working with you solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 08:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-of-selection/m-p/609816#M225087</guid>
      <dc:creator />
      <dc:date>2014-03-11T08:27:28Z</dc:date>
    </item>
  </channel>
</rss>

