Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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 which gives me the number of working days in each month but how do I get the number of working days worked to the current date
i.e this month to date they have been 9 workings days
Solved! Go to Solution.
please try this
THISMONTHWORKDAY =
CALCULATE(COUNTROWS('DATE'),FILTER('DATE','DATE'[Date]<=TODAY()&&'DATE'[WORKDAY2]="WEEKDAY"))
Proud to be a Super 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.
Proud to be a Super User!
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 ?
please try this
THISMONTHWORKDAY =
CALCULATE(COUNTROWS('DATE'),FILTER('DATE','DATE'[Date]<=TODAY()&&'DATE'[WORKDAY2]="WEEKDAY"))
Proud to be a Super User!
That worked thanks for your help
@Killingworth , Refer this how to get working dates between 2 dates. Make one of the date as today.
Refer 2nd page
https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |