<?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 occurence of column value in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4679405#M179230</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628059" data-lia-user-login="rob_vander2" class="lia-mention lia-mention-user"&gt;rob_vander2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;I wanted to check if you had the opportunity to review the information provided by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;and &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="584718" data-lia-user-login="kushal_chawda" class="lia-mention lia-mention-user"&gt;kushal_chawda&lt;/a&gt;&amp;nbsp;. Please feel free to contact us if you have any further questions. If their response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2025 05:47:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-05-05T05:47:27Z</dc:date>
    <item>
      <title>count occurence of column value in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4663497#M178590</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have below dataset which contains String as chain of activities. I can have many actvities in real scenarios. Requirements is that I want to give four filters as Activity 1, Activity 2 (eg. with value A,B &amp;amp; C as per the data) and Occurence 1 &amp;amp; Occurence 2 (eg. 1,2,3,4.. up to 10). For example if I select data from four filters as highlighted in screenshot in yellow, Activity 1 ="A"&amp;nbsp; &amp;amp; Occurence 1 ="3" is satiesfied by ID 1 &amp;amp; 2 as "A" is appeared 3 times in the String. Similarly other condition&amp;nbsp;Activity 2 ="B" &amp;amp; Occurence 2 ="2" is satisfied by the ID 1 &amp;amp; 2. So both the condition is met by ID 1 &amp;amp; 2 which should be presented in the table output and count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: There will be many activities in the filter, so user can select any combination of activities and corresponding occurence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope the requirement is clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 15:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4663497#M178590</guid>
      <dc:creator>rob_vander2</dc:creator>
      <dc:date>2025-04-22T15:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: count occurence of column value in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4663805#M178607</link>
      <description>&lt;P&gt;You will want to rethink the UX as you would need to train your users not to specify conflicting filters.&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;</description>
      <pubDate>Tue, 22 Apr 2025 19:19:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4663805#M178607</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-04-22T19:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: count occurence of column value in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4664009#M178622</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp; Could you explain how this DAX measure works?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 22:25:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4664009#M178622</guid>
      <dc:creator>rob_vander2</dc:creator>
      <dc:date>2025-04-22T22:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: count occurence of column value in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4664010#M178623</link>
      <description>&lt;P&gt;Line 2 -&amp;nbsp; bring the data into a usable format. In DAX pretty much the only usable way is to use PATH functions so you replace whatever delimiter you have with a pipe.&lt;/P&gt;
&lt;P&gt;Line 3 - materialize the elements of the list (ie the items of the path) into a table&lt;/P&gt;
&lt;P&gt;Line 4 - group the table by the elements and add a occurrence count for each&lt;/P&gt;
&lt;P&gt;Line 5 - compare the table with the filter settings. Both filters need to match so we only return success if the sum of these two tests is 2.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 22:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4664010#M178623</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-04-22T22:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: count occurence of column value in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4665671#M178689</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628059" data-lia-user-login="rob_vander2" class="lia-mention lia-mention-user"&gt;rob_vander2&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use conditional measure for table visual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Conditional = 
if( (LEN(max('Table'[String])) - LEN(SUBSTITUTE(max('Table'[String]), SELECTEDVALUE(Filter1[Activity1]), ""))) = SELECTEDVALUE(Filter3[Occurrence1]) &amp;amp;&amp;amp;
(LEN(max('Table'[String])) - LEN(SUBSTITUTE(max('Table'[String]), SELECTEDVALUE(Filter2[Activity2]), ""))) = SELECTEDVALUE(Filter4[Occurrence2]),1,BLANK())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use count measure to count the ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;count = 
CALCULATE(
        COUNT('Table'[ID]),
    (LEN('Table'[String]) - LEN(SUBSTITUTE('Table'[String], SELECTEDVALUE(Filter1[Activity1]), ""))) = SELECTEDVALUE(Filter3[Occurrence1]),
    (LEN('Table'[String]) - LEN(SUBSTITUTE('Table'[String], SELECTEDVALUE(Filter2[Activity2]), ""))) = SELECTEDVALUE(Filter4[Occurrence2])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 22:28:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4665671#M178689</guid>
      <dc:creator>kushal_chawda</dc:creator>
      <dc:date>2025-04-23T22:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: count occurence of column value in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4670909#M178912</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628059" data-lia-user-login="rob_vander2" class="lia-mention lia-mention-user"&gt;rob_vander2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 12:03:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4670909#M178912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-28T12:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: count occurence of column value in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4679405#M179230</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628059" data-lia-user-login="rob_vander2" class="lia-mention lia-mention-user"&gt;rob_vander2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;I wanted to check if you had the opportunity to review the information provided by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;and &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="584718" data-lia-user-login="kushal_chawda" class="lia-mention lia-mention-user"&gt;kushal_chawda&lt;/a&gt;&amp;nbsp;. Please feel free to contact us if you have any further questions. If their response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 05:47:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4679405#M179230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-05T05:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: count occurence of column value in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4686312#M179493</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628059" data-lia-user-login="rob_vander2" class="lia-mention lia-mention-user"&gt;rob_vander2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please &lt;STRONG&gt;Accept it as a solution&lt;/STRONG&gt; and give it a '&lt;STRONG&gt;Kudos&lt;/STRONG&gt;' so others can find it easily.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 09:22:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-occurence-of-column-value-in-DAX/m-p/4686312#M179493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-09T09:22:51Z</dc:date>
    </item>
  </channel>
</rss>

