<?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: Cohort Analysis in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cohort-Analysis/m-p/1778989#M37355</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="294395" data-lia-user-login="samdep" class="lia-mention lia-mention-user"&gt;samdep&lt;/a&gt; , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;Actually how can be case closed by 100% in month 1&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;DISTINCTCOUNT('Case'[CaseNumber]) is the open case in that month? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Other closed in that Month?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are looking for opened vs open ratio?&lt;/P&gt;
&lt;P&gt;refer if this can help &lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I have discussed similar stuff here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/ba-p/1393410" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/ba-p/1393410&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 03:14:05 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-04-12T03:14:05Z</dc:date>
    <item>
      <title>Cohort Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cohort-Analysis/m-p/1777684#M37281</link>
      <description>&lt;P&gt;Hi Everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a Cohort Analysis and am, I think, most of the way there -- but am struggling with my DAX Retention expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a case open date (cases are grouped into cohorts by the month in which they are onboarded) -- that conditional column is working as expected. I then generated a series 0-12 to represent their signup month (0) and I am now attempting to visualize rates of retention across a 12 month period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason that I cannot quite figure out, Month 0 is not showing 100% -- which in another CA I built out last week where there is a defined start and end date, as well as activity dates in between, all seems to be working fine as Month 0 is showing as 100%, then Month 1 at 80%.... etc...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For cases that are still open (ie: no value in the closed date field, I am using today/current month) -- Not much is different between these analyses, so I'm not sure where I'm going wrong. DAX below, along with actual v. expected results. Greatly appreciate all help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Client Retention (Case Open to Case Close/Today If Not Yet Closed) % = &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;VAR FollowingMonths = SELECTEDVALUE('Months After'[Value])&amp;nbsp; &amp;nbsp;// Series 0-12 generated in a new table - working as expected.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;VAR CaseOpenDate = SELECTEDVALUE('Case'[Case Open Date (Cohort Month)])&amp;nbsp; // Cohort Grouping -- Month of Onboarding - Conditional Column&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;DIVIDE(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;COUNT('Case'[CaseNumber]),&amp;nbsp; &amp;nbsp;//&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;'Case',&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;EOMONTH('Case'[ClosedDate],0) = EOMONTH(CaseOpenDate, FollowingMonths)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;DISTINCTCOUNT('Case'[CaseNumber]))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Here's what I'm getting... &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Cohort&amp;nbsp; &amp;nbsp;Month 0&amp;nbsp; &amp;nbsp;Month 1&amp;nbsp; Month 2&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Jan 21&amp;nbsp; &amp;nbsp;30%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18%&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Feb 21&amp;nbsp; 50%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12%&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Mar 21&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Etc.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here's what I'm hoping to get...&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Cohort&amp;nbsp; &amp;nbsp;Month 0&amp;nbsp; &amp;nbsp;Month 1&amp;nbsp; Month 2&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Jan 21&amp;nbsp; &amp;nbsp;100%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18%&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Feb 21&amp;nbsp; &amp;nbsp;100%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12%&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Mar 21&amp;nbsp; &amp;nbsp;100%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Etc.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Etc.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Apr 2021 20:01:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cohort-Analysis/m-p/1777684#M37281</guid>
      <dc:creator>samdep</dc:creator>
      <dc:date>2021-04-09T20:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cohort Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cohort-Analysis/m-p/1778989#M37355</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="294395" data-lia-user-login="samdep" class="lia-mention lia-mention-user"&gt;samdep&lt;/a&gt; , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;Actually how can be case closed by 100% in month 1&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;DISTINCTCOUNT('Case'[CaseNumber]) is the open case in that month? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Other closed in that Month?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are looking for opened vs open ratio?&lt;/P&gt;
&lt;P&gt;refer if this can help &lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I have discussed similar stuff here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/ba-p/1393410" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/ba-p/1393410&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 03:14:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cohort-Analysis/m-p/1778989#M37355</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-12T03:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cohort Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cohort-Analysis/m-p/1780461#M37381</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response - I'll read through your recommended posts, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't upload a PBIX for some reason here, but I have a link to download a file of sample data (&lt;A href="https://wetransfer.com/downloads/fd3ebcb142a797a5b578a34d4dd3adf720210412145224/296882f3d11e581c41f30b40bedb7ca520210412145237/3a172a" target="_blank"&gt;https://wetransfer.com/downloads/fd3ebcb142a797a5b578a34d4dd3adf720210412145224/296882f3d11e581c41f30b40bedb7ca520210412145237/3a172a&lt;/A&gt;) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first tab (Task Activity) I'm currently using as a proxy for case open/close. In that table, all activity with a client is captured in a single field from first activity date to last and I was able to group cases/clients into cohorts based on first activity date and show retention over a 12 month period based on task activity dates associated with that client through the next 12 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trouble I am having with the case data is that - just like task activity - there is a distinct open date (first activity), but there may not yet be a case close date -- so, I created a conditional column that populates with the case close date if there is one, otherwise today's date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression that worked in the task activity retention analysis doesn't function properly with this table of data - I think I need to add an aging field and tie that to the Months After field to properly show retention across the months between case open date and close date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as 100% in Month 0 -- I'm thinking of Month 0 as the month the client was onboarded, so Month 0 would be 100% across the months. Then, Month 1, we'll start to see that % drop based on how many cases were closed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I'm looking to group cases by the month/year in which they were opened, then show a retention % for the following 12 months - but I'm thinking now the expression isnt working properly because there isnt necessarily an activity date associated with a client in the next month, it's one date for open/one for close - so, I guess I'm probably missing that aging field. Thank you again!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 15:01:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cohort-Analysis/m-p/1780461#M37381</guid>
      <dc:creator>samdep</dc:creator>
      <dc:date>2021-04-12T15:01:58Z</dc:date>
    </item>
  </channel>
</rss>

