Forum Discussion
Anonymous
5 years agoNot applicable
Help needed for 'Overdue Items' in Power BI
I am working on creating a report that will show any items that are due past a certain due date. I am hoping to create either a measure or a new column with this info. The columns I need to use to g...
- 5 years ago
Hi Anonymous -
Yes, we can add TODAY() in there. Try this out
IsOverdue = var __Status = [Status] var __ActionDt = [Action Due Date] var __ClosedDt = [Closed Date] return IF ( __Status = "Complete", 0, //Filter out "Complete" IF ( __ActionDt >= TODAY(), 0, //Filter out future due dates IF ( __ActionDt > __ClosedDt || //Closed item from the past was overdue when completed ISBLANK( __ClosedDt ), //Open item has due date in the past 1, 0 ) ) )Hope this helps
David
dedelman_clng
Community Champion
5 years agoHi Anonymous -
Yes, we can add TODAY() in there. Try this out
IsOverdue =
var __Status = [Status]
var __ActionDt = [Action Due Date]
var __ClosedDt = [Closed Date]
return
IF ( __Status = "Complete", 0, //Filter out "Complete"
IF ( __ActionDt >= TODAY(), 0, //Filter out future due dates
IF ( __ActionDt > __ClosedDt || //Closed item from the past was overdue when completed
ISBLANK( __ClosedDt ), //Open item has due date in the past
1, 0 )
)
)
Hope this helps
David
Anonymous
5 years agoNot applicable
Thank you so much! This worked perfectly