<?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 count the occurence of a value from a column in a coma separated field in another column? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/4015419#M158220</link>
    <description>&lt;P&gt;Thanks a lot !&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact, your suggested solution counts the number of items, but what I need is to count the number of occurence of value from column "Date" in "Column B".&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 10:57:35 GMT</pubDate>
    <dc:creator>Betty888</dc:creator>
    <dc:date>2024-06-28T10:57:35Z</dc:date>
    <item>
      <title>How to count the occurence of a value from a column in a coma separated field in another column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/3996999#M155397</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to count the number of occurence of a value from column "Date" in a list of dates with a semicolon separator in another column "Column B" as below :&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Column B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;date1&lt;/TD&gt;&lt;TD&gt;date1; date2;date3;date4;date5;date6; ,,,,,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;date2&lt;/TD&gt;&lt;TD&gt;date1; date2;date3;date4;date5;date6; ,,,,,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;date3&lt;/TD&gt;&lt;TD&gt;date1; date2;date3;date4;date5;date6; ,,,,,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;date4&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;date1; date2;date3;date4;date5;date6; ,,,,,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with any ideas, please &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you in advanace for your help !&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 23:54:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/3996999#M155397</guid>
      <dc:creator>Betty888</dc:creator>
      <dc:date>2024-06-17T23:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurence of a value from a column in a coma separated field in another column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/3997056#M155404</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456353" data-lia-user-login="Betty888" class="lia-mention lia-mention-user"&gt;Betty888&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I created this calculated column which uses two main variables&lt;BR /&gt;The first variable&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;OccurrenceLength is the difference between the length of the text of [ColumnB] and the length of the same text after it replaces the variable in [Date] with a blank().&lt;BR /&gt;&lt;BR /&gt;This difference in length will then be divided by the length of the variable we replaced within the string to get the number of occurance of the variable you are searching for within the ColumnB&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;Please let me know if this works, and accept it as a solution if it does. You are kudo is also much appreciated.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2024 01:01:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/3997056#M155404</guid>
      <dc:creator>Moetazzahran</dc:creator>
      <dc:date>2024-06-18T01:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurence of a value from a column in a coma separated field in another column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/3997101#M155409</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456353" data-lia-user-login="Betty888" class="lia-mention lia-mention-user"&gt;Betty888&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a custom column and use the following M expression in PowerQuery.&amp;nbsp;This formula splits the text in "Column B" by semicolon and counts the number of elements after splitting. It then adds one to the count result. If there is no data after the semicolon, we need to subtract one from it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= List.Count(Text.Split([Column B], ";"))-1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here is my preview:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A title="https://community.powerbi.com/t5/community-blog/how-to-get-your-question-answered-quickly/ba-p/38490" href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-yohua%40microsoft.com%7Ce1106bfabecb4734a5cc08dc2305bc51%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638423754744679080%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=24%2BceC5sFd3n3%2FhFDYILWFcNjCwVClBD%2BPBsSLVfJGk%3D&amp;amp;reserved=0" target="_blank" rel="noopener nofollow noreferrer"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yongkang Hua&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 01:30:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/3997101#M155409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-18T01:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurence of a value from a column in a coma separated field in another column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/4015419#M158220</link>
      <description>&lt;P&gt;Thanks a lot !&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact, your suggested solution counts the number of items, but what I need is to count the number of occurence of value from column "Date" in "Column B".&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 10:57:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/4015419#M158220</guid>
      <dc:creator>Betty888</dc:creator>
      <dc:date>2024-06-28T10:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurence of a value from a column in a coma separated field in another column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/4015425#M158221</link>
      <description>&lt;P&gt;Many thanks !&amp;nbsp;&lt;BR /&gt;it works for my problem, many many thanks !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 11:00:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-occurence-of-a-value-from-a-column-in-a-coma/m-p/4015425#M158221</guid>
      <dc:creator>Betty888</dc:creator>
      <dc:date>2024-06-28T11:00:27Z</dc:date>
    </item>
  </channel>
</rss>

