@weekname
2 TopicsCalculate Weekdays between dates
I have created a DAX formula to calculate weekdays, excluding Sundays, Saturdays, and holidays. It is working fine for all the rows. However, I'm not sure why, but it is causing an issue for one specific record. CALCULATE ( COUNTROWS ( 'Order create date' ), FILTER ( 'Order create date', WEEKDAY ( 'Order create date'[Order create date], 2 ) < 6 && 'Order create date'[Is holiday] =0 ), DATESBETWEEN ( 'Order create date'[Order create date], 'Sales order line'[Created date (weekday)] + 1, 'Sales order line'[Ship date requested] ) )Solved549Views0likes1CommentСalculate the number of days in a week for the last month
Hello Community My task is the following, I have the current month of September, I need to count the number of days of the week (Mondays, Tuesdays, Wednesdays, Thursdays, etc.) My calculation measure for the current month is : DaysInWeek = CALCULATE( COUNTROWS('Dates'), 'Dates'[Number_month] = MONTH(TODAY())) I am interested in what will be the measure for calculating these days for the previous month When I add -1 to MONTH(TODAY()) -1 it doesn't give me the desired result. Help to understand how to calculate it.Solved1KViews1like3Comments