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
SAHoff
Frequent Visitor

Measures to Count Projects Completed on Time and Late

I'm working with a list of completed and ongoing projects and trying to report on the numbers ofcompleted projects that were:

  1. completed before or on their due dates; and
  2. completed after their due dates (late).

Here's what is not working:

Measure 1: 

CompletedLateCount = CALCULATE ( COUNT('WIP Tracker'[Title]), FILTER ( 'WIP Tracker', 'WIP Tracker'[Completion Date]>'WIP Tracker'[Due Date].[Date]) && ISBLANK('WIP Tracker'[Due Date]=FALSE()))

 

Measure2:

CompletedOnTimeCount = CALCULATE(COUNT('WFPP WIP Tracker'[Title])-[CompletedLateCount])
 
I'm new at this. Could someone help me out with the DAX here?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SAHoff ,

Please try:

 

CompletedLateCount = 
CALCULATE (
    COUNT ( 'WIP Tracker'[Title] ),
    'WIP Tracker'[Completion Date] > 'WIP Tracker'[Due Date]
        && 'WIP Tracker'[Due Date] <> BLANK ()
)
CompletedOnTimeCount = CALCULATE(COUNT('WIP Tracker'[Title]),'WIP Tracker'[Completion Date]<='WIP Tracker'[Due Date])

 

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @SAHoff ,

Please try:

 

CompletedLateCount = 
CALCULATE (
    COUNT ( 'WIP Tracker'[Title] ),
    'WIP Tracker'[Completion Date] > 'WIP Tracker'[Due Date]
        && 'WIP Tracker'[Due Date] <> BLANK ()
)
CompletedOnTimeCount = CALCULATE(COUNT('WIP Tracker'[Title]),'WIP Tracker'[Completion Date]<='WIP Tracker'[Due Date])

 

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

This is perfect. Thanks so much!

djurecicK2
Super User
Super User

Hi @SAHoff ,

 You can achieve this by using a calculated column like below. Please adjust to fit your table and field names.

Status = IF('WIP Tracker'[Due Date]>'WIP Tracker'[Completion Date],"On-Time","Late")
New column.png
dax column.PNG
After this column has been created, create a measure to count status= On-Time and a measure to count status= late.
 
Please consider marking as solution if this has answered the question.

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.

Top Solution Authors
Top Kudoed Authors