I'm struggling to figure out how to translate this excel formula into Dax...
Essentially I need something to calculate "worked days" vs. "working days"
Working Days =NETWORKDAYS(DATE(2022,12,1),EOMONTH(DATE(2022,12,1),0),'DHL holidays'!$A$2:$A$7) (This is cell B4 in the below formula)
Days Worked = =IF(TODAY()>DATE(2022,12,31),$B$4,($B$4-NETWORKDAYS(TODAY(),EOMONTH(TODAY(),0),'DHL holidays'!$A$2:$A$7)))
I'm working on a p&l tool that shows YTD financials.
I need the "days worked" piece to give EOM projections for the current month.
I'd like the formula to stay current for the month we're currently in vs. me manually putting in the EOM date (2022,12,31) like above in the excel formula. So for example, since this is a year to date tool, once we start in January I want it to count the days worked for january, then as Februry hits the days worked will just be the total days for january and then start over for february (current month) and so on.
I currently have a Dates table that has a 1 if it's a working day 0 if it's a weekend or holiday.
I just can't figure out how to come up with the formulas.