<?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: Conditional trigger Select field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-trigger-Select-field/m-p/339160#M492019</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;I didn't try this but hope it works:&lt;BR /&gt;Action is selection in flield.&lt;BR /&gt;Field is Field2.&lt;BR /&gt;Search string is:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(vSelection=1, &amp;lt;value of Field1&amp;gt;, &amp;lt;value of Field2&amp;gt;).&lt;/P&gt;&lt;P&gt;If it doesn't work, the oly alternative is to use macro, I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2012 10:25:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-06T10:25:01Z</dc:date>
    <item>
      <title>Conditional trigger Select field</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-trigger-Select-field/m-p/339159#M492018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a hard time finding a solution to the following challenge:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a variable called &lt;EM&gt;vselection.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;While vselection has the value 1, I want an automatic trigger on Field 1, which selects the same values in Field 2. Something like a synchronisation.&lt;/P&gt;&lt;P&gt;When the variable is on 0, the synchronisation should be turned off, thus selections in Field 1 don't affect selections in Field 2 anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idea 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code should look something like this:&lt;/P&gt;&lt;P&gt;Trigger in Field 1&lt;/P&gt;&lt;P&gt;Select Field&lt;/P&gt;&lt;P&gt;Field:&lt;/P&gt;&lt;P&gt;=if(vselection=1, [Field 2])&lt;/P&gt;&lt;P&gt;Selection:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;='=sum({&amp;lt;[Field 2]=[Field 1]&amp;gt;}1)' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Unfortunality though, QlikView does not support conditional statements in the Field section which means that the above code is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I&lt;A&gt;&lt;/A&gt;dea 2:&lt;/SPAN&gt;﻿&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Trigger in Field 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Select Field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Field:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[&lt;A&gt;&lt;/A&gt;Field 2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;S&lt;A&gt;&lt;/A&gt;election&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;A&gt;&lt;/A&gt;if(vselection=1,'=sum({&amp;lt;[Field 2]=[Field 1]&amp;gt;}1)')&lt;BR /&gt;&lt;BR /&gt;This works fine while vselection has the value 1. Once it's 0 though, the trigger clears Field 2 which is not desirable. I want to keep the selections in Field 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 10:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-trigger-Select-field/m-p/339159#M492018</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2012-08-06T10:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional trigger Select field</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-trigger-Select-field/m-p/339160#M492019</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;I didn't try this but hope it works:&lt;BR /&gt;Action is selection in flield.&lt;BR /&gt;Field is Field2.&lt;BR /&gt;Search string is:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(vSelection=1, &amp;lt;value of Field1&amp;gt;, &amp;lt;value of Field2&amp;gt;).&lt;/P&gt;&lt;P&gt;If it doesn't work, the oly alternative is to use macro, I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 10:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-trigger-Select-field/m-p/339160#M492019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-06T10:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional trigger Select field</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-trigger-Select-field/m-p/339161#M492020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply, Michael.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually tried this aswell but I didn't manage to work it out. The problem was how to syntax that the trigger should select the already selected Values in Field 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luckily, I found a working solution using alternate states:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy selection in &amp;lt;Standart&amp;gt; state to an alternate state, if vselection=1 is selected. &lt;/P&gt;&lt;P&gt;Make all necessary selection with "Select Field" Trigger.&lt;/P&gt;&lt;P&gt;If vselection=1, copy back alternate state 1 to &amp;lt;Standart&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 11:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-trigger-Select-field/m-p/339161#M492020</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2012-08-06T11:28:46Z</dc:date>
    </item>
  </channel>
</rss>

