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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Determining Status with Start and End Date

Hello,

 

I am currently working with a data set that has a StartDate column and an EndDate column of clients both set of dates tie into a status of the client (ie when they became a client and when they ceased being a client). I'm trying to visualize the month-to-month change in client retention to show the number added per month and the number leaving per month. 

 

What would be the right approach to model that a status is tied to the start and end date, but also show month to month change of the status?

My thought is that I need some sort of continous date table that is independant of the start and end dates. 

Presently I have 
Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

My thought is that I need some sort of continous date table that is independant of the start and end dates. 

Yes, Please try:

Calendar = CALENDAR(MIN('Table'[StartDate]),MAX('Table'[EndDate])) 
Count of active clients = CALCULATE(COUNTROWS('Table'),FILTER('Table',[StartDate]<=MAX('Calendar'[Date]) && [EndDate]>=MAX('Calendar'[Date])))

Output:

Eyelyn9_0-1658122477414.png

 

 Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

My thought is that I need some sort of continous date table that is independant of the start and end dates. 

Yes, Please try:

Calendar = CALENDAR(MIN('Table'[StartDate]),MAX('Table'[EndDate])) 
Count of active clients = CALCULATE(COUNTROWS('Table'),FILTER('Table',[StartDate]<=MAX('Calendar'[Date]) && [EndDate]>=MAX('Calendar'[Date])))

Output:

Eyelyn9_0-1658122477414.png

 

 Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PC2790
Community Champion
Community Champion

Hello @Anonymous ,

 

Yes, you require a continuous date table to perform all time intellegence functions.

You can create a calendar table either using Power Query or dax. 

And then you can refer this article to write measues to get the required data which you can visualise in whatever way you want.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.