<?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 the number of occurences contained in another columns strings in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-occurences-contained-in-another-columns/m-p/3718085#M144764</link>
    <description>&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 19:51:32 GMT</pubDate>
    <dc:creator>CarsteFoRd</dc:creator>
    <dc:date>2024-02-22T19:51:32Z</dc:date>
    <item>
      <title>Count the number of occurences contained in another columns strings</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-occurences-contained-in-another-columns/m-p/3717393#M144714</link>
      <description>&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a new column that count the number of occurences contained in another columns strings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data looks like this (the desired result is marked in yellow)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;BR /&gt;The Best Carsten&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 14:42:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-occurences-contained-in-another-columns/m-p/3717393#M144714</guid>
      <dc:creator>CarsteFoRd</dc:creator>
      <dc:date>2024-02-22T14:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of occurences contained in another columns strings</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-occurences-contained-in-another-columns/m-p/3717819#M144742</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;expected result CC =
VAR _maxnumber =
    MAXX (
        ADDCOLUMNS (
            Data,
            "@countdelimiter", LEN ( Data[Path] ) - LEN ( SUBSTITUTE ( Data[Path], "|", "" ) )
        ),
        [@countdelimiter]
    ) + 1
VAR _generateseriestable =
    SELECTCOLUMNS ( GENERATESERIES ( 1, _maxnumber, 1 ), "@number", [Value] )
VAR _t =
    GENERATE (
        _generateseriestable,
        ADDCOLUMNS ( Data, "@item", PATHITEM ( Data[Path], [@number] ) )
    )
RETURN
    COUNTROWS ( FILTER ( _t, [@item] = EARLIER ( Data[ItemID] ) ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 17:15:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-occurences-contained-in-another-columns/m-p/3717819#M144742</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-02-22T17:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of occurences contained in another columns strings</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-occurences-contained-in-another-columns/m-p/3718085#M144764</link>
      <description>&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 19:51:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-occurences-contained-in-another-columns/m-p/3718085#M144764</guid>
      <dc:creator>CarsteFoRd</dc:creator>
      <dc:date>2024-02-22T19:51:32Z</dc:date>
    </item>
  </channel>
</rss>

