<?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: Include two fields in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Include-two-fields-in-set-analysis/m-p/389925#M145501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm looking for is to have a set that includes a. and a set that includes a and b depending on which one the user selects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if(vInput = 'a + b',&amp;nbsp; avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'a','b'} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(vInput2)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(Input3)'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vSalesData)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vInput1)'} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(vInput2)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(Input3)'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vSalesData)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I've been playing around with an expression like the one above but I cant seem to get it to work. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 10:24:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-28T10:24:11Z</dc:date>
    <item>
      <title>Include two fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Include-two-fields-in-set-analysis/m-p/389923#M145499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My user has a graph were they can input how the data is selected ignoring current selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to perform a set analysis where for on of the fields they can select two values if they want to. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an input box that returns their selection. selection choice for input1: a,b or c&lt;/P&gt;&lt;P&gt;They will sometimes want to filter their results by a and b. so I have put in the option of selecting 'a','b','c' and 'a+b'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not sure how to approach this my current implementation only allows them to select one selection per field. It is only input 1 where I would like to give the option to input two selections. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vInput1)'} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(vInput2)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(Input3)'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vSalesData)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any suggestions are very much appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 18:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-two-fields-in-set-analysis/m-p/389923#M145499</guid>
      <dc:creator />
      <dc:date>2013-02-27T18:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Include two fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Include-two-fields-in-set-analysis/m-p/389924#M145500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your variable contains 'a','b','c' then you shouldn't enclose your variable expansion in single quotes: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;IField1&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; = {$(vInput1)}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'a+b' is unusable, so you should change that option to 'a','b'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If what you're asking is how you create a list of options for your input box then on the Constraints tab choose Predefined Values in Drop-down, check the option Listed values and enter &lt;EM&gt;'a','b','c';'a','b'&lt;/EM&gt;&amp;nbsp; (a semicolon separated list of values).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 19:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-two-fields-in-set-analysis/m-p/389924#M145500</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-27T19:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Include two fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Include-two-fields-in-set-analysis/m-p/389925#M145501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm looking for is to have a set that includes a. and a set that includes a and b depending on which one the user selects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if(vInput = 'a + b',&amp;nbsp; avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'a','b'} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(vInput2)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(Input3)'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vSalesData)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vInput1)'} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(vInput2)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IField3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(Input3)'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vSalesData)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I've been playing around with an expression like the one above but I cant seem to get it to work. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 10:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-two-fields-in-set-analysis/m-p/389925#M145501</guid>
      <dc:creator />
      <dc:date>2013-02-28T10:24:11Z</dc:date>
    </item>
  </channel>
</rss>

