<?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: Group selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873928#M305263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;What happen when you do this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=If(match([Status],'Cancelled','Closed','Rejected'),'Closed', &lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;If(match([Status], 'Open', 'Open'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Assuming the fourth option within Status is Open&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 13:39:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-06-22T13:39:02Z</dc:date>
    <item>
      <title>Group selections</title>
      <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873926#M305261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to set up a listbox to have some defined groups of values instead of all the values from a field. In this case I have some support tickets with various statuses, some of the statuses represent closed tickets and others open ones. I want to allow the users to just be able to select 'open' or 'closed' rather than having to multiple select the various statuses for each type.&lt;/P&gt;&lt;P&gt;I've actually managed to get it to work in a way, but it doesn't look great on the report. Here is how I set it up -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created new listbox&lt;/P&gt;&lt;P&gt;For the field value, selected &amp;lt;Expression&amp;gt;&lt;/P&gt;&lt;P&gt;Out of the many statuses, only 3 represent closed tickets, all the rest are open. So I entered this for the expression - Now&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;BR /&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Status]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'Cancelled','Closed','Rejected'),'Closed','Open') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now in the report, I have my listbox but it lists the word open twice. However whichever one I click on, it highlights both in green and I do get to see all the open tickets in my table that I have. And clicking on closed, which only appears once, it also works fine.&lt;/P&gt;&lt;P&gt;I have many tickets in each status, so could understand if I had the words open and closed repeated many times - once for each ticket - but it's only repeating open once.&lt;/P&gt;&lt;P&gt;Does anyone know why this is happening, or am I doing this the wrong way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 13:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873926#M305261</guid>
      <dc:creator />
      <dc:date>2015-06-22T13:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Group selections</title>
      <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873927#M305262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would probably do this kind of matching within the script and use then a native field within the listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 13:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873927#M305262</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-06-22T13:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Group selections</title>
      <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873928#M305263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;What happen when you do this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=If(match([Status],'Cancelled','Closed','Rejected'),'Closed', &lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;If(match([Status], 'Open', 'Open'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Assuming the fourth option within Status is Open&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 13:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873928#M305263</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Group selections</title>
      <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873929#M305264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Status]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,'Cancelled','Closed','Rejected'),'Closed','Open')&amp;nbsp; it's perfect&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 13:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873929#M305264</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2015-06-22T13:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Group selections</title>
      <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873930#M305265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open isn't the fourth status, there are about 6 more that are used for open tickets. I can try it with them all listed in the second part but I was hoping to just say if it isn't a status in the first list then assume it's open.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 13:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873930#M305265</guid>
      <dc:creator />
      <dc:date>2015-06-22T13:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Group selections</title>
      <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873931#M305266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am thinking I may need to do this - add the open\closed setting when the data is loaded. Would still be nice to understand why it does this though &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 13:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873931#M305266</guid>
      <dc:creator />
      <dc:date>2015-06-22T13:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Group selections</title>
      <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873932#M305267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya I don't know why it would list them twice, but like Marcus said, it would make sense to do it in the script. But just for the curiosity, I would check if listing them out helps or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 13:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873932#M305267</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T13:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Group selections</title>
      <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873933#M305268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this with interesting results. First I tried as suggested with every status listed-&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Status]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'Cancelled','Closed','Rejected') ,'Closed'&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Status]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'Test (to be validated)','Description to complete','Delivery','Validated','Standby','Explanation given','New ticket')&lt;BR /&gt; ,'Open'&lt;BR /&gt; ,'Open'&lt;BR /&gt; ) ) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;which didn't change the results at all. I thought maybe there was a status that it couldn't match, therefore dropping into the last 'else' condition and creating a third option also called 'Open'. So I changed the last 'Open' to 'Unknown', i.e. if it doesn't satisfy any of the previous if conditions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;This results in my listbox containing Closed, Open, Open, Unknown. So I still get Open duplicated but I do also get Unknown. If I select Unknown however nothing changes, it doesn't go green and the results in the tables etc all stay the same. The Open and Closed options work as they were before. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873933#M305268</guid>
      <dc:creator />
      <dc:date>2015-06-22T14:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Group selections</title>
      <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873934#M305269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you get the option of selecting the frequency? Can you check if they both appear the same number of time or do they have different appearances (the two opens I mean). Just getting curious as to why this is happening &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873934#M305269</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T14:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Group selections</title>
      <link>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873935#M305270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your case is a kind of categorize data which is nearly always better done within the script in additional fields/tables. Your app loading-time and the app size will slightly increase but you could afterwards handle these data as native fields which avoid potential problems and saved a lot of calculation-time in expressions or if you need these logic in calculated dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get strange results by these kind of matching you could create an extra dummy-table on row-level with them maybe per QUALIFY statement to see which status-value gets which match-value. Often it is helpful to use something like this to minimize wrong/missing matches:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;match(keepchar(upper(trim(Status)), 'ABCDEFGHIJKLMNOPQRSTUVW'), 'CANCELLED', ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-selections/m-p/873935#M305270</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-06-22T14:53:16Z</dc:date>
    </item>
  </channel>
</rss>

