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

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

Reply
Anonymous
Not applicable

Start Date and End Date counting for months in between

I am working on a contract labor dashboard, I need to count the person in contract from their start date through their end date- without having to create multiple entries per each labor.

 

Example:

Bob Smith started 01-01-2021 and ends July 30, 2021- so Bob would count January, February, March, April, May, June, and July 

Sally Sue started February 15 and ends May 15- so Sally would count February, March, April, and May. 

 

It would be filtered multiple ways from the same data. 

 

Is there a way to do this where I would not have to manually update/enter the data for each month? 

5 REPLIES 5
gvrajesh
Frequent Visitor

@Anonymous 

Create datetable and measure like below

gvrajesh_1-1614830092884.png

 

gvrajesh_0-1614829877050.png

gvrajesh_2-1614830131264.png

 

 

 

 

 

Anonymous
Not applicable

Will it work if I already have that data in my model just not as a direct table. 

If you've date table...that will work

Anonymous
Not applicable

@gvrajesh What should we join the Date table to on with fact table? Start Date? Or no need to join?

Anonymous
Not applicable

@gvrajesh 

I have the formula set as: 

Count =
VAR Tab =
FILTER('CL Labor Count Table',
'CL Labor Count Table'[Start Date]<= MAX('Date Table'[Date])
&& 'CL Labor Count Table'[End Date]>= MIN('Date Table'[Date])
)
RETURN
CALCULATE(COUNT('CL Labor Count Table'[Lawson ID]), Tab)
 
 
but this is  only showing to the start month. 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.