Forum Discussion
amit_wairkar
1 year agoFrequent Visitor
Derive an End date
Hi All, I want to calculate the End date of a project based on the no. of working days. So the formula currently i have is Today + Total no. of days. Eg: End Date = 20/05/2025 + 10 days = 30...
- 1 year ago
Hearty Thanks for all your support. I tried everyones suggestion but faced some issue. I was able to crack the formula with some help. Below is the DAX:
VAR RemainingDays = A FormulaVAR TodayDate = TODAY()-1RETURNCALCULATE (MAX('Dates'[Date]),FILTER (ADDCOLUMNS (FILTER ('Dates','Dates'[Date] >= TodayDate &&'Dates'[IsWorkingDay] = TRUE),"WorkDayIndex", RANKX (FILTER ('Dates','Dates'[Date] >= TodayDate &&'Dates'[IsWorkingDay] = TRUE),'Dates'[Date],,ASC)),[WorkDayIndex] = RemainingDays))I have a Date table which has a column [IsWorkingDay] =IF (WEEKDAY('Dates'[Date], 2) <= 5, // Monday = 1, ..., Friday = 5TRUE,FALSE)Regards,Amit Wairkar
v-echaithra
Community Support
1 year agoHi amit_wairkar ,
Thank you for sharing your update and confirming that you dont have any issue. i request you to please accept your own post as the solution, this will help other community members who might face a similar issue.
Thanks again for your contribution!