<?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: DISTINCTCOUNT of items and sum by previous month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-of-items-and-sum-by-previous-month/m-p/1515151#M29483</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Create count measure &lt;/P&gt;
&lt;P&gt;Count Item = count(Table[ItemID])&lt;/P&gt;
&lt;P&gt;or&lt;BR /&gt;Count Item = distinctcount(Table[ItemID]) &lt;/P&gt;
&lt;P&gt;Then create a cumulative like &lt;BR /&gt;&lt;BR /&gt;CumulativeItemsCount = calculate([Count Item], filter(allselected(Table]), Table[Date] &amp;lt;= Max(Table[Date])))&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 04:20:15 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-11-25T04:20:15Z</dc:date>
    <item>
      <title>DISTINCTCOUNT of items and sum by previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-of-items-and-sum-by-previous-month/m-p/1515098#M29481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a DAX that can count the total of items and sum it by the previous month. As an example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ItemID&lt;/TD&gt;&lt;TD&gt;ReceiveDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;01/01/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A2&lt;/TD&gt;&lt;TD&gt;01/02/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;01/02/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B3&lt;/TD&gt;&lt;TD&gt;01/03/2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count of items and sum it by prev month,, (Jan, Jan+Feb, Jan+Mar,etc.) without creating a new table. I just need the CumulativeItemsCount field. ItemsCount is just a sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ReceiveDateMonth&lt;/TD&gt;&lt;TD&gt;ItemsCount&lt;/TD&gt;&lt;TD&gt;CumulativeItemsCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&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;Feb&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to create a column that has the rank of the items filtered by the year and month before proceed with the CumulativeItemsCount column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 03:16:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-of-items-and-sum-by-previous-month/m-p/1515098#M29481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T03:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCTCOUNT of items and sum by previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-of-items-and-sum-by-previous-month/m-p/1515151#M29483</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Create count measure &lt;/P&gt;
&lt;P&gt;Count Item = count(Table[ItemID])&lt;/P&gt;
&lt;P&gt;or&lt;BR /&gt;Count Item = distinctcount(Table[ItemID]) &lt;/P&gt;
&lt;P&gt;Then create a cumulative like &lt;BR /&gt;&lt;BR /&gt;CumulativeItemsCount = calculate([Count Item], filter(allselected(Table]), Table[Date] &amp;lt;= Max(Table[Date])))&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 04:20:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-of-items-and-sum-by-previous-month/m-p/1515151#M29483</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-25T04:20:15Z</dc:date>
    </item>
  </channel>
</rss>

