<?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 # of times the name was part of the Top N List in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824626#M149564</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="721193" data-lia-user-login="DCComia13" class="lia-mention lia-mention-user"&gt;DCComia13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think I got the full picture but the solution could be something like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count =&lt;BR /&gt;CALCULATE ( COUNTROWS ( 'Table' ), ALLSELECTED (), VALUES ( 'Table'[WE_Date] ) )&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 19:11:50 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2024-04-09T19:11:50Z</dc:date>
    <item>
      <title>Count # of times the name was part of the Top N List</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824552#M149563</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Good day everyone, I am quite new to power bi and I am stuck on one of the report requirements. I need help in counting the instances an employee becomes part of the Top 10 list per week. I've been searching everywhere on the steps how to do it but I can't seem to find the right solution...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;on the sample, I was able to to filter out the top 10 employee (based on the calls with 50-70% Silence time), however, on the #of times in the outlier list column, it keeps on counting the name even if they aren't part of the top 10, thus, it is giving me incorrect result. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;on the example: Employee Racoma should only have 1 instance since she is no longer part of the top 10 employee for WE 4/6, however, it's still showing 2 since the formula still counts her name where she's rank 11 on the said week. I hope I explain the scenario well but please let me know if you need more details. Thank you very much!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 18:40:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824552#M149563</guid>
      <dc:creator>DCComia13</dc:creator>
      <dc:date>2024-04-09T18:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of times the name was part of the Top N List</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824626#M149564</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="721193" data-lia-user-login="DCComia13" class="lia-mention lia-mention-user"&gt;DCComia13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think I got the full picture but the solution could be something like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count =&lt;BR /&gt;CALCULATE ( COUNTROWS ( 'Table' ), ALLSELECTED (), VALUES ( 'Table'[WE_Date] ) )&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 19:11:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824626#M149564</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-09T19:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of times the name was part of the Top N List</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824695#M149565</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, apologies if my explanation is not clear, however, I don't really need the count of rows, what I need is the count of instances the name of the employee showed up on the list. The report I have there is already showing the top 10 outlier agents with the highest % of calls with 50 to 75% silence time. If an agent is part of the list for 2 weeks, then the # of times in the oulier list column should show "2", however, if it's only for one week, the result should be "1".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the formula I use, however, it also includes the instances where the agent wasn't part of the top 10 list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# of Times in the Outlier List =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE(DISTINCTCOUNT('table&lt;/SPAN&gt;&lt;SPAN&gt;'[WE Date]), ALLSELECTED ('table'), VALUES('table'[Employee]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 19:47:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824695#M149565</guid>
      <dc:creator>DCComia13</dc:creator>
      <dc:date>2024-04-09T19:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of times the name was part of the Top N List</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824739#M149566</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="721193" data-lia-user-login="DCComia13" class="lia-mention lia-mention-user"&gt;DCComia13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Count =&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;GROUPBY (&lt;BR /&gt;FILTER (&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;TOPN (&lt;BR /&gt;1,&lt;BR /&gt;SUMMARIZE ( 'Table', 'Table'[WE_Date], 'Table'[Emplyee] ),&lt;BR /&gt;[Rank Emplyee by Calls], ASC&lt;BR /&gt;),&lt;BR /&gt;ALLSELECTED ()&lt;BR /&gt;),&lt;BR /&gt;'Table'[Emplyee] = MAX ( 'Table'[Emplyee] )&lt;BR /&gt;),&lt;BR /&gt;'Table'[WE_Date]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 20:00:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824739#M149566</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-09T20:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of times the name was part of the Top N List</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824983#M149574</link>
      <description>&lt;P&gt;thanks again&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, however, this is still not working for me.. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 22:33:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3824983#M149574</guid>
      <dc:creator>DCComia13</dc:creator>
      <dc:date>2024-04-09T22:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of times the name was part of the Top N List</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3825352#M149583</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="721193" data-lia-user-login="DCComia13" class="lia-mention lia-mention-user"&gt;DCComia13&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made simple samples to calculate the top three name counts for different categories and you can check the results below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count = CALCULATE(COUNTAX(FILTER('Table',[Rank]&amp;lt;=3),[We_Date]),ALLEXCEPT('Table','Table'[Employee]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps 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;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 02:57:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3825352#M149583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-10T02:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of times the name was part of the Top N List</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3825589#M149586</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="721193" data-lia-user-login="DCComia13" class="lia-mention lia-mention-user"&gt;DCComia13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share sample pbix with mock data that covers your case.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 04:57:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-times-the-name-was-part-of-the-Top-N-List/m-p/3825589#M149586</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-04-10T04:57:03Z</dc:date>
    </item>
  </channel>
</rss>

