<?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: Customer Retention Part 3: Period Of Stay – Cohort Analysis in Quick Measures Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3159599#M962</link>
    <description>&lt;P&gt;After the First Sales and Customer Age Columns are done, and then Customer Age Bucket Tables is created, then Measures steps for Retain %, I guess, are created in the original data table? How is it linked to the Customer Age Bucket table?&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="447772" data-lia-user-login="Annie_Do_1413" class="lia-mention lia-mention-user"&gt;Annie_Do_1413&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 01:21:20 GMT</pubDate>
    <dc:creator>ewu</dc:creator>
    <dc:date>2023-03-29T01:21:20Z</dc:date>
    <item>
      <title>Customer Retention Part 3: Period Of Stay – Cohort Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/1393332#M630</link>
      <description>&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Objective:&lt;/STRONG&gt; &lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Period Of Stay – Cohort Analysis provide visibility on how many customers were retained after their first date of purchase.&lt;/P&gt;
&lt;P&gt;Cohort Analysis is studying the behavioral analysis of customers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assume there are 100 new customers (consumers who made the first purchase in the store) in Jan 2020. Out of these 100, how many customers came back in the second month (Feb 2020). Then how many returned in the third month (March -2020) and so on for every month in 2020.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Columns&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;First Sales = minx(FILTER(Sales,[Customer Id] =EARLIER([Customer Id])),[Sales Date])
Customer Age = DATEDIFF([First Sales],[Sales Date],MONTH)+1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Customer Age Bucket = ADDCOLUMNS(GENERATESERIES(1,max(Sales[Customer Age])+1) ,"Age in Month" , "Month " &amp;amp;[Value])
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measures&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Customers = DISTINCTCOUNT(Sales[Customer Id])

Retain % = CALCULATE(divide(DISTINCTCOUNT(Sales[Customer Id]),CALCULATE(DISTINCTCOUNT(Sales[Customer Id]),ALLSELECTED('Customer Age Bucket') , 'Customer Age Bucket'[Age] =1)) , 'Customer Age Bucket'[Age] &amp;gt;1)
&lt;/LI-CODE&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;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiYWM4MGY3ZTUtZmZhZS00ZDQ4LWE1NzUtMGUwMDc3N2U4MmI0IiwidCI6ImVhOGJkMWZkLWFjMzQtNGFlMi1iNDIxLTZjZmEyZmNmZjI0MyJ9&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 16:20:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/1393332#M630</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-05T16:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Customer Retention Part 3: Period Of Stay – Cohort Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/2798315#M894</link>
      <description>&lt;P&gt;Great! Thanks for your sharing&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 02:43:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/2798315#M894</guid>
      <dc:creator>Annie_Do_1413</dc:creator>
      <dc:date>2022-09-27T02:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Customer Retention Part 3: Period Of Stay – Cohort Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3159599#M962</link>
      <description>&lt;P&gt;After the First Sales and Customer Age Columns are done, and then Customer Age Bucket Tables is created, then Measures steps for Retain %, I guess, are created in the original data table? How is it linked to the Customer Age Bucket table?&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="447772" data-lia-user-login="Annie_Do_1413" class="lia-mention lia-mention-user"&gt;Annie_Do_1413&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 01:21:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3159599#M962</guid>
      <dc:creator>ewu</dc:creator>
      <dc:date>2023-03-29T01:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Customer Retention Part 3: Period Of Stay – Cohort Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3159642#M963</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="517873" data-lia-user-login="ewu" class="lia-mention lia-mention-user"&gt;ewu&lt;/a&gt; , Customer Age has been calculated using the first sales date and sales date. That has been joined with the dimension table. If needed we can keep the Age bucket in the sales table. &lt;/P&gt;
&lt;P&gt;Power BI Cohort Analysis, Customer Retention %- &lt;A href="https://youtu.be/qY1SDF1cwsg" target="_blank"&gt;https://youtu.be/qY1SDF1cwsg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 01:55:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3159642#M963</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-03-29T01:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Customer Retention Part 3: Period Of Stay – Cohort Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3159691#M964</link>
      <description>&lt;P&gt;Thanks. I am stuck at the Measures steps - 3rd step in the response above. How do you keep the age bucket in the sales table?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 02:12:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3159691#M964</guid>
      <dc:creator>ewu</dc:creator>
      <dc:date>2023-03-29T02:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Customer Retention Part 3: Period Of Stay – Cohort Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3159703#M965</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="517873" data-lia-user-login="ewu" class="lia-mention lia-mention-user"&gt;ewu&lt;/a&gt; ,There is column rename value -&amp;gt; age (is that creating confusion) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case you create a new column in sales &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Customer Age Bucket = "Month " &amp;amp; format([Customer Age],"00")&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use measures like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Retain % = divide(DISTINCTCOUNT(Sales[Customer Id]),CALCULATE(DISTINCTCOUNT(Sales[Customer Id]),[Customer Age] =1))&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 02:17:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3159703#M965</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-03-29T02:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Customer Retention Part 3: Period Of Stay – Cohort Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3737448#M1051</link>
      <description>&lt;P&gt;Hi! Thanks for sharing the file. Its awesome.&amp;nbsp;&lt;BR /&gt;From your COHORT chart, i would like to change the visualization from "First Month Year" to display "First Year" and observe the trend for next 24 months, need your advice to amend the code.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 07:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/m-p/3737448#M1051</guid>
      <dc:creator>waisal01</dc:creator>
      <dc:date>2024-03-02T07:00:22Z</dc:date>
    </item>
  </channel>
</rss>

