Objective/ Problem: How can I determine the difference/ remaining days (workday) between today and the end of a individual business month within a dax measure?
Info / General: I have a calendar table in PowerPivot that shows me per day what business month it is and whether it is a workday day. This table has the following structure: Date - Business Month - Workday factor.
That is, each business month has a different start and end date, as opposed to the normal month.
Previous approach: I think I first have to find a variable that shows me the maximum date per month and then use calculate and filter to find the difference to today?
How would you implement that?
Best Regards
Edit: That is my actual approach: Start Date:
Calculate(MIN(Calendar[Business Month]))
End Date:
Calculate(Max(Calendar[Business Month]))
That ones show me the start and end date for each Business Month. Now I need to figure out, how many workdays are between today and End Date.
The Calendar looks like this: enter image description here
Workday = 1
Day off = 0