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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.