Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply

Prior Quarter and Prior Year Retention Counts

I have a table that has details of workers by date.  I've summarized it by worker by quarter and their profession.  I have a distinct count for each worker having worked by quarter.  I need to be able to calculate the retention if they worked prior quarter and prior year.  So if they worked prior year and did not work in the current year they are considerd not retained.  If they come back and work they the are reset.  I've tried to show you how I calculate it manually.  I need help to only track those that were working in the previous year or previous quarter, then have a precentage.  (current period / prior period).  Pleae let me know if you have any ideas.  Thank you.

 

QuarterWorkerID Count    Profession 
2021-Q411XYX  
2022-Q111XYX  
2022-Q211XYX  
2022-Q311XYX  
2022-Q411XYX  
2021-Q421ABC  
2022-Q121ABC  
2022-Q221ABC  
2021-Q431XYX  
2022-Q131XYX  
2022-Q231XYX  
2022-Q431XYX  
2021-Q44 ABC  
2022-Q441ABC  
2022-Q451ABC  
2021-Q461XYX  
2022-Q361XYX  
2022-Q461XYX  
      
      
 2021-Q42022-Q12022-Q22022-Q32022-Q4
XYX     
111111
3111  
61  11
ABC     
2111  
41   1
5    1
      
Distinct Count    
XYX32222
ABC211 2
      
Retention Count  2022-Q42022-Q4
    Prior QtrPrior Year
XYX   11
ABC1   1
      
Retention Calculation  Percent
XYX   50%33%
ABC   0%100%
1 REPLY 1
amitchandak
Super User
Super User

@antoniofallucca , refer if these approach can help

 

Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Customer Retention Part 2: Period over Period Retention :https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retenti...

 

 

You can use Qtr and Year measures

 

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
Power BI — Qtr on Qtr with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839
https://www.youtube.com/watch?v=8-TlVx7P0A0

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.