<?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 How to count distinct ids on max date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-distinct-ids-on-max-date/m-p/3416192#M129250</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to calculate count distinct values based on max date column. I need count of all distinct id whoes date is max&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 17:15:13 GMT</pubDate>
    <dc:creator>Sameer5858</dc:creator>
    <dc:date>2023-09-05T17:15:13Z</dc:date>
    <item>
      <title>How to count distinct ids on max date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-distinct-ids-on-max-date/m-p/3416192#M129250</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to calculate count distinct values based on max date column. I need count of all distinct id whoes date is max&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 17:15:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-distinct-ids-on-max-date/m-p/3416192#M129250</guid>
      <dc:creator>Sameer5858</dc:creator>
      <dc:date>2023-09-05T17:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to count distinct ids on max date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-distinct-ids-on-max-date/m-p/3416215#M129255</link>
      <description>&lt;P&gt;I would do something like this&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Var maxDate = Max('YourFactTable'[DateColumn])&lt;BR /&gt;var result = calculate(&lt;SPAN&gt; &lt;SPAN class=""&gt;DISTINCTCOUNT&lt;/SPAN&gt;('YourFactTable'[IDColumn]),&amp;nbsp;'YourFactTable'[DateColumn]=maxDate)&lt;BR /&gt;return result&lt;BR /&gt;If this post was helpful, please kudos or accept the answer as a solution.&lt;BR /&gt;~ Anthony Genovese&lt;BR /&gt;Need more PBI help? PM me for affordable, dedicated training or consultant recomendations!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 17:29:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-distinct-ids-on-max-date/m-p/3416215#M129255</guid>
      <dc:creator>AnthonyGenovese</dc:creator>
      <dc:date>2023-09-05T17:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to count distinct ids on max date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-distinct-ids-on-max-date/m-p/3419154#M129416</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="612842" data-lia-user-login="Sameer5858" class="lia-mention lia-mention-user"&gt;Sameer5858&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sample data:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count = Var _maxdate=CALCULATE(MAX('Table'[Date]),ALL('Table'))
Return
CALCULATE(DISTINCTCOUNT('Table'[ID]),FILTER(ALL('Table'),[Date]=_maxdate))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&amp;nbsp;If not, please provide some of the example data and desired results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 07:34:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-distinct-ids-on-max-date/m-p/3419154#M129416</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-09-07T07:34:07Z</dc:date>
    </item>
  </channel>
</rss>

