<?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 Calculating Removed Users based on previous month totals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Removed-Users-based-on-previous-month-totals/m-p/3336532#M125138</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have table like this, I want to create column removed users which will calculate how many users have been removed in new month, so for example firs one will be: Count of Users (from January) + Count of New Users (from February) - Count of Users (February) = removed users in February&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this:&amp;nbsp;RemovedUsers = CALCULATETABLE((('Dashboard_data_2023'[GPN DCOUNT]),DATESMTD(dateadd('Dashboard_data_2023'[WEEK],-1,MONTH)))+'Dashboard_data_2023'[Count of GPN for NEW]-CALCULATE(('Dashboard_data_2023'[GPN DCOUNT]),DATESMTD('Dashboard_data_2023'[WEEK])))&lt;/P&gt;&lt;P&gt;but it creating column with the same values as column Count of New Users&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 13:10:24 GMT</pubDate>
    <dc:creator>carollyna205</dc:creator>
    <dc:date>2023-07-18T13:10:24Z</dc:date>
    <item>
      <title>Calculating Removed Users based on previous month totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Removed-Users-based-on-previous-month-totals/m-p/3336532#M125138</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have table like this, I want to create column removed users which will calculate how many users have been removed in new month, so for example firs one will be: Count of Users (from January) + Count of New Users (from February) - Count of Users (February) = removed users in February&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this:&amp;nbsp;RemovedUsers = CALCULATETABLE((('Dashboard_data_2023'[GPN DCOUNT]),DATESMTD(dateadd('Dashboard_data_2023'[WEEK],-1,MONTH)))+'Dashboard_data_2023'[Count of GPN for NEW]-CALCULATE(('Dashboard_data_2023'[GPN DCOUNT]),DATESMTD('Dashboard_data_2023'[WEEK])))&lt;/P&gt;&lt;P&gt;but it creating column with the same values as column Count of New Users&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 13:10:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Removed-Users-based-on-previous-month-totals/m-p/3336532#M125138</guid>
      <dc:creator>carollyna205</dc:creator>
      <dc:date>2023-07-18T13:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Removed Users based on previous month totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Removed-Users-based-on-previous-month-totals/m-p/3339707#M125330</link>
      <description>&lt;P&gt;According to your sample data "Count of Users" is the sum of "Count of Continue Users" and "Count of New Users". That means your formula&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count of Users (from January) + Count of New Users (from February) - Count of Users (February) &lt;/LI-CODE&gt;
&lt;P&gt;can be rewritten as&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count of Users (from January) - Count of Continue Users (February) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next you need an index column (or at least convert your date text into a proper date).&amp;nbsp; That will then allow you to do the calculation.&amp;nbsp; You can decide if this should be a measure, a calculated column, or a Power Query code.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 00:48:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Removed-Users-based-on-previous-month-totals/m-p/3339707#M125330</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-20T00:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Removed Users based on previous month totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Removed-Users-based-on-previous-month-totals/m-p/3340273#M125350</link>
      <description>&lt;P&gt;It can not be rewritten this way and the total will show me sum of new and removed user. and I need only removed user&lt;/P&gt;&lt;P&gt;I know what logic I need, what I am looking for here is how to write dax for it as I need to do this automatically for every new month which will show there not manually doing calculations for each month&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 08:04:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Removed-Users-based-on-previous-month-totals/m-p/3340273#M125350</guid>
      <dc:creator>carollyna205</dc:creator>
      <dc:date>2023-07-20T08:04:55Z</dc:date>
    </item>
  </channel>
</rss>

