<?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 Churned MRR calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Churned-MRR-calculation/m-p/3909613#M152268</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I'm new to Power BI. I'm writing MRR analysis. Completed count of churned customer, new customer and retained customer using following measures:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CustCountChurned = - sumx(VALUES(Cust_lookup[Cust#]), if(not(ISBLANK('GL'[RevLastMTD])) &amp;amp;&amp;amp; ISBLANK('GL'[RevMTD]) ,1,BLANK()))


CustCountNew = sumx(VALUES(Cust_lookup[Cust#]), if(ISBLANK('GL'[RevLastMTD]) &amp;amp;&amp;amp; not(ISBLANK('GL'[RevMTD])) ,1,BLANK()))


CustCountRetained = sumx(values(Cust_lookup[Cust#]),if(not(ISBLANK('GL'[RevLastMTD])) &amp;amp;&amp;amp; not(ISBLANK('GL'[RevMTD])) , 1,BLANK()))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Datasets look like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need your help on calculate the revenue of&amp;nbsp;churned customer, new customer and retained customer with following definitions:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Rev of Customter churned = prior month revenue from customers churned in current month&lt;/LI&gt;&lt;LI&gt;Rev of new Customer = current month revenue from new customer in current month&lt;/LI&gt;&lt;LI&gt;Rev of Customers retained =&amp;nbsp;current month revenue from retained customer in current month&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I would very appreciation your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;p.s. I have read post on similar topics but can't find solutions. I tried to use the following measure to calculate revenue of customer churned but failed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RevChurned = 
VAR ChurnedCustomers =
    CALCULATETABLE(
        VALUES(Cust_lookup[Cust#]),        
        ISBLANK('GL'[RevMTD]) &amp;amp;&amp;amp; NOT(ISBLANK('GL'[RevLastMTD]))
        )
RETURN
CALCULATE(
    SUM(Revenue[GLAmtAdj.]),
    Cust_lookup[Cust#] IN ChurnedCustomers
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2024 17:13:52 GMT</pubDate>
    <dc:creator>Hailey_Hung</dc:creator>
    <dc:date>2024-05-10T17:13:52Z</dc:date>
    <item>
      <title>Churned MRR calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Churned-MRR-calculation/m-p/3909613#M152268</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I'm new to Power BI. I'm writing MRR analysis. Completed count of churned customer, new customer and retained customer using following measures:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CustCountChurned = - sumx(VALUES(Cust_lookup[Cust#]), if(not(ISBLANK('GL'[RevLastMTD])) &amp;amp;&amp;amp; ISBLANK('GL'[RevMTD]) ,1,BLANK()))


CustCountNew = sumx(VALUES(Cust_lookup[Cust#]), if(ISBLANK('GL'[RevLastMTD]) &amp;amp;&amp;amp; not(ISBLANK('GL'[RevMTD])) ,1,BLANK()))


CustCountRetained = sumx(values(Cust_lookup[Cust#]),if(not(ISBLANK('GL'[RevLastMTD])) &amp;amp;&amp;amp; not(ISBLANK('GL'[RevMTD])) , 1,BLANK()))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Datasets look like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need your help on calculate the revenue of&amp;nbsp;churned customer, new customer and retained customer with following definitions:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Rev of Customter churned = prior month revenue from customers churned in current month&lt;/LI&gt;&lt;LI&gt;Rev of new Customer = current month revenue from new customer in current month&lt;/LI&gt;&lt;LI&gt;Rev of Customers retained =&amp;nbsp;current month revenue from retained customer in current month&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I would very appreciation your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;p.s. I have read post on similar topics but can't find solutions. I tried to use the following measure to calculate revenue of customer churned but failed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RevChurned = 
VAR ChurnedCustomers =
    CALCULATETABLE(
        VALUES(Cust_lookup[Cust#]),        
        ISBLANK('GL'[RevMTD]) &amp;amp;&amp;amp; NOT(ISBLANK('GL'[RevLastMTD]))
        )
RETURN
CALCULATE(
    SUM(Revenue[GLAmtAdj.]),
    Cust_lookup[Cust#] IN ChurnedCustomers
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 17:13:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Churned-MRR-calculation/m-p/3909613#M152268</guid>
      <dc:creator>Hailey_Hung</dc:creator>
      <dc:date>2024-05-10T17:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Churned MRR calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Churned-MRR-calculation/m-p/3912437#M152333</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="740893" data-lia-user-login="Hailey_Hung" class="lia-mention lia-mention-user"&gt;Hailey_Hung&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide your sample data and expected results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 02:02:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Churned-MRR-calculation/m-p/3912437#M152333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-13T02:02:06Z</dc:date>
    </item>
  </channel>
</rss>

