<?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: Previous period (not month) active users in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/805565#M4985</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp;, I really appreciate your time and effort you put in. Please understand some of my previous calculations.&lt;/P&gt;&lt;P&gt;1 - I have a table name Active Users Data (Contain Invoice Date, Conversion Date, User ID's)&lt;/P&gt;&lt;P&gt;2 - I have calculated Measure total active users by using "&lt;SPAN&gt;Total Active Users = DISTINCTCOUNT('Active Users Data'[user_ids])"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 - I have calculated Column Period by using "Period = DATEDIFF('Active Users Data'[User with Conversion Data.ConversionDate],'Active Users Data'[created_at],MONTH)".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 - I have got this Table. Conversion Date / Active Users / Period, which tell me the customer retention.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5 - I have made the cohort Table the help of above table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6 - For Calculating Churn in Need Period Month Users, that's what i looking for.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help you can. Hope I explained well this time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Zeeshan&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2019 10:40:15 GMT</pubDate>
    <dc:creator>shanipowerbi</dc:creator>
    <dc:date>2019-09-30T10:40:15Z</dc:date>
    <item>
      <title>Previous period (not month) active users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/804638#M4942</link>
      <description>&lt;DIV&gt;I was working on cohort analyses and created&amp;nbsp;periods for retention&amp;nbsp;analyses. The period column in datasheet was calculated through the Invoice date.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now I need to calculate churn rate % for this I need the previous period (not month) active users.&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;Data attached for&amp;nbsp;your reference&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Sep 2019 20:00:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/804638#M4942</guid>
      <dc:creator>shanipowerbi</dc:creator>
      <dc:date>2019-09-27T20:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Previous period (not month) active users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/804725#M4944</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="131477" data-lia-user-login="shanipowerbi" class="lia-mention lia-mention-user"&gt;shanipowerbi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try this: Added a column just not sure that I got the churn formula correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Churn = Var PrevpV =CALCULATE(SUM(Churn[Active Users ]),Filter(All(Churn),Churn[Period]=EARLIER(Churn[Period])-1))
 Var Presentper = Churn[Active Users ]

 var Dif = Presentper-PrevpV

       return Divide (dif,PrevpV)&lt;/PRE&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;</description>
      <pubDate>Sat, 28 Sep 2019 00:45:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/804725#M4944</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-09-28T00:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Previous period (not month) active users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/805059#M4970</link>
      <description>&lt;P&gt;Thanks for the feedback, our formula is&lt;/P&gt;&lt;P&gt;Current - Prevous / Previous&lt;/P&gt;&lt;P&gt;So, in Our cas for Exmple : Period 1 is our Current&amp;nbsp; and 0 is Previous.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2019 19:32:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/805059#M4970</guid>
      <dc:creator>shanipowerbi</dc:creator>
      <dc:date>2019-09-29T19:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Previous period (not month) active users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/805062#M4971</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="131477" data-lia-user-login="shanipowerbi" class="lia-mention lia-mention-user"&gt;shanipowerbi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Which is what I am showing. (Current - Previous)/Previous&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var Dif = Presentper-PrevpV

       return Divide (dif,PrevpV)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2019 19:57:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/805062#M4971</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-09-29T19:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Previous period (not month) active users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/805565#M4985</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp;, I really appreciate your time and effort you put in. Please understand some of my previous calculations.&lt;/P&gt;&lt;P&gt;1 - I have a table name Active Users Data (Contain Invoice Date, Conversion Date, User ID's)&lt;/P&gt;&lt;P&gt;2 - I have calculated Measure total active users by using "&lt;SPAN&gt;Total Active Users = DISTINCTCOUNT('Active Users Data'[user_ids])"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 - I have calculated Column Period by using "Period = DATEDIFF('Active Users Data'[User with Conversion Data.ConversionDate],'Active Users Data'[created_at],MONTH)".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 - I have got this Table. Conversion Date / Active Users / Period, which tell me the customer retention.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5 - I have made the cohort Table the help of above table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6 - For Calculating Churn in Need Period Month Users, that's what i looking for.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help you can. Hope I explained well this time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Zeeshan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 10:40:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-period-not-month-active-users/m-p/805565#M4985</guid>
      <dc:creator>shanipowerbi</dc:creator>
      <dc:date>2019-09-30T10:40:15Z</dc:date>
    </item>
  </channel>
</rss>

