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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Count Tasks Overdue, Approaching & In Date

Hello,

 

Could someone help me on the below please? I'm looking for a dax measure to count 3x separate items.

 

Overdue (Count Task ID - Status Open and Due Date past todays date)

Approaching - (Count Task ID - Status Open and Due Date within the next 30 days)

In Date - (Count Task ID - Status Open and Not Due in next 30 Days)

 

TIA! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Here I create a sample to have a test.

vrzhoumsft_0-1691572926702.png

Measure:

Count Overdue = CALCULATE(COUNT('Table'[Task ID]),FILTER('Table','Table'[Status] = "Open" && 'Table'[Due Date]<TODAY()))
Count Approaching = CALCULATE(COUNT('Table'[Task ID]),FILTER('Table','Table'[Status] = "Open" && 'Table'[Due Date]<=TODAY()+30 && 'Table'[Due Date]>=TODAY()))
Count In Date = CALCULATE(COUNT('Table'[Task ID]),FILTER('Table','Table'[Status] = "Open" && 'Table'[Due Date]>TODAY()+30))

Result is as below.

vrzhoumsft_1-1691572978413.png

 

Best Regards,
Rico Zhou

 

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

3 REPLIES 3
Narayana_Swamy
New Member

Hi @Anonymous ,

 

A little bit of additional context would help. I am looking for:
1. Do you need 3 seperate outputs (matrix with 3 values as outputs) or everything in 1 (based on selected taskID)

Anonymous
Not applicable

Hi @Narayana_Swamy,

 

Thanks for the fast reply! I'm looking for 3x separate measures please.

 

Thanks, 

Anonymous
Not applicable

Hi @Anonymous ,

 

Here I create a sample to have a test.

vrzhoumsft_0-1691572926702.png

Measure:

Count Overdue = CALCULATE(COUNT('Table'[Task ID]),FILTER('Table','Table'[Status] = "Open" && 'Table'[Due Date]<TODAY()))
Count Approaching = CALCULATE(COUNT('Table'[Task ID]),FILTER('Table','Table'[Status] = "Open" && 'Table'[Due Date]<=TODAY()+30 && 'Table'[Due Date]>=TODAY()))
Count In Date = CALCULATE(COUNT('Table'[Task ID]),FILTER('Table','Table'[Status] = "Open" && 'Table'[Due Date]>TODAY()+30))

Result is as below.

vrzhoumsft_1-1691572978413.png

 

Best Regards,
Rico Zhou

 

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

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.