<?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: pre selecting multiple year in a sheet in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851186#M993756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use a if statement in your trigger:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetSelectedCount(Year) &amp;lt; 2, Max({1}Year))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 12:12:57 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-06-30T12:12:57Z</dc:date>
    <item>
      <title>pre selecting multiple year in a sheet</title>
      <link>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851185#M993755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple sheets. I have created a trigger that selects the latest year whenever a user clicks on a sheet.&lt;/P&gt;&lt;P&gt;However if this user selects multiple year, and goes back to that sheet, he still sees the latest year.&lt;/P&gt;&lt;P&gt;My question: how configure that a sheet is by default the latest year and if a user selects other years, QV holds these values.&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;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851185#M993755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-30T12:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: pre selecting multiple year in a sheet</title>
      <link>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851186#M993756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use a if statement in your trigger:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetSelectedCount(Year) &amp;lt; 2, Max({1}Year))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851186#M993756</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-30T12:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: pre selecting multiple year in a sheet</title>
      <link>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851187#M993757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to handle this you need to follow a two step process.&lt;/P&gt;&lt;P&gt;while setting the trigger you need to count the year selection made and set the variable using&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on changes event and then in &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on select you need to set the field value as well as the variable (setting the variable again is also important here ). Finally using the variable count you can set the field trigger &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851187#M993757</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-06-30T12:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: pre selecting multiple year in a sheet</title>
      <link>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851188#M993758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be set the trigger value like this:&lt;/P&gt;&lt;P&gt;if(getselectedcount(Year)=0,Max(Year))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851188#M993758</guid>
      <dc:creator>ankit777</dc:creator>
      <dc:date>2015-06-30T12:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: pre selecting multiple year in a sheet</title>
      <link>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851189#M993759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;trigger should be (y is the year field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(GetSelectedCount(y) = 0, Max({1}y), '(' &amp;amp; Concat(DISTINCT y, '|') &amp;amp; ')')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851189#M993759</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-30T12:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: pre selecting multiple year in a sheet</title>
      <link>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851190#M993760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have now on one sheet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;search&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =max(Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but If I go to the next sheet and select more than 1 year and go back to my first sheet, the max year is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851190#M993760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-30T12:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: pre selecting multiple year in a sheet</title>
      <link>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851191#M993763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;A _jive_internal="true" href="https://community.qlik.com/people/maxgro"&gt;Massimo Grossi&lt;/A&gt;‌ solution and see if that works. If not, would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851191#M993763</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-30T12:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: pre selecting multiple year in a sheet</title>
      <link>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851192#M993766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use tis macro on ur document with triggers and see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub On_Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.ClearAll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("Year").Select Year(Now())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851192#M993766</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-06-30T12:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: pre selecting multiple year in a sheet</title>
      <link>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851193#M993767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;trigger in sheet6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pre-selecting-multiple-year-in-a-sheet/m-p/851193#M993767</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-30T12:52:29Z</dc:date>
    </item>
  </channel>
</rss>

