<?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 weekly churn volume against monthly base volume in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4762796#M182429</link>
    <description>&lt;P&gt;Hi - I have two tables that have been appended: Churn with volumes in week and month fields and Base with data only in the month field (week field is all blank). Reason is I need 2 years of data and the base is too big to bring in at a weekly level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate a churn rate: weekly churn / that month's base (or closest month as some weeks will be across two months)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what the data currently looks like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jul 2025 23:59:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-07-14T23:59:15Z</dc:date>
    <item>
      <title>Calculating weekly churn volume against monthly base volume</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4762796#M182429</link>
      <description>&lt;P&gt;Hi - I have two tables that have been appended: Churn with volumes in week and month fields and Base with data only in the month field (week field is all blank). Reason is I need 2 years of data and the base is too big to bring in at a weekly level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate a churn rate: weekly churn / that month's base (or closest month as some weeks will be across two months)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what the data currently looks like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 23:59:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4762796#M182429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-07-14T23:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating weekly churn volume against monthly base volume</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4763248#M182443</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Hi!&amp;nbsp;Create a separate Base Table and call it&amp;nbsp;BaseReference.&lt;/P&gt;
&lt;P&gt;Then create a relationship between your combined table and BaseReference through&amp;nbsp;trde_mth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a Churn Rate Measure like:&lt;/P&gt;
&lt;P&gt;Churn Rate (%) = &lt;BR /&gt;DIVIDE(&lt;BR /&gt;SUM(Combined[Churn Vol]),&lt;BR /&gt;RELATED(BaseReference[Opening Base])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BBF&lt;/P&gt;
&lt;DIV style="font-family: Segoe UI, sans-serif; font-size: 14px; line-height: 1.2;"&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; &lt;STRONG&gt;Did I answer your question?&lt;/STRONG&gt; Mark my post as a solution! &lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; Kudos are appreciated &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":fire:"&gt;🔥&lt;/span&gt; Proud to be a Super User!&lt;/STRONG&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt; &lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Jul 2025 07:48:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4763248#M182443</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2025-07-15T07:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating weekly churn volume against monthly base volume</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4763339#M182450</link>
      <description>&lt;P&gt;Keep the two tables separated (I call then Churn Monthly Data&amp;nbsp;and Churn Weekly Data just as an example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a calendar calculate table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cal = CALENDARAUTO()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connect the Calendar Date column to the trade_month column of both tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create two measures&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WeeklyChurn =&lt;/SPAN&gt; &lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Churn Weekly Data'&lt;/SPAN&gt;&lt;SPAN&gt;[ChurnVol]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Monthly Churn =&lt;/SPAN&gt;&lt;/DIV&gt;&l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;SPAN&gt; &amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Churn Monthly Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Churn]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;( ),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Cal&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MonthVisibleDate&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 09:15:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4763339#M182450</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-07-15T09:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating weekly churn volume against monthly base volume</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4764354#M182505</link>
      <description>&lt;P&gt;Thank you so much, this worked!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 22:39:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4764354#M182505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-07-15T22:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating weekly churn volume against monthly base volume</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4764355#M182506</link>
      <description>&lt;P&gt;Great solution, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 22:41:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-weekly-churn-volume-against-monthly-base-volume/m-p/4764355#M182506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-07-15T22:41:43Z</dc:date>
    </item>
  </channel>
</rss>

