<?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: How to merge/combine multiple slices of a pie chart into one slice/category? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344674#M824625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or joining the group name using a static levenshtein distance limit in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_268376_Pic11.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171524_QlikCommunity_Thread_268376_Pic11.JPG" style="height: 233px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15011104833663499 jive_text_macro" jivemacro_uid="_15011104833663499"&gt;
&lt;P&gt;tabFruits:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*100) as SomeFruitValue&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fruit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Banana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Strawberry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; banana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; straw berry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strawberries&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blueberries&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pineapple&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabFruitGroups:&lt;/P&gt;
&lt;P&gt;LOAD Distinct fruit Resident tabFruits;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;fruit2, fruitGroup&lt;/P&gt;
&lt;P&gt;Banana, Yellow Fruit&lt;/P&gt;
&lt;P&gt;Pineapple, Yellow Fruit&lt;/P&gt;
&lt;P&gt;Strawberry, Berry&lt;/P&gt;
&lt;P&gt;Blueberry, Berry&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabFruits)&lt;/P&gt;
&lt;P&gt;LOAD fruit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fruitGroup&lt;/P&gt;
&lt;P&gt;Resident tabFruitGroups&lt;/P&gt;
&lt;P&gt;Where levenshtein(Upper(fruit),Upper(fruit2))&amp;lt;=3;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tabFruitGroups;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2017 23:08:53 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2017-07-26T23:08:53Z</dc:date>
    <item>
      <title>How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344667#M824618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attempting to combine various field values into one value on a particular field. For example, if we had a field named &lt;STRONG&gt;fruit &lt;/STRONG&gt;and it contained values such as &lt;STRONG&gt;Banana, Strawberry, banana, straw berry, strawberries, blueberries&lt;/STRONG&gt;, and &lt;STRONG&gt;Pineapple. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest approach is obviously to go into the data source and quickly modify these values, however that is not currently possible. My pie chart is currently giving me a different slice for each of these field values, however we obviously would like to have all of the strawberries combined into one slice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had a degree of success using set analysis, however a colleague recently suggested using an IF statement in my script. Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344667#M824618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344668#M824619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a calculated dimension like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Match(fruit,'Banana', 'Strawberry', 'banana', 'straw berry', 'strawberries', 'blueberries', 'Pineapple'),'Fruit','Not Fruit')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 14:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344668#M824619</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-20T14:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344669#M824620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain the function of Match? Initially, I was attempting to group together my budgets based on a description about them, and the data source had them named with different conventions (e.g. and, And, &amp;amp;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am also looking for a way to combine values regardless of how similar their names are to generate charts that management would like to see. In the example I wrote, it would be along the lines of "We want to group together all the blueberries with strawberries, but leave the rest as they are"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are both of these possible via the expression you posted? Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 14:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344669#M824620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T14:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344670#M824621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;The best explanation of the Match function is to be found in QlikView help, but briefly it returns a number if the value being checked matched one of the values in the list that follows. If it matches the first in the list we get 1, second 2 etc. If no match then 0. It can be used as an if condition, 0 will cause condition to be not met, &amp;gt;0 and the condition is satisfied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look into the WildMatch function in the help. This allows to search for similar strings using wildcards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If fruit = 'strawberry'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;match(fruit, 'berry') = 0&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;wildmatch(fruit, '*berry') = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Your best bet might be to build up a table mapping possible field values to&amp;nbsp; the standardised values you want to use. You can do this in an external file like an Excel file. Look up the function ApplyMap. You can use that to map to correct values in the script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Good luck&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Andrew&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 15:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344670#M824621</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-20T15:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344671#M824622</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;maybe one solution could be to group the fruit names by similarity (e.g. using the &lt;A href="https://en.wikipedia.org/wiki/Levenshtein_distance" title="https://en.wikipedia.org/wiki/Levenshtein_distance"&gt;Levenshtein distance&lt;/A&gt;) without hard coding specific fruit names at all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_268376_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171107_QlikCommunity_Thread_268376_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_268376_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/171108_QlikCommunity_Thread_268376_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_267457_Pic6.JPG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/171112_QlikCommunity_Thread_267457_Pic6.JPG" style="height: 229px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_267457_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/171110_QlikCommunity_Thread_267457_Pic4.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_267457_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/171109_QlikCommunity_Thread_267457_Pic3.JPG" style="font-size: 13.3333px; height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_267457_Pic5.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/171111_QlikCommunity_Thread_267457_Pic5.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15008532236355119" jivemacro_uid="_15008532236355119"&gt;
