<?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: Trigger to default Select to default value or previous selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316176#M832609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So when multiple years are selected, then which would be the previous year? Lets say you selected 2017 and 2016, previous year will be 2015?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 00:48:09 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-20T00:48:09Z</dc:date>
    <item>
      <title>Trigger to default Select to default value or previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316173#M832606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I use the following trigger to set a Year field selection to Variable1 if Year has no prior selection, or to its previous value. This works if only a single year is preselected. But if multiple years are selected, it fails. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =if(len(getFieldSelections(Year))=0,Year(Variable1),getFieldSelections(Year))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316173#M832606</guid>
      <dc:creator>nickedw0</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to default Select to default value or previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316174#M832607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is Variable1 here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 16:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316174#M832607</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-19T16:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to default Select to default value or previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316175#M832608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variable1 has the current date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 00:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316175#M832608</guid>
      <dc:creator>nickedw0</dc:creator>
      <dc:date>2017-06-20T00:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to default Select to default value or previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316176#M832609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So when multiple years are selected, then which would be the previous year? Lets say you selected 2017 and 2016, previous year will be 2015?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 00:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316176#M832609</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-20T00:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to default Select to default value or previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316177#M832610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;Try this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;=if(getselectioncount(Year)=0,Year(Variable1),'|'&amp;amp;concat(Year,',')&amp;amp;'|')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 01:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316177#M832610</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2017-06-20T01:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to default Select to default value or previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316178#M832611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Sorry, ignore above&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto;"&gt;It would be&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;=if(getselectedcount(Year)=0,Year(Variable1),'('&amp;amp;concat(Year,'|')&amp;amp;')')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 02:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316178#M832611</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2017-06-20T02:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to default Select to default value or previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316179#M832612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;This is close to perfect. I changed to:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if(getselectedcount(Year)=0,Year(Variable1),'('&amp;amp;concat(Year,'|')&amp;amp;')')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Problem is each iteration adds a set of brackets, like (((2015|2016))) after 3rd time sheet is selected. or ((((((2015|2016)))))) after 6th.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 02:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316179#M832612</guid>
      <dc:creator>nickedw0</dc:creator>
      <dc:date>2017-06-20T02:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to default Select to default value or previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316180#M832613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, That was the correct answer. The extra brackets were comming from an exit trigger I forgot to remove.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 02:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316180#M832613</guid>
      <dc:creator>nickedw0</dc:creator>
      <dc:date>2017-06-20T02:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to default Select to default value or previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316181#M832614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Ok,you can mark my answer as correct answer if it was helpful, have a good day:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 03:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-default-Select-to-default-value-or-previous-selection/m-p/1316181#M832614</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2017-06-20T03:15:12Z</dc:date>
    </item>
  </channel>
</rss>

