Forum Discussion
DGTL
Helper I
5 years agoDAX Calculate delay per month
Hello,
Can you unlock me on a Dax measure?
I would like to have a monthly bar chart with a calculation of overdue orders each month.
Example:
The customer requests a delivery for the 02/01/202...
DGTL
Helper I
5 years agoHi ERD, thank you so much for your answer ! But not working... 😥
View the attachment .pbix :
ERD
Community Champion
5 years agoAnother option upon Table Dates:
overdueOrders2 =
var currentDate2 = SELECTEDVALUE('Table Dates'[Date])
var RES2 =
CALCULATE(
COUNTROWS(Overdue_orders),
FILTER(
Overdue_orders,
currentDate2 >= Overdue_orders[Requested date] &&
currentDate2 <= Overdue_orders[Delivered date]))
Return
IF(ISBLANK(RES2),0,RES2)