&lt;P&gt;tabFruits:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*100) as SomeFruitValue&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fruit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Banana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Strawberry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; banana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; straw berry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strawberries&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blueberries&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pineapple&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabFruitGroups:&lt;/P&gt;
&lt;P&gt;LOAD Distinct fruit Resident tabFruits;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD fruit as fruit2&lt;/P&gt;
&lt;P&gt;Resident tabFruitGroups;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD fruit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fruit2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; levenshtein(Upper(fruit),Upper(fruit2)) as LevenshtDistU&lt;/P&gt;
&lt;P&gt;Resident tabFruitGroups;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer to:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/115800"&gt;Levenshtein Algorithm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="1222" data-objecttype="2" href="https://community.qlik.com/message/1222#1222" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;string matching with fuzzy, trigram (n-gram), levenshtein, etc.&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;for the implementation of the required levenshtein function.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I guess &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;in a productive application &lt;/SPAN&gt;the grouping of the fruit names should be done in the script to really get all relevant names into one group and probably name the group by its most frequent member.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The front end aggregation in this example does not deliver useful results for all selected levenshtein distances.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 00:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344671#M824622</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-07-24T00:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344672#M824623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will definitely help in terms of cleaning data. I don't suppose there is any way to use the &lt;A class="jive-link-external-small" href="https://en.wikipedia.org/wiki/Levenshtein_distance" rel="nofollow" target="_blank"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;Levenshtein distance&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp; to group based on different criteria is there? For example, say you wanted to group &lt;STRONG&gt;Pineapple&lt;/STRONG&gt; and &lt;STRONG&gt;Banana (yellow fruits) &lt;/STRONG&gt;despite their vastly different names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this still possible using the methodology you have outlined? It sounds like it would be more applicable to do this through the script editor as you mentioned towards the end of your post, but as a new user I'm not sure the exact syntax for grouping field values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 15:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344672#M824623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-26T15:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344673#M824624</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;maybe one solution might be to create a table that defines the different groups and check for similarities using the same algorithm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_268376_Pic7.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171514_QlikCommunity_Thread_268376_Pic7.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_268376_Pic8.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/171521_QlikCommunity_Thread_268376_Pic8.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_268376_Pic9.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/171522_QlikCommunity_Thread_268376_Pic9.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_268376_Pic10.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/171523_QlikCommunity_Thread_268376_Pic10.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15011097095229033" jivemacro_uid="_15011097095229033"&gt;
&lt;P&gt;tabFruits:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*100) as SomeFruitValue&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fruit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Banana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Strawberry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; banana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; straw berry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strawberries&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blueberries&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pineapple&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabFruitGroups:&lt;/P&gt;
&lt;P&gt;LOAD Distinct fruit Resident tabFruits;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;fruit2, fruitGroup&lt;/P&gt;
&lt;P&gt;Banana, Yellow Fruit&lt;/P&gt;
&lt;P&gt;Pineapple, Yellow Fruit&lt;/P&gt;
&lt;P&gt;Strawberry, Berry&lt;/P&gt;
&lt;P&gt;Blueberry, Berry&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD fruit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fruit2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; levenshtein(Upper(fruit),Upper(fruit2)) as LevenshtDistU&lt;/P&gt;
&lt;P&gt;Resident tabFruitGroups;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344673#M824624</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-07-26T22:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344674#M824625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or joining the group name using a static levenshtein distance limit in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_268376_Pic11.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171524_QlikCommunity_Thread_268376_Pic11.JPG" style="height: 233px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15011104833663499 jive_text_macro" jivemacro_uid="_15011104833663499"&gt;
&lt;P&gt;tabFruits:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*100) as SomeFruitValue&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fruit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Banana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Strawberry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; banana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; straw berry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strawberries&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blueberries&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pineapple&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabFruitGroups:&lt;/P&gt;
&lt;P&gt;LOAD Distinct fruit Resident tabFruits;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;fruit2, fruitGroup&lt;/P&gt;
&lt;P&gt;Banana, Yellow Fruit&lt;/P&gt;
&lt;P&gt;Pineapple, Yellow Fruit&lt;/P&gt;
&lt;P&gt;Strawberry, Berry&lt;/P&gt;
&lt;P&gt;Blueberry, Berry&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabFruits)&lt;/P&gt;
&lt;P&gt;LOAD fruit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fruitGroup&lt;/P&gt;
&lt;P&gt;Resident tabFruitGroups&lt;/P&gt;
&lt;P&gt;Where levenshtein(Upper(fruit),Upper(fruit2))&amp;lt;=3;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tabFruitGroups;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 23:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344674#M824625</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-07-26T23:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344675#M824626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate the help. I looked through the documentation for the match() function, and I managed to combine the fields in question. However, I was unable to define more than 2 fields for the grouping. In the end, I ended up with 2 groups:&lt;/P&gt;&lt;P&gt;&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; 1. Group containing all desired field values that should be grouped&lt;/P&gt;&lt;P&gt;&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; 2. All other fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to find a way to combine the IF/MATCH/WILDMATCH functions such that I could define multiple fields, however I kept receiving an error in my expression. Do you have any suggestions on how I may modify the function in a manner such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;if(Match(fruit,'Banana', 'Pineapple'), 'Yellow Fruit', Match(fruit, 'Strawberry', 'strawberries'), 'Red Fruit', Matc(fruit, 'blueberries'),'Blue Fruit','Not Fruit')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything with functionality like this would be a huge help, thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 12:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344675#M824626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-27T12:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344676#M824627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU!!! This got me to where I was wanting to go. I'm going to have to look farther into the script to figure out how the function works. I had attempted originally to use just the inline table and a left join, however it wouldn't work until I created the Levenshtein function. Thank you again!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344676#M824627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-27T18:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge/combine multiple slices of a pie chart into one slice/category?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344677#M824628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad it helped&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 21:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-combine-multiple-slices-of-a-pie-chart-into-one/m-p/1344677#M824628</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-07-27T21:09:08Z</dc:date>
    </item>
  </channel>
</rss>

