Forum Discussion
Killingworth
6 years agoRegular Visitor
Working Days
I have two tables 1. With raw data of interactions broken down by date 2. Date table with all dates of the year with an indicator if the day is a working day or not. I have a measure whic...
- 6 years ago
please try this
THISMONTHWORKDAY = CALCULATE(COUNTROWS('DATE'),FILTER('DATE','DATE'[Date]<=TODAY()&&'DATE'[WORKDAY2]="WEEKDAY"))
ryan_mayu
6 years agoSuper User
It will be better that you share your measure and the sample data.
THISMONTHWORKDAY =
VAR mth=MONTH(TODAY())
VAR yr=YEAR(today())
RETURN CALCULATE(COUNTROWS('DATE'),FILTER('DATE',YEAR('DATE'[Date])=yr&& MONTH('DATE'[Date])=mth&&'DATE'[Date]<=TODAY()&&'DATE'[WORKDAY2]="WEEKDAY"))Since my local time is about 1 am, my workday is 10 for this month.
Killingworth
6 years agoRegular Visitor
That gives me the number of working days complete in the current month but if I filter the data for previous months it doesn't give the amount of working days complete in the filtered month ?
- ryan_mayu6 years agoSuper User
please try this
THISMONTHWORKDAY = CALCULATE(COUNTROWS('DATE'),FILTER('DATE','DATE'[Date]<=TODAY()&&'DATE'[WORKDAY2]="WEEKDAY"))- Killingworth6 years agoRegular Visitor
That worked thanks for your help