<?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: List Box Properties: Grouping? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899751#M1006655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can alter the list box to show the results of an expression rather than a field with this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-779105-87057/Untitled.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" height="533" src="https://community.qlik.com/legacyfs/online/87058_Untitled.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="637" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then bucket the values with an expression . Lots of possibilities. Here is one with wildcard matching and i threw in an 'other' category if you get unexpected values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&amp;nbsp; wildmatch([FieldName],'Event*'),'Event', if( wildmatch([FieldName],'Training*','Training','Other'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2015 15:02:13 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2015-05-20T15:02:13Z</dc:date>
    <item>
      <title>List Box Properties: Grouping?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899750#M1006654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have a list of activities in a List box, is it possible to add an expression or definition to group some activities together? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example my current list box is:&lt;/P&gt;&lt;P&gt;Event - rock climbing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Event - hill climbing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Event - swimming&lt;/P&gt;&lt;P&gt;Training - presentation&lt;/P&gt;&lt;P&gt;Training - one to one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outcome I want is:&lt;/P&gt;&lt;P&gt;Event&lt;/P&gt;&lt;P&gt;Training&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 14:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899750#M1006654</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2015-05-20T14:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties: Grouping?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899751#M1006655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can alter the list box to show the results of an expression rather than a field with this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-779105-87057/Untitled.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" height="533" src="https://community.qlik.com/legacyfs/online/87058_Untitled.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="637" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then bucket the values with an expression . Lots of possibilities. Here is one with wildcard matching and i threw in an 'other' category if you get unexpected values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&amp;nbsp; wildmatch([FieldName],'Event*'),'Event', if( wildmatch([FieldName],'Training*','Training','Other'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 15:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899751#M1006655</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-05-20T15:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties: Grouping?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899752#M1006656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely you will need to add a delimiter to create the hierarchy or to create a Group type column and use that instead.&lt;/P&gt;&lt;P&gt;The list box has a option called "Show as TreeView" its default delimiter is '/'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 15:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899752#M1006656</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2015-05-20T15:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties: Grouping?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899753#M1006657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this s was you want, first list box has expression rather than a field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;pick&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Item&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'Event*','Training*'), &lt;BR /&gt; &lt;BR /&gt; 'Events', 'Training')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 15:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899753#M1006657</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-05-20T15:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties: Grouping?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899754#M1006658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great response to use an expression, thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use =([Activity.Type]='Event - rock climbing', 'Event',) etc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesnt seem to be working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 15:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899754#M1006658</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2015-05-20T15:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties: Grouping?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899755#M1006659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create a map to a new field with these categories "grouped" if you expect these categories to grow over time, this would make it easier to maintain, not sure performance wise if would be a better solution. Please see the attached sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 15:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899755#M1006659</guid>
      <dc:creator />
      <dc:date>2015-05-20T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties: Grouping?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899756#M1006660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may use the expression&lt;/P&gt;&lt;P&gt;=Trim(SubField(Field,'-',1))&lt;/P&gt;&lt;P&gt;for the listbox to get the desired outcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 15:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899756#M1006660</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2015-05-20T15:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties: Grouping?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899757#M1006661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you looking for an expression type solution vs script as suggested try what NagaianK posted in his reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 15:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899757#M1006661</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2015-05-20T15:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties: Grouping?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899758#M1006662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can but you need to use nested IF()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;[Activity.Type]='Event - rock climbing', 'Event', if ( &amp;lt;condition&amp;gt; , true result value, false result value)&amp;nbsp;&amp;nbsp; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 15:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-Grouping/m-p/899758#M1006662</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-05-20T15:27:02Z</dc:date>
    </item>
  </channel>
</rss>

