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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
miracle2023
Helper I
Helper I

Build dax query to get predicted overdues

Hi there, 

I wonder does anyone have any idea how to do it via dax query (please see the attached screenshot)?

I've already got a number of overdue cases until now, due cases in current month and also due cases for next months. Availible FTE is a static variable.

I want to calculate potential overdues that will happen in future: (previous month overdue + current month due) - availible fte. 

For instance, to calculate September overdues - (I take real number of overdues + due in September) - Availible FTE

To calculate October - (September Overdues + due in October) - Availible FTE.

Any help would be valuable,

Thank you.

miracle2023_1-1692853061018.png

 

6 REPLIES 6
miracle2023
Helper I
Helper I

Still struggling with it. Any help would be appreciated.

miracle2023
Helper I
Helper I

any suggestions?

Thanks

miracle2023
Helper I
Helper I

Hi,

Thank you very much for you suggestion.

However, it is not something I would expect in my output.

I have three measures:

 

 

 

 

 

Due_cases = calculate(sum(table[cases]),status="Due")
Due_cases_in_current_month = calculate(sum(table[cases]),status="Due", FILTER(table,EOMONTH(table[date],0)=EOMONTH(TODAY(),0)))
Overdue_cases = calculate(sum(table[cases]),status="Overdue")

 

 

 

 

 

Matrix should look:

DateAugust 2023September 2023October 2023November 2023
Overdue25 (Overdue_cases)(37+25)-2.5=59.5(59.5 + 23) - 2.5 = 80(80+11)-2.5 = 88.5
Due40 (due cases in current month)37 (due cases)23 (due cases)11 (due cases)
FTE Availible2.52.52.52.5

I would like to get these overdues for upcoming 15 months.

I would appreciate any help,

Thank you

Hi @miracle2023 

 

Can you share a screenshot of the data in the table if it isn't sensitive?

 

I would like to see how it's structured and how you get to overdue. 

 

Thanks

 

 

Thank you for your reply.

Please see the attached screenshot. 

miracle2023_1-1692900045764.png

 

 

JoeBarry
Solution Sage
Solution Sage

Hi @miracle2023 

 

I will presume that in your dataset you have data indicating that something is overdue?

 

Create a Measure called OverDue 

 

OverDue = CALCULATE(DISTINCTCOUNT(Table[CaseID]), KEEPFILTERS(Table[CaseOverDue]= "YES")

 

 

 Then you need a measure to calculate last months values

 

LastMonth = CALCULATE([OverDue], DATEADD(Date[Date], -1, Month))

 

 

Then create the measure you need for your calculation

 

 

Predicted Overdues = ([LastMonth] + [OverDue]) - 2.5 ///or use MAX(Table[AvailableFTE]) ///

 

Thanks

Joe

 

If this post helps, then please Accept it as the solution 

 

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.