Forum Discussion
Help with Dynamic DAX Measure
- Anonymous6 years ago
Hi, I am so sorry I must have missed your last reply/solution.
At the end, this is what I used:
Total Work Mins = [Total Number of Employees]*480 (=8x60=No. of work mins in a day)*[Number of Weekdays Selected]
where
Number of Weekdays Selected = var MinDate = MIN(Date_Calendar[Date])
var MaxDate = MAX(Date_Calendar[Date])
return CALCULATE(DISTINCTCOUNT(Date_Calendar[Date]),'Date_Calendar'[Date]<MaxDate,'Date_Calendar'[Date]>=MinDate,Date_Calendar[IsWeekday]=1)
Anonymous , Date is either selected from the date table or you fact So the number of the day will be
Days = count(Date[Date])
Days = distinctcount(Table[Date])
If you need working days. Make sure you have date table with Working days Marked as 1
Day = Sum(Date[Working Day])
Refer this file for working days: https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0
Hi, I am so sorry I must have missed your last reply/solution.
At the end, this is what I used:
Total Work Mins = [Total Number of Employees]*480 (=8x60=No. of work mins in a day)*[Number of Weekdays Selected]
where
Number of Weekdays Selected = var MinDate = MIN(Date_Calendar[Date])
var MaxDate = MAX(Date_Calendar[Date])
return CALCULATE(DISTINCTCOUNT(Date_Calendar[Date]),'Date_Calendar'[Date]<MaxDate,'Date_Calendar'[Date]>=MinDate,Date_Calendar[IsWeekday]=1)