<?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: Count number of elements in each column cell (Delimiters) and display the values in the new column? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-elements-in-each-column-cell-Delimiters-and/m-p/3450869#M131446</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="622485" data-lia-user-login="ssspk" class="lia-mention lia-mention-user"&gt;ssspk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The list after separating by "," is not empty, so the function works as designed, the solution is&lt;/P&gt;
&lt;P&gt;You can add another column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Table.AddColumn(#"Added Custom", "Custom", each if [keywords] = "[]" then 0 else if [keywords] &amp;lt;&amp;gt; "[]" then [keywords count] else null)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Dec 2023 02:16:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-12-26T02:16:15Z</dc:date>
    <item>
      <title>Count number of elements in each column cell (Delimiters) and display the values in the new column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-elements-in-each-column-cell-Delimiters-and/m-p/3447348#M131212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Having a column like below,&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;"[""bTravel"",""bTravel Planning"",""travel booking"",""travel planning""]"&lt;BR /&gt;[]&lt;BR /&gt;"[""engine"",""news"",""search""]"&lt;BR /&gt;[]&lt;BR /&gt;"[""collaboration"",""connect"",""connections"",""network""]"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;To get the count of the words in each cell using a delimiter comma(,).&lt;/P&gt;&lt;P&gt;Used fx as below for the specific count of keywords,&lt;/P&gt;&lt;P&gt;New Column name is keywords count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= Table.AddColumn(applicationcatalog_Table, "keywords count", each List.NonNullCount(Text.Split([keywords],",")))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why its displaying resuit as 1 in cell, instead of 0 as result for []&amp;nbsp; in the coulun(keywords count) cells.?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 17:04:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-elements-in-each-column-cell-Delimiters-and/m-p/3447348#M131212</guid>
      <dc:creator>ssspk</dc:creator>
      <dc:date>2023-09-26T17:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of elements in each column cell (Delimiters) and display the values in the new column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-elements-in-each-column-cell-Delimiters-and/m-p/3450869#M131446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="622485" data-lia-user-login="ssspk" class="lia-mention lia-mention-user"&gt;ssspk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The list after separating by "," is not empty, so the function works as designed, the solution is&lt;/P&gt;
&lt;P&gt;You can add another column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Table.AddColumn(#"Added Custom", "Custom", each if [keywords] = "[]" then 0 else if [keywords] &amp;lt;&amp;gt; "[]" then [keywords count] else null)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 02:16:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-elements-in-each-column-cell-Delimiters-and/m-p/3450869#M131446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-26T02:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of elements in each column cell (Delimiters) and display the values in the new column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-elements-in-each-column-cell-Delimiters-and/m-p/3452114#M131528</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your time and solution. Its working fine.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 16:43:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-elements-in-each-column-cell-Delimiters-and/m-p/3452114#M131528</guid>
      <dc:creator>ssspk</dc:creator>
      <dc:date>2023-09-28T16:43:49Z</dc:date>
    </item>
  </channel>
</rss>

