<?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: Distinct count of users via Created By column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4877566#M185876</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;nothing changes this is like my 1st formula that I have tried but less the ALL() function correct? and interchanged the YEAR() and MONTH()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Nov 2025 13:47:00 GMT</pubDate>
    <dc:creator>KejGdr</dc:creator>
    <dc:date>2025-11-17T13:47:00Z</dc:date>
    <item>
      <title>Distinct count of users via Created By column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4877171#M185864</link>
      <description>&lt;P&gt;I have this formula&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE(
    DISTINCTCOUNT('NG - Self Check Request List'[Created By.title]),
    YEAR('NG - Self Check Request List'[Created]) = YEAR(TODAY()),
    MONTH('NG - Self Check Request List'[Created]) = MONTH(TODAY()) - 1
)

/*CALCULATE(
    DISTINCTCOUNT('NG - Self Check Request List'[Created By.title]),
    FILTER(
        ALL('NG - Self Check Request List'),
        MONTH('NG - Self Check Request List'[Created]) = MONTH(TODAY()) - 1 &amp;amp;&amp;amp;
        YEAR('NG - Self Check Request List'[Created]) = YEAR(TODAY())
    )
)*/&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it seems like this is an incorrect formula because it is showing 36, where it is only 19 users if checked manually on the sharepoint list. I fear that it is not counting distinctly thats why some counts were incorrect&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 07:48:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4877171#M185864</guid>
      <dc:creator>KejGdr</dc:creator>
      <dc:date>2025-11-17T07:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count of users via Created By column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4877202#M185866</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1400620" data-lia-user-login="KejGdr" class="lia-mention lia-mention-user"&gt;KejGdr&lt;/a&gt;&amp;nbsp;, Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALCULATE(
    DISTINCTCOUNT('NG - Self Check Request List'[Created By.title]),
    filter('NG - Self Check Request List', YEAR('NG - Self Check Request List'[Created]) = YEAR(TODAY()) &amp;amp;&amp;amp; 
    MONTH('NG - Self Check Request List'[Created]) = MONTH(TODAY()) - 1
) )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Nov 2025 08:23:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4877202#M185866</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2025-11-17T08:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count of users via Created By column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4877566#M185876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;nothing changes this is like my 1st formula that I have tried but less the ALL() function correct? and interchanged the YEAR() and MONTH()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 13:47:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4877566#M185876</guid>
      <dc:creator>KejGdr</dc:creator>
      <dc:date>2025-11-17T13:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count of users via Created By column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4878026#M185887</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1400620" data-lia-user-login="KejGdr" class="lia-mention lia-mention-user"&gt;KejGdr&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I hope you are doing well today&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here is some approaches you can try and tell me if it works ☺️&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#FF9900"&gt;First Approache&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;: (Using &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;DATEADD&lt;/FONT&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Distinct Users Last Month = 
CALCULATE(
    DISTINCTCOUNT('NG - Self Check Request List'[Created By.title]),
    DATEADD(TODAY(), -1, MONTH)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#99CC00"&gt;&lt;STRONG&gt;Second Approache&lt;/STRONG&gt;&lt;/FONT&gt;: (Using &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Proper date filtering&lt;/FONT&gt;&lt;/STRONG&gt;) - This should work &lt;STRONG&gt;perfectly&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Distinct Users Last Month = 
VAR CurrentDate = TODAY()
VAR FirstDayLastMonth = EOMONTH(CurrentDate, -2) + 1
VAR LastDayLastMonth = EOMONTH(CurrentDate, -1)
RETURN
CALCULATE(
    DISTINCTCOUNT('NG - Self Check Request List'[Created By.title]),
    'NG - Self Check Request List'[Created] &amp;gt;= FirstDayLastMonth,
    'NG - Self Check Request List'[Created] &amp;lt;= LastDayLastMonth
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#33CCCC"&gt;&lt;STRONG&gt;Third Approache:&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;Using&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;PREVIOUSMONTH&lt;/STRONG&gt; &lt;/FONT&gt;(if you have a date table)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Distinct Users Last Month = 
CALCULATE(
    DISTINCTCOUNT('NG - Self Check Request List'[Created By.title]),
    PREVIOUSMONTH('Date'[Date])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4" color="#FFCC00"&gt;Bonus Approache:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="4" color="#FFCC00"&gt;&amp;nbsp;&lt;/FONT&gt;Debugging version to &lt;STRONG&gt;verify&lt;/STRONG&gt; your data&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// Firstly check if the date filtering is working correctly
Count Last Month Records = 
VAR CurrentDate = TODAY()
VAR FirstDayLastMonth = EOMONTH(CurrentDate, -2) + 1
VAR LastDayLastMonth = EOMONTH(CurrentDate, -1)
RETURN
CALCULATE(
    COUNTROWS('NG - Self Check Request List'),
    'NG - Self Check Request List'[Created] &amp;gt;= FirstDayLastMonth,
    'NG - Self Check Request List'[Created] &amp;lt;= LastDayLastMonth
)

// Then check distinct users
Distinct Users Last Month = 
VAR CurrentDate = TODAY()
VAR FirstDayLastMonth = EOMONTH(CurrentDate, -2) + 1
VAR LastDayLastMonth = EOMONTH(CurrentDate, -1)
RETURN
CALCULATE(
    DISTINCTCOUNT('NG - Self Check Request List'[Created By.title]),
    'NG - Self Check Request List'[Created] &amp;gt;= FirstDayLastMonth,
    'NG - Self Check Request List'[Created] &amp;lt;= LastDayLastMonth
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Important Tips:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Dont forget to check for blank values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;Distinct Users Last Month (No Blanks) = 
CALCULATE(
    DISTINCTCOUNT('NG - Self Check Request List'[Created By.title]),
    'NG - Self Check Request List'[Created By.title] &amp;lt;&amp;gt; BLANK(),
    DATEADD(TODAY(), -1, MONTH)
)&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;Also verify your &lt;STRONG&gt;date range&lt;/STRONG&gt; by creating a &lt;STRONG&gt;simple table visual&lt;/STRONG&gt; with the date range you are filtering&lt;/LI&gt;&lt;/UL&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;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;if this post helps, then I would appreciate a thumbs up&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;and&amp;nbsp;&lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Nov 2025 22:19:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4878026#M185887</guid>
      <dc:creator>Ahmed-Elfeel</dc:creator>
      <dc:date>2025-11-17T22:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count of users via Created By column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4880814#M185972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="838901" data-lia-user-login="Ahmed-Elfeel" class="lia-mention lia-mention-user"&gt;Ahmed-Elfeel&lt;/a&gt;&amp;nbsp; ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I double checked and it seems like 36 was the correct answer all along for last month meaning my formula has also worked which is weird..&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 09:49:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4880814#M185972</guid>
      <dc:creator>KejGdr</dc:creator>
      <dc:date>2025-11-20T09:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count of users via Created By column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4881533#M185981</link>
      <description>&lt;P&gt;Glad it worked! Please mark as solution if this resolved your issue &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 22:08:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-users-via-Created-By-column/m-p/4881533#M185981</guid>
      <dc:creator>Ahmed-Elfeel</dc:creator>
      <dc:date>2025-11-20T22:08:54Z</dc:date>
    </item>
  </channel>
</rss>

