<?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 occurrences of each value in a column, including repeated values. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/3090743#M41371</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i make my calculated column to take into consideration the filters of my BI ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Killian&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 15:35:52 GMT</pubDate>
    <dc:creator>killian</dc:creator>
    <dc:date>2023-02-21T15:35:52Z</dc:date>
    <item>
      <title>How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/151328#M5127</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to Power BI , and running with an issue. I am sure I will definitely get the solution to my issue here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below is a column I have&lt;/P&gt;&lt;P&gt;Col A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Col A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Occurance&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to count the occurrences of each value in a column , including the duplicates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a ton in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SKD&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 10:21:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/151328#M5127</guid>
      <dc:creator>sukantdas</dc:creator>
      <dc:date>2017-03-30T10:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/151986#M5136</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/19111"&gt;@sukantdas&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Add a calculated column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Occurence = 
COUNTX (
    FILTER ( yourTable, EARLIER ( yourTable[Col A] ) = yourTable[Col A] ),
    yourTable[Col A]
)
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/35535i14A27D85C51FB1EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 09:44:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/151986#M5136</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-03-31T09:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/152003#M5137</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;Thanks for the solution . It worked for me. &amp;nbsp;Can you please suggest where &amp;amp; how to increase knowledge in DAX.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;SKD&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 10:10:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/152003#M5137</guid>
      <dc:creator>sukantdas</dc:creator>
      <dc:date>2017-03-31T10:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/434756#M13405</link>
      <description>&lt;P&gt;I have a column like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mango&lt;/P&gt;&lt;P&gt;orange&lt;/P&gt;&lt;P&gt;mango&lt;/P&gt;&lt;P&gt;grape&lt;/P&gt;&lt;P&gt;orange&lt;/P&gt;&lt;P&gt;mango&lt;/P&gt;&lt;P&gt;orange&lt;/P&gt;&lt;P&gt;mango&lt;/P&gt;&lt;P&gt;apple&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;need an out put like&amp;nbsp;&lt;/P&gt;&lt;P&gt;mange 4&lt;/P&gt;&lt;P&gt;orange&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;Grape&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Apple 1&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:40:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/434756#M13405</guid>
      <dc:creator>anoop_ellickal</dc:creator>
      <dc:date>2018-06-07T14:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/479927#M14718</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've jus tried using your suggested solution to count the occurence of each userID in a column and have found the output appears to square each result. For example, where a userID appears twice in the column, the output in the occurrence column is 4 and where userID appears 6 times in the column the output in the occurrence column is 36. Any idea why this is happening? I really can't get my head around it I'm afriad!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 12:59:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/479927#M14718</guid>
      <dc:creator>Helen_R</dc:creator>
      <dc:date>2018-08-03T12:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/575231#M17754</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this on the M Query side of things?&lt;/P&gt;&lt;P&gt;Been looking for a solution, but my M Query is not so strong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Niko&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 07:15:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/575231#M17754</guid>
      <dc:creator>nisuomi</dc:creator>
      <dc:date>2018-11-29T07:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/709745#M19604</link>
      <description>&lt;P&gt;THANK YOU, I have been searching all day and finnally your solution did the job!&lt;BR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 21:29:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/709745#M19604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-07T21:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/920318#M22196</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/75364"&gt;@Helen_R&lt;/a&gt;&amp;nbsp; Did you ever find a solution? I am having the same issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 22:02:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/920318#M22196</guid>
      <dc:creator>emkane</dc:creator>
      <dc:date>2020-02-03T22:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/1203892#M24599</link>
      <description>&lt;P&gt;In your visual, are you doing a count of the new field or a sum? If you do a sum, it will seem like the output is squared but the reality is you just have to change what the table/matrix is doing to the field. You could also probably do a max or min. Basically, just don't sum the values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 13:44:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/1203892#M24599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-06T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/1912460#M30083</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should there not be single quotes surrounding tableand column details? I couldnt get it to work without them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Occurence = 
COUNTX (
    FILTER ( 'yourTable', EARLIER ( 'yourTable[Col A]' ) = 'yourTable[Col A]' ),
    'yourTable[Col A]'
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 13:59:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/1912460#M30083</guid>
      <dc:creator>SKey</dc:creator>
      <dc:date>2021-06-21T13:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/3090743#M41371</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i make my calculated column to take into consideration the filters of my BI ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Killian&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 15:35:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/3090743#M41371</guid>
      <dc:creator>killian</dc:creator>
      <dc:date>2023-02-21T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/3154690#M41928</link>
      <description>&lt;P&gt;How can we do this for every related data in another column&lt;BR /&gt;ie&lt;BR /&gt;col A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; colB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Occurence&amp;nbsp;&lt;BR /&gt;Mango&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unripe&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;BR /&gt;Orange&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ripe&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;Mango&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unripe&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp;&lt;BR /&gt;Orange&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unripe&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;BR /&gt;Mango&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ripe&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;Orange&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unripe&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;BR /&gt;&lt;BR /&gt;So it counts based on two column conditions&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 22:10:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/3154690#M41928</guid>
      <dc:creator>dbest_david</dc:creator>
      <dc:date>2023-03-26T22:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the occurrences of each value in a column, including repeated values.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/3696344#M49514</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JofrainVisda_0-1707826641170.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1041938i72FFE3437971B0AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JofrainVisda_0-1707826641170.png" alt="JofrainVisda_0-1707826641170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How about this. Count the occurence with parameters? like count the "Name" that is under the same Column 1 and Column 2?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 12:18:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/m-p/3696344#M49514</guid>
      <dc:creator>JofrainVisda</dc:creator>
      <dc:date>2024-02-13T12:18:20Z</dc:date>
    </item>
  </channel>
</rss>

