<?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 Count the number of downline who meets certain criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279069#M169792</link>
    <description>&lt;P&gt;Hi there, hope everyone is doing well. I need help with creating a calculated column . The scenario is as such:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a group of sales people (managers) who have their own downline of sales people(execs). All sales people need to hit a certain sales target to qualify for a certain incentive. How do I calculate the number of downline each manager has that qualifies for the incentive?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one column of all sales people including managers and execs and then another column showing the name of their manager (if the manager is the salesperson then his/her name will appear twice under the first and second column) the third column marks 1 or 0 depending on whether their sales target has been achieved.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2024 03:43:57 GMT</pubDate>
    <dc:creator>Adam00</dc:creator>
    <dc:date>2024-11-12T03:43:57Z</dc:date>
    <item>
      <title>Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279069#M169792</link>
      <description>&lt;P&gt;Hi there, hope everyone is doing well. I need help with creating a calculated column . The scenario is as such:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a group of sales people (managers) who have their own downline of sales people(execs). All sales people need to hit a certain sales target to qualify for a certain incentive. How do I calculate the number of downline each manager has that qualifies for the incentive?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one column of all sales people including managers and execs and then another column showing the name of their manager (if the manager is the salesperson then his/her name will appear twice under the first and second column) the third column marks 1 or 0 depending on whether their sales target has been achieved.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 03:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279069#M169792</guid>
      <dc:creator>Adam00</dc:creator>
      <dc:date>2024-11-12T03:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279281#M169803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="829984" data-lia-user-login="Adam00" class="lia-mention lia-mention-user"&gt;Adam00&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;To create a calculated column that counts the number of qualifying downline sales execs for each manager, you can use DAX to filter the data based on the manager name and sales target achievement. Here’s how to approach it:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Assuming:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;SalesPerson&lt;/STRONG&gt; column: Lists all salespeople (both managers and execs).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Manager&lt;/STRONG&gt; column: Lists each salesperson's manager.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;TargetAchieved&lt;/STRONG&gt; column: Contains 1 if the salesperson hit the target, 0 otherwise.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;DAX Calculated Column&lt;/H3&gt;&lt;P&gt;Here’s the DAX code for the calculated column, which will go in the same table as the salespeople:&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;QualifiedDownlineCount = 
