<?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: Best way to Group Fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718958#M671204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rido,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how I would do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a Mapping table to tag the occurances (easy to maintain)&lt;/P&gt;&lt;P&gt;2. Use MapSubstring/Textbetween&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TagList:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubStr, GroupTag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; car, &amp;lt;Cars&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; truck, &amp;lt;Cars&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; taxi, &amp;lt;Cars&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; soccer, &amp;lt;Sports&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ball, &amp;lt;Sports&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; paper, &amp;lt;Office&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pen, &amp;lt;Office&amp;gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Customers, TextBetween(MapSubString('TagList', Lower(Customers)), '&amp;lt;', '&amp;gt;') as Group INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customers&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cars1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cars2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cars3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cars4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cars5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SoccerBalls1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SoccerBalls2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SoccerBalls3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 11:12:47 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2014-09-17T11:12:47Z</dc:date>
    <item>
      <title>Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718951#M671197</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;I have a table of Customers&lt;/P&gt;&lt;P&gt;My requirement is to group these customers &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customers&lt;/P&gt;&lt;P&gt;Cars1&lt;/P&gt;&lt;P&gt;Cars2&lt;/P&gt;&lt;P&gt;Cars3&lt;/P&gt;&lt;P&gt;Cars4&lt;/P&gt;&lt;P&gt;Cars5&lt;/P&gt;&lt;P&gt;SoccerBalls1&lt;/P&gt;&lt;P&gt;SoccerBalls2&lt;/P&gt;&lt;P&gt;SoccerBalls3&lt;/P&gt;&lt;P&gt;Paper1&lt;/P&gt;&lt;P&gt;Paper2&lt;/P&gt;&lt;P&gt;Paper3&lt;/P&gt;&lt;P&gt;Paper4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to group them into&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cars&lt;/P&gt;&lt;P&gt;SoccerBalls&lt;/P&gt;&lt;P&gt;Paper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use the if(Customers like '*Cars*', 'Cars') as GroupName&lt;/P&gt;&lt;P&gt;but this will take forever as my list of clients is huge.&lt;/P&gt;&lt;P&gt;also within the data i would need to do two like clauses for one group name, how would I do that?&lt;/P&gt;&lt;P&gt;eg. if(Customers like '*Cars* and Like '*Taxis*','Cars') as GroupName&amp;nbsp;&amp;nbsp; ---- I have Tried this it doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 10:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718951#M671197</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2014-09-17T10:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718952#M671198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use below in script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PurgeChar(Customers,'0123456789') as Customers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 10:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718952#M671198</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-17T10:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718953#M671199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use Wildmatch() Function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Wildmatch(Customers,'*Cars*','*Taxis*'),'Cars',&lt;/P&gt;&lt;P&gt;If(Wildmatch(Customers,'*Soccer*'),'Soccer',&lt;/P&gt;&lt;P&gt;If(Wildmatch(Customers,'*Paper*'),'Paper',Customers))) AS GroupName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create this in Script and after reload use this field in Front-end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 10:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718953#M671199</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-09-17T10:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718954#M671200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My actual data is not as simple as above, for example&lt;/P&gt;&lt;P&gt;Cars&amp;nbsp; may have:&lt;/P&gt;&lt;P&gt;Cars SoutAfrica 12&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 10:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718954#M671200</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2014-09-17T10:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718955#M671201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;if(wildmatch(Customers like '*Cars*', '*Taxis*'), 'Cars' ) as GroupName&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 11:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718955#M671201</guid>
      <dc:creator />
      <dc:date>2014-09-17T11:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718956#M671202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kindly provide some more samples to create a single code for you....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 11:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718956#M671202</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-17T11:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718957#M671203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you , I guess there is no way to avoid doing it manually &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 11:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718957#M671203</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2014-09-17T11:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718958#M671204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rido,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how I would do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a Mapping table to tag the occurances (easy to maintain)&lt;/P&gt;&lt;P&gt;2. Use MapSubstring/Textbetween&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TagList:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubStr, GroupTag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; car, &amp;lt;Cars&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; truck, &amp;lt;Cars&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; taxi, &amp;lt;Cars&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; soccer, &amp;lt;Sports&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ball, &amp;lt;Sports&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; paper, &amp;lt;Office&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pen, &amp;lt;Office&amp;gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Customers, TextBetween(MapSubString('TagList', Lower(Customers)), '&amp;lt;', '&amp;gt;') as Group INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customers&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cars1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cars2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cars3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cars4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cars5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SoccerBalls1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SoccerBalls2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SoccerBalls3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 11:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718958#M671204</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-09-17T11:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718959#M671205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I will try this &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 11:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718959#M671205</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2014-09-17T11:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718960#M671206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Redo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Match(Customers,'Cars1','Cars2','Cars3','Cars4','Cars5'), 'Cars',&lt;/P&gt;&lt;P&gt;if(Match(Customers, 'SoccerBalls1','SoccerBalls2','SoccerBalls3'),'SoccerBalls',&lt;/P&gt;&lt;P&gt;if(Match(Customers,'Paper1','Paper2','Paper3','Paper4'),'Paper'))) as Customers1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would be helpful for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 11:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718960#M671206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-17T11:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to Group Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718961#M671207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could you advise if there is an equivilent to&amp;nbsp; &lt;/P&gt;&lt;P&gt;If(Not(Wildmatch(Customers,'*Cars*','*Taxis*'),'Cars' as Others&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to Label all those that have not been grouped as others...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 12:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-Group-Fields/m-p/718961#M671207</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2014-09-17T12:34:21Z</dc:date>
    </item>
  </channel>
</rss>

