<?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: Monthly Retention Numbers &amp;amp; Date Relationships in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359502#M60237</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Your Date table should have all unqiue and continuous dates and &lt;STRONG&gt;no bi-directional filter&lt;/STRONG&gt; should be needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use Month-Year Column from your date table and create a visual instead of calc column. If you want the cumulative amount to restart each year you can use TOTALYTD function. Otherwsie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cumulative New Users = CALCULATE(Sum(Retention_Test[New Users],&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(ALLSELECTED('Calendar[Dates]),&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Calendar[Date] &amp;lt;= MAX(Calendar[Date])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;This is if you want a cumulative total that continues to grow across years.&lt;/P&gt;&lt;P&gt;Jan 2021&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;Feb 2021 150&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Dec 2021 300&lt;/P&gt;&lt;P&gt;Jan 2022 350&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 18:30:42 GMT</pubDate>
    <dc:creator>Whitewater100</dc:creator>
    <dc:date>2022-02-24T18:30:42Z</dc:date>
    <item>
      <title>Monthly Retention Numbers &amp; Date Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359480#M60234</link>
      <description>&lt;P&gt;Alright... So I am trying to have a running sum of newUsers by month so that I can calculate a retention rate.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&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;I have created a Date Table, and I thought that I created the correct relationships between the date table, and data table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&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;Link to the &lt;A href="https://drive.google.com/file/d/1hFCr6Fz9GK-tHGREEZnF8Pj8iqVX8cE8/view?usp=sharing" target="_blank" rel="noopener"&gt;.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 18:20:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359480#M60234</guid>
      <dc:creator>bigfun</dc:creator>
      <dc:date>2022-02-24T18:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Retention Numbers &amp; Date Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359502#M60237</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Your Date table should have all unqiue and continuous dates and &lt;STRONG&gt;no bi-directional filter&lt;/STRONG&gt; should be needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use Month-Year Column from your date table and create a visual instead of calc column. If you want the cumulative amount to restart each year you can use TOTALYTD function. Otherwsie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cumulative New Users = CALCULATE(Sum(Retention_Test[New Users],&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(ALLSELECTED('Calendar[Dates]),&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Calendar[Date] &amp;lt;= MAX(Calendar[Date])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;This is if you want a cumulative total that continues to grow across years.&lt;/P&gt;&lt;P&gt;Jan 2021&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;Feb 2021 150&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Dec 2021 300&lt;/P&gt;&lt;P&gt;Jan 2022 350&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 18:30:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359502#M60237</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-02-24T18:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Retention Numbers &amp; Date Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359517#M60238</link>
      <description>&lt;P&gt;Thank you for the quick reply... so are saying that I should delete the (many to 1)relationship I set up between the Calendar - Date &amp;amp; Retention_Test Date?&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;&lt;P&gt;Turing the relationship inactive gave me the same results as I posted above, and with the relationship active, it now sums the full time period in each row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 18:51:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359517#M60238</guid>
      <dc:creator>bigfun</dc:creator>
      <dc:date>2022-02-24T18:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Retention Numbers &amp; Date Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359596#M60245</link>
      <description>&lt;P&gt;&lt;A title="File Update - Retention Rate" href="https://drive.google.com/file/d/1gLauPrbVdrhqJaBo3mun3wB7LfHYjegz/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1gLauPrbVdrhqJaBo3mun3wB7LfHYjegz/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put in some measures in your Retention Table that shows some ways to accumulate totals. On your report page a replicated the matrix so you can scroll down and see the difference at end of month or year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usually, your retention table might have more than one entry per month, multiple entries and even multiple entries per day. When that get's joined to your Date table your relationship will be fine with Dates on the ONE side and the data on the MANY side. It's OK now ,it's a one to one relationship which will work but isn't the type of relationship we typically strive for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did an example of retention rate to show you the divide function that you may want to change to other fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put in an extra Data Table in case you would like more flexibility around Time Intell functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 19:46:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359596#M60245</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-02-24T19:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Retention Numbers &amp; Date Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359615#M60248</link>
      <description>&lt;P&gt;That is super helpful thank you so much... where was I going wrong initally that was causing the MTD to not accumulate correctly?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 19:57:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359615#M60248</guid>
      <dc:creator>bigfun</dc:creator>
      <dc:date>2022-02-24T19:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Retention Numbers &amp; Date Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359665#M60253</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;It looks like your MTD was summing your New Users. (Same figures for New &amp;amp; Total) Since your table was set up as monthly and there is just one figure/month it was behaving correctly. Generally, if you can do this as a measure it's way better for your model, performance and practice. The Calc Columns should be used sparingly and when you need a new filed to sort on for example.&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>Thu, 24 Feb 2022 20:38:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Retention-Numbers-amp-Date-Relationships/m-p/2359665#M60253</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-02-24T20:38:03Z</dc:date>
    </item>
  </channel>
</rss>

