<?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: DAX Expression to Count how many sales people have met or exceeded their sales quota for 2023 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-Count-how-many-sales-people-have-met-or/m-p/3355804#M126100</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381058" data-lia-user-login="DeanUW" class="lia-mention lia-mention-user"&gt;DeanUW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try the following.&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;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I created the below test Fact table.&amp;nbsp; As you can see from the data, Ed &amp;amp; Joe met their threshold, while Sarah did not.&amp;nbsp; For this reason, 2 is the correct number of persons who exceeded their threshold for 2023.&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;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S.&amp;nbsp; I used DAX to create my own Calendar table for Time Intelligence functions to work.&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;P&gt;&lt;img /&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 17:23:45 GMT</pubDate>
    <dc:creator>Take3</dc:creator>
    <dc:date>2023-07-28T17:23:45Z</dc:date>
    <item>
      <title>DAX Expression to Count how many sales people have met or exceeded their sales quota for 2023</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-Count-how-many-sales-people-have-met-or/m-p/3355666#M126094</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a fact table that contains all of the sales transactions for all of the sales people (star schema with sales in one table, sales agents in another, and office data in a third merged into one central fact table).&amp;nbsp; I need to count how many sales people have a YTD sales total that exceeds there 2023 sales threshold.&amp;nbsp; The columns in the fact table include:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Person ID] = unique key,&amp;nbsp; will appear multiple times in the table for each sale.&lt;/P&gt;&lt;P&gt;[Gross Amount] = calculated column that is simply [credits] - [debits] for every sales line. it is not calculating YTD total only the gross for each sale.&lt;/P&gt;&lt;P&gt;[2023 Threshold] = different values are given to different sales people.&lt;/P&gt;&lt;P&gt;[postingDate] = the date the sales transaction occured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The co-pilot feature has not been much help creating a DAX expression that will count the distinct [Person ID] whose YTD total &amp;gt;= [2023 Threshold]; &amp;amp; my DAX skills are not quiet advanced enough.&amp;nbsp; Every attempt I have made only ends up counting the people who had a single transaction above their quota not their YTD total sales amount.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance to anyone who is able to assist!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 15:50:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-Count-how-many-sales-people-have-met-or/m-p/3355666#M126094</guid>
      <dc:creator>DeanUW</dc:creator>
      <dc:date>2023-07-28T15:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Expression to Count how many sales people have met or exceeded their sales quota for 2023</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-Count-how-many-sales-people-have-met-or/m-p/3355804#M126100</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381058" data-lia-user-login="DeanUW" class="lia-mention lia-mention-user"&gt;DeanUW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try the following.&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;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I created the below test Fact table.&amp;nbsp; As you can see from the data, Ed &amp;amp; Joe met their threshold, while Sarah did not.&amp;nbsp; For this reason, 2 is the correct number of persons who exceeded their threshold for 2023.&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;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S.&amp;nbsp; I used DAX to create my own Calendar table for Time Intelligence functions to work.&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;P&gt;&lt;img /&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 17:23:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-Count-how-many-sales-people-have-met-or/m-p/3355804#M126100</guid>
      <dc:creator>Take3</dc:creator>
      <dc:date>2023-07-28T17:23:45Z</dc:date>
    </item>
  </channel>
</rss>