VAR CurrentManager = Table[SalesPerson]
RETURN
    CALCULATE(
        COUNTROWS(Table),
        Table[Manager] = CurrentManager,
        Table[TargetAchieved] = 1
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This calculated column will give each manager the count of downline sales execs who have hit their target. Execs without downlines (i.e., who are not managers) will have a 0 in this column.&lt;/P&gt;&lt;H3&gt;Additional Notes&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Make sure to replace Table with the actual name of your table.&lt;/LI&gt;&lt;LI&gt;This calculated column will dynamically update if there are changes in the data.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This approach should give you the number of downline salespeople who qualify for the incentive for each manager.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution, this will help others!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If my response(s) assisted you in any way, don't forget to drop me a "&lt;STRONG&gt;Kudos&lt;/STRONG&gt;" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Poojara&lt;BR /&gt;Data Analyst | MSBI Developer | Power BI Consultant&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 07:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279281#M169803</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2024-11-12T07:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279388#M169808</link>
      <description>&lt;P&gt;Thanks for the reply. I have tried it and it doesn't seem to work. I will show a screenshot of something similar to what I am looking for. The new column is where I want the number to appear for each staff member.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 07:43:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279388#M169808</guid>
      <dc:creator>Adam00</dc:creator>
      <dc:date>2024-11-12T07:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279391#M169809</link>
      <description>&lt;P&gt;Thanks for the reply. I have tried it and it doesn't seem to work. I will show a screenshot of something similar to what I am looking for. The new column is where I want the number to appear for each staff member.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 07:45:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279391#M169809</guid>
      <dc:creator>Adam00</dc:creator>
      <dc:date>2024-11-12T07:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279415#M169810</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="829984" data-lia-user-login="Adam00" class="lia-mention lia-mention-user"&gt;Adam00&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;Hope this helps you&lt;BR /&gt;Suppose we had a data like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Salesperson Manager Target Achieved (1/0) Qualified Downline&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Alice&lt;/TD&gt;&lt;TD&gt;Alice&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;Alice&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Charlie&lt;/TD&gt;&lt;TD&gt;Alice&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;David&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Eve&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Frank&lt;/TD&gt;&lt;TD&gt;Charlie&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Grace&lt;/TD&gt;&lt;TD&gt;Charlie&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Heidi&lt;/TD&gt;&lt;TD&gt;David&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Ivan&lt;/TD&gt;&lt;TD&gt;David&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jack&lt;/TD&gt;&lt;TD&gt;Frank&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we would like to ge the no of people achecived for each manager&amp;nbsp;&lt;BR /&gt;then we use dax code :&amp;nbsp;&lt;BR /&gt;Qualifying Downline Summary =&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'Sales Data',&lt;BR /&gt;'Sales Data'[Manager],&lt;BR /&gt;"Qualifying Downline Count",&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('Sales Data'),&lt;BR /&gt;'Sales Data'[Target Achieved (1/0)] = 1&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;or in power query&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the &lt;STRONG&gt;Group By&lt;/STRONG&gt; section, select &lt;STRONG&gt;Manager&lt;/STRONG&gt; (this will group the data by each manager).&lt;/LI&gt;&lt;LI&gt;Under &lt;STRONG&gt;New column name&lt;/STRONG&gt;, type something like Qualifying Downline Count.&lt;/LI&gt;&lt;LI&gt;Under &lt;STRONG&gt;Operation&lt;/STRONG&gt;, select &lt;STRONG&gt;Sum&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;In the &lt;STRONG&gt;Column&lt;/STRONG&gt; field, select the newly created Qualified Downline column.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;then you will get the output as :&lt;/P&gt;&lt;P&gt;Manager Qualifying Downline Count&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Alice&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Charlie&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;David&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Frank&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 08:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279415#M169810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-12T08:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279562#M169820</link>
      <description>&lt;P&gt;Seems like I have an error. It says that "the expression refers to multiple columns. Multiple columns cannot be converted to a scalar value". I haven't tried the power query method yet tho.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 09:14:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279562#M169820</guid>
      <dc:creator>Adam00</dc:creator>
      <dc:date>2024-11-12T09:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279572#M169821</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="829984" data-lia-user-login="Adam00" class="lia-mention lia-mention-user"&gt;Adam00&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Can you please try in this way it will works&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 09:22:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4279572#M169821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-12T09:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4281273#M169901</link>
      <description>&lt;P&gt;Thanks for suggestion. It works only to a certain extent as in your table, grace, Heidi, Ivan and Jack are all not managers, so they should not have a count in the final column. Only the count of the managers subordinates who have hit the target should be counted in the list. If the employee is a normal employee, his line should be 0 at the end.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 07:22:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4281273#M169901</guid>
      <dc:creator>Adam00</dc:creator>
      <dc:date>2024-11-13T07:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4283360#M170003</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="829984" data-lia-user-login="Adam00" class="lia-mention lia-mention-user"&gt;Adam00&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the description, try using the following DAX formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DownlineAchievedTarget = 
VAR ManagerName = [manager name]
RETURN
CALCULATE(
    COUNTROWS('Table'),
    'Table'[manager name] = ManagerName,
    'Table'[target achieved] = 1
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 07:36:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4283360#M170003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-14T07:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4283555#M170013</link>
      <description>&lt;P&gt;Thanks for the reply. But in this case, the numbers do not go to the manager. Eg. David being the manager of Andrew and Mary should receive 2 instead of 0. Likewise, Andrew and Mary both should be 0 as they don't have down lines.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 08:58:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4283555#M170013</guid>
      <dc:creator>Adam00</dc:creator>
      <dc:date>2024-11-14T08:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4283857#M170025</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Qualified Downline =
IF (
    'Table'[Sales Person] = 'Table'[Manager],
    CALCULATE (
        SUM ( 'Table'[Target Achieved] ),
        ALLEXCEPT ( 'Table', 'Table'[Manager] )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Note that this will include the manager themselves if they have met their target.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 11:23:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4283857#M170025</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2024-11-14T11:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4284838#M170066</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="829984" data-lia-user-login="Adam00" class="lia-mention lia-mention-user"&gt;Adam00&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the testing, the method&amp;nbsp;provided above by johnt75&amp;nbsp;should be helpful.&lt;/P&gt;
&lt;P&gt;Please view the DAX formula, if the method helps, &lt;SPAN&gt;please consider&amp;nbsp;Accept it as the solution&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;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wisdom Wu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 01:00:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4284838#M170066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-15T01:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4286174#M170121</link>
      <description>&lt;P&gt;Thanks for the reply. I will have to go back and give it a try. I'll mark it as accepted once I've tested it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 14:01:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4286174#M170121</guid>
      <dc:creator>Adam00</dc:creator>
      <dc:date>2024-11-15T14:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4287541#M170180</link>
      <description>&lt;P&gt;Seems like this worked. But by any chance would u know how to exclude the manager's own count if they themselves have hit the target?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 10:22:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4287541#M170180</guid>
      <dc:creator>Adam00</dc:creator>
      <dc:date>2024-11-17T10:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of downline who meets certain criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4288600#M170207</link>
      <description>&lt;P&gt;I think the below should do it&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Qualified Downline =
VAR CurrentManager = 'Table'[Manager]
VAR Result =
    IF (
        'Table'[Sales Person] = CurrentManager,
        CALCULATE (
            SUM ( 'Table'[Target Achieved] ),
            ALLEXCEPT ( 'Table', 'Table'[Manager] ),
            'Table'[Sales Person] &amp;lt;&amp;gt; CurrentManager
        )
    )
RETURN
    Result
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 18 Nov 2024 09:31:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-downline-who-meets-certain-criteria/m-p/4288600#M170207</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2024-11-18T09:31:43Z</dc:date>
    </item>
  </channel>
</rss>

