<?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: DAX calculate Previous month lost customer revenue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4010627#M157828</link>
    <description>&lt;P&gt;up&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 07:08:13 GMT</pubDate>
    <dc:creator>APIR</dc:creator>
    <dc:date>2024-06-26T07:08:13Z</dc:date>
    <item>
      <title>DAX calculate Previous month lost customer revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4009205#M157512</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am having trouble calculating the previous month lost customer revenue.&lt;/P&gt;&lt;P&gt;My model relies on a single way relationship between thr fact table and the time table, so that is not possible to change.&lt;/P&gt;&lt;P&gt;I would like to display the measure "Churn_lost_$" as shown in the picture below.&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":call_me_hand:"&gt;🤙&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can donload the model here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1MKFmtBIm1Z-yJ0--FhVRuIrZqWVV166c/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1MKFmtBIm1Z-yJ0--FhVRuIrZqWVV166c/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 21:31:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4009205#M157512</guid>
      <dc:creator>APIR</dc:creator>
      <dc:date>2024-06-26T21:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculate Previous month lost customer revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4010627#M157828</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 07:08:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4010627#M157828</guid>
      <dc:creator>APIR</dc:creator>
      <dc:date>2024-06-26T07:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculate Previous month lost customer revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4010868#M157847</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="765249" data-lia-user-login="APIR" class="lia-mention lia-mention-user"&gt;APIR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Step1 = 
var _column=
SELECTCOLUMNS(
    FILTER(ALL('FACT_Orders'),
    'FACT_Orders'[Account Name 1]=MAX('Accounts'[Customer])),"Test",'FACT_Orders'[Date])
return
IF(
    MAX('TIME_Table'[Date]) in _column,BLANK(),0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Step2 = 
COUNTX(ALL('Accounts'),'Accounts'[Customer])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Step3 = 
IF(
HASONEVALUE('Accounts'[Customer]) , [Step1],
 IF(
HASONEVALUE('TIME_Table'[Date].[Month]) &amp;amp;&amp;amp; [Step2]&amp;lt;&amp;gt;[Accounts Distinct],0,BLANK()))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 09:05:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4010868#M157847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T09:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculate Previous month lost customer revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4012026#M157966</link>
      <description>&lt;P&gt;Hello Clara,&lt;/P&gt;&lt;P&gt;First of all thank you for your time. Not correct though (yet!)&lt;/P&gt;&lt;P&gt;I've increased the data and the value are incorrect. Here is how I imagine the result:&lt;/P&gt;&lt;P&gt;I've tried many things but I still stuck.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the file with more data:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1MKFmtBIm1Z-yJ0--FhVRuIrZqWVV166c/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1MKFmtBIm1Z-yJ0--FhVRuIrZqWVV166c/view?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 21:30:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4012026#M157966</guid>
      <dc:creator>APIR</dc:creator>
      <dc:date>2024-06-26T21:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculate Previous month lost customer revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4015896#M158273</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 14:49:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4015896#M158273</guid>
      <dc:creator>APIR</dc:creator>
      <dc:date>2024-06-28T14:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculate Previous month lost customer revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4018228#M158464</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 09:00:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4018228#M158464</guid>
      <dc:creator>APIR</dc:creator>
      <dc:date>2024-07-01T09:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculate Previous month lost customer revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4020965#M158640</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 16:17:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4020965#M158640</guid>
      <dc:creator>APIR</dc:creator>
      <dc:date>2024-07-02T16:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculate Previous month lost customer revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4023035#M158746</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 13:59:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4023035#M158746</guid>
      <dc:creator>APIR</dc:creator>
      <dc:date>2024-07-03T13:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculate Previous month lost customer revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4023745#M158810</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 22:49:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4023745#M158810</guid>
      <dc:creator>APIR</dc:creator>
      <dc:date>2024-07-03T22:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculate Previous month lost customer revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4027934#M159129</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 09:34:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculate-Previous-month-lost-customer-revenue/m-p/4027934#M159129</guid>
      <dc:creator>APIR</dc:creator>
      <dc:date>2024-07-06T09:34:50Z</dc:date>
    </item>
  </channel>
</rss>

