<?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 create a new dimension split by Comma and count the value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464137#M99082</link>
    <description>&lt;P&gt;Hi BrunPierre,&lt;/P&gt;
&lt;P&gt;Count(Product) can not have a correct result. The result will like&lt;/P&gt;
&lt;TABLE border="0" width="127px" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="65.9875px" height="19"&gt;Product&lt;/TD&gt;
&lt;TD width="60.2125px"&gt;Count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="65.9875px" height="19"&gt;Apple&lt;/TD&gt;
&lt;TD width="60.2125px" align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="65.9875px" height="19"&gt;Orange&lt;/TD&gt;
&lt;TD width="60.2125px" align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="65.9875px" height="19"&gt;Banana&lt;/TD&gt;
&lt;TD width="60.2125px" align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
    <pubDate>Thu, 20 Jun 2024 08:41:48 GMT</pubDate>
    <dc:creator>eddywong71</dc:creator>
    <dc:date>2024-06-20T08:41:48Z</dc:date>
    <item>
      <title>How to create a new dimension split by Comma and count the value</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464109#M99079</link>
      <description>&lt;P&gt;My Dataset is like below.&lt;/P&gt;
&lt;TABLE width="169px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="169.15px"&gt;Product&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="169.15px"&gt;Apple,Orange&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="169.15px"&gt;Apple&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="169.15px"&gt;Orange&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="169.15px"&gt;Orange, Banana&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="169.15px"&gt;Banana&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="169.15px"&gt;Apple,Orange,Banana&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Then I create a new dimension : SubField([Product],',',1) as New Product.&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="0" width="64" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64" height="19"&gt;Product&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Apple&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Orange&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Banana&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;May i ask what expression that i can use to count the product . I want the result as below.&lt;/P&gt;
&lt;TABLE border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64" height="19"&gt;Product&lt;/TD&gt;
&lt;TD width="64"&gt;Count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Apple&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Orange&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Banana&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 20 Jun 2024 07:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464109#M99079</guid>
      <dc:creator>eddywong71</dc:creator>
      <dc:date>2024-06-20T07:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new dimension split by Comma and count the value</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464131#M99081</link>
      <description>&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;Dimension: New Product&lt;/P&gt;
&lt;P&gt;Measure: Count(Product)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 09:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464131#M99081</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-06-20T09:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new dimension split by Comma and count the value</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464137#M99082</link>
      <description>&lt;P&gt;Hi BrunPierre,&lt;/P&gt;
&lt;P&gt;Count(Product) can not have a correct result. The result will like&lt;/P&gt;
&lt;TABLE border="0" width="127px" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="65.9875px" height="19"&gt;Product&lt;/TD&gt;
&lt;TD width="60.2125px"&gt;Count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="65.9875px" height="19"&gt;Apple&lt;/TD&gt;
&lt;TD width="60.2125px" align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="65.9875px" height="19"&gt;Orange&lt;/TD&gt;
&lt;TD width="60.2125px" align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="65.9875px" height="19"&gt;Banana&lt;/TD&gt;
&lt;TD width="60.2125px" align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 20 Jun 2024 08:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464137#M99082</guid>
      <dc:creator>eddywong71</dc:creator>
      <dc:date>2024-06-20T08:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new dimension split by Comma and count the value</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464183#M99086</link>
      <description>&lt;P&gt;Your dimension isn't suitable because you just takes the first fruit. Therefore remove the third parameter of subfield() which then worked as an internal loop and creating a new record for each sub-part - just:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SubField([Product],',') as New Product&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 10:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464183#M99086</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-20T10:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new dimension split by Comma and count the value</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464300#M99091</link>
      <description>&lt;P&gt;Can any one could help &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 15:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464300#M99091</guid>
      <dc:creator>eddywong71</dc:creator>
      <dc:date>2024-06-20T15:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new dimension split by Comma and count the value</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464309#M99092</link>
      <description>&lt;P&gt;It is because I want to select all the fruit from the Product to become in single dimension. The data allow a row can include more than one fruit. Is there way to distinct all the fruit as dimension. Then count the fruit.&lt;/P&gt;
&lt;P&gt;The Data as below.&lt;/P&gt;
&lt;TABLE width="215"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="52.6px" height="24px"&gt;Buyer&lt;/TD&gt;
&lt;TD width="169.15px" height="24px"&gt;Product&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.6px" height="24px"&gt;Sam&lt;/TD&gt;
&lt;TD width="169.15px" height="24px"&gt;Apple,Orange&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.6px" height="24px"&gt;May&lt;/TD&gt;
&lt;TD width="169.15px" height="24px"&gt;Apple&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.6px" height="24px"&gt;Mary&lt;/TD&gt;
&lt;TD width="169.15px" height="24px"&gt;Orange&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.6px" height="24px"&gt;Tom&lt;/TD&gt;
&lt;TD width="169.15px" height="24px"&gt;Orange, Banana&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.6px" height="24px"&gt;Andy&lt;/TD&gt;
&lt;TD width="169.15px" height="24px"&gt;Banana&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.6px" height="24px"&gt;Peter&lt;/TD&gt;
&lt;TD width="169.15px" height="24px"&gt;Apple,Orange,Banana&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the result as below.&lt;/P&gt;
&lt;TABLE border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64" height="19"&gt;Product&lt;/TD&gt;
&lt;TD width="64"&gt;Product&amp;nbsp;Penetration&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Apple&lt;/TD&gt;
&lt;TD align="right"&gt;3/6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Orange&lt;/TD&gt;
&lt;TD align="right"&gt;4/6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Banana&lt;/TD&gt;
&lt;TD align="right"&gt;3/6&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 15:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464309#M99092</guid>
      <dc:creator>eddywong71</dc:creator>
      <dc:date>2024-06-20T15:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new dimension split by Comma and count the value</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464323#M99093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/213575"&gt;@eddywong71&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;following the instructions of&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;i created this script:&lt;/P&gt;
&lt;DIV&gt;Fruits:&lt;/DIV&gt;
&lt;DIV&gt;Load * Inline [&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Buyer; Product&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Sam; Apple,Orange&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; May; Apple&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Mary; Orange&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Tom; Orange,Banana&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Andy; Banana&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Peter; Apple,Orange,Banana&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;](delimiter is ';')&lt;/DIV&gt;
&lt;DIV&gt;;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Fruits_Expanded:&lt;/DIV&gt;
&lt;DIV&gt;Load&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Buyer,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; SubField(Product, ',') as Fruit&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Resident Fruits;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then count the Fruit to get the total of each fruit.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fabiano_Martino_Intelco_0-1718898243583.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168279i2F86ED29688E2E56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fabiano_Martino_Intelco_0-1718898243583.png" alt="Fabiano_Martino_Intelco_0-1718898243583.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The Count of Total Distinct Buyer will get the base to measure the product penetration.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Fabiano&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 15:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464323#M99093</guid>
      <dc:creator>Fabiano_Martino_Intelco</dc:creator>
      <dc:date>2024-06-20T15:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new dimension split by Comma and count the value</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464425#M99101</link>
      <description>&lt;P&gt;It works . Thanks so much !&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 01:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-new-dimension-split-by-Comma-and-count-the-value/m-p/2464425#M99101</guid>
      <dc:creator>eddywong71</dc:creator>
      <dc:date>2024-06-21T01:20:49Z</dc:date>
    </item>
  </channel>
</rss>

