<?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 Match selected values in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Match-selected-values-in-expression/m-p/217475#M70670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Lets say i load the following inline table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Id, Value&lt;BR /&gt; 1, A&lt;BR /&gt; 2, B&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and the following variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;SET A = 1;&lt;BR /&gt;SET B = 2;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then I create a Listbox with field "Value", so the user can select none of them, all of them or just one of them.&lt;/P&gt;&lt;P&gt;Then I create a chart where the expression in the chart will depend on if one of the values is selected. I.e. I would like an expressions like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;IF(IsSelected(Id, A), ..., ...)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I have looked at the GetFieldSelections() function but that will not give me the "Id" field when the selectbox displays the "Value" field.&lt;/P&gt;&lt;P&gt;Is this possible? If so what would be the simpliest and most elegant way of doing this? I could always match the "Value" but I don't want to if I don't have to.&lt;/P&gt;&lt;P&gt;br&lt;BR /&gt;Per-Anders Söderqvist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2009 04:32:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-16T04:32:16Z</dc:date>
    <item>
      <title>Match selected values in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Match-selected-values-in-expression/m-p/217475#M70670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Lets say i load the following inline table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Id, Value&lt;BR /&gt; 1, A&lt;BR /&gt; 2, B&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and the following variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;SET A = 1;&lt;BR /&gt;SET B = 2;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then I create a Listbox with field "Value", so the user can select none of them, all of them or just one of them.&lt;/P&gt;&lt;P&gt;Then I create a chart where the expression in the chart will depend on if one of the values is selected. I.e. I would like an expressions like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;IF(IsSelected(Id, A), ..., ...)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I have looked at the GetFieldSelections() function but that will not give me the "Id" field when the selectbox displays the "Value" field.&lt;/P&gt;&lt;P&gt;Is this possible? If so what would be the simpliest and most elegant way of doing this? I could always match the "Value" but I don't want to if I don't have to.&lt;/P&gt;&lt;P&gt;br&lt;BR /&gt;Per-Anders Söderqvist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 04:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-selected-values-in-expression/m-p/217475#M70670</guid>
      <dc:creator />
      <dc:date>2009-10-16T04:32:16Z</dc:date>
    </item>
  </channel>
</rss>

