<?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 Using triggers to choose many fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278815#M103810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works. Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. I see that set analysis needs to be applied there as well. &lt;/P&gt;&lt;P&gt;What about in the case of line style? How would I use that expression for line styles for this data in a line chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since E &amp;amp; F are added using set analysis, I can't just use the if statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( ProductID = 'F', '&amp;lt;S2&amp;gt;&amp;lt;W1.6&amp;gt;' )&lt;/P&gt;&lt;P&gt;to let the line be a dotted line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I can't quite combine the if statement with set analysis...&lt;/P&gt;&lt;P&gt;Any suggestions on that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2012 19:27:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-14T19:27:26Z</dc:date>
    <item>
      <title>Using triggers to choose many fields</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278809#M103804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TableX:&lt;/P&gt;&lt;P&gt;ProductDisplayName&lt;/P&gt;&lt;P&gt;ProductID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have these two fields above.&lt;/P&gt;&lt;P&gt;I want to use triggers so that when I make selections in ProductDisplayName,&lt;/P&gt;&lt;P&gt;I automatically select their corresponding ProductID, and on top of that, &lt;/P&gt;&lt;P&gt;two additional ProductID's that are not in the field ProductDisplayName.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 18:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278809#M103804</guid>
      <dc:creator />
      <dc:date>2012-02-13T18:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using triggers to choose many fields</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278810#M103805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood correctly, you could create triggers for field selection / change in document properties with action select in field, and as search string something like&lt;/P&gt;&lt;P&gt;='=sum({&amp;lt;ProductID=p(ProductDisplayName)+{E,F}&amp;gt;} 1)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where E,F are the two additional field value you want to keep selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached.&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>Mon, 13 Feb 2012 19:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278810#M103805</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-13T19:16:42Z</dc:date>
    </item>
    <item>
      <title>Using triggers to choose many fields</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278811#M103806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if the two fields are part of the same table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's just that I want to be using ProductID as the dimension of a chart, &lt;/P&gt;&lt;P&gt;but ProductDisplayName is the listbox visible to users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each ProductDisplayName is linked with one ProductID,&lt;/P&gt;&lt;P&gt;but I want to show two more ProductID's in the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 21:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278811#M103806</guid>
      <dc:creator />
      <dc:date>2012-02-13T21:06:47Z</dc:date>
    </item>
    <item>
      <title>Using triggers to choose many fields</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278812#M103807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the fields are part of the same table, they and their selection states are associated.&lt;/P&gt;&lt;P&gt;If you select one value in ProductDisplayName, you will notice that the associated value in ProductID is &lt;EM&gt;possible&lt;/EM&gt;, all other values are &lt;EM&gt;excluded. &lt;/EM&gt;QlikView won't allow the selection of an excluded value while keeping the original state. So you can't select in ProductDisplayName and then add other values that are logically excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you need to keep the ProductDisplayName in the same table? If you are thinking of applying actions to copy the selected values to ProductID anyway, I think it is better to store ProductDisplayName as a data island.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There might be also other approached to achieve what you want, I think we discussed using set analysis in a different thread already?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 23:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278812#M103807</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-13T23:31:51Z</dc:date>
    </item>
    <item>
      <title>Using triggers to choose many fields</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278813#M103808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see what you mean. Getting the possible values won't allow me to select the other values unless I keep ProductDisplayName as a data island. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you already helped me with Set Analysis regarding this issue. That worked out pretty nicely. I got the chart I wanted, but one detail is not working properly: &lt;STRONG&gt;color&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My table has these fields: &lt;/P&gt;&lt;P&gt;ProductID, ProductDisplayName, &lt;STRONG&gt;r, g, b&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;r&lt;/STRONG&gt;, &lt;STRONG&gt;g&lt;/STRONG&gt; and &lt;STRONG&gt;b&lt;/STRONG&gt; are the RGB color values specified for each Product ID. In the chart's expression, I specify the background color =rgb(r,g,b).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using our example of products A, B, C, D, E, F, with E&amp;amp;F being the two extra items, I can select any of A through D from the ProductDisplayName listbox and the chart will show E and F. However, only A-D show their specified RGB colors. E&amp;amp;F won't show their color properly; instead they show up as black.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductID = p(ProductID) + {'E'&amp;nbsp; , 'F'&amp;nbsp;&amp;nbsp; }, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductDisplayName =,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rating&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select E or F from Product, their colors do show up properly. I have no idea why this is happening &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;That is why I was trying to use triggers instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea of perhaps what may be the cause for the set analysis to not get my RGB colors properly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 14:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278813#M103808</guid>
      <dc:creator />
      <dc:date>2012-02-14T14:24:07Z</dc:date>
    </item>
    <item>
      <title>Using triggers to choose many fields</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278814#M103809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you probably need to use the same set expression also for your color attribute expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgb (&lt;/P&gt;&lt;P&gt;only( {&amp;lt; ProductID = p(ProductID) + {'E'&amp;nbsp; , 'F'&amp;nbsp;&amp;nbsp; },&amp;nbsp; ProductDisplayName = &amp;gt;} r),&lt;/P&gt;&lt;P&gt;only( {&amp;lt; ProductID = p(ProductID) + {'E'&amp;nbsp; , 'F'&amp;nbsp;&amp;nbsp; },&amp;nbsp; ProductDisplayName = &amp;gt;} g),&lt;/P&gt;&lt;P&gt;only( {&amp;lt; ProductID = p(ProductID) + {'E'&amp;nbsp; , 'F'&amp;nbsp;&amp;nbsp; },&amp;nbsp; ProductDisplayName = &amp;gt;} b) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 14:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278814#M103809</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-14T14:32:40Z</dc:date>
    </item>
    <item>
      <title>Using triggers to choose many fields</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278815#M103810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works. Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. I see that set analysis needs to be applied there as well. &lt;/P&gt;&lt;P&gt;What about in the case of line style? How would I use that expression for line styles for this data in a line chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since E &amp;amp; F are added using set analysis, I can't just use the if statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( ProductID = 'F', '&amp;lt;S2&amp;gt;&amp;lt;W1.6&amp;gt;' )&lt;/P&gt;&lt;P&gt;to let the line be a dotted line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I can't quite combine the if statement with set analysis...&lt;/P&gt;&lt;P&gt;Any suggestions on that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 19:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278815#M103810</guid>
      <dc:creator />
      <dc:date>2012-02-14T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Using triggers to choose many fields</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278816#M103811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&amp;nbsp; applying the only thing to ProductID.&lt;/P&gt;&lt;P&gt;=if (only( {&amp;lt;...&amp;gt;} ProductID ) =...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 19:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278816#M103811</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-14T19:52:42Z</dc:date>
    </item>
    <item>
      <title>Using triggers to choose many fields</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278817#M103812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for answering all my questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 20:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-choose-many-fields/m-p/278817#M103812</guid>
      <dc:creator />
      <dc:date>2012-02-14T20:39:15Z</dc:date>
    </item>
  </channel>
</rss>

