Forum Discussion
DAX Function
- 10 years ago
If you want to automate this - you'll have to incorporate this in your Calendar Table - read about it here
I really appreciate you quickly answer, I try the function and it's working, theres is only one missing, It's counting Sundays and I don't want to count them.
In Excel the formula WORKDAY.INTL(start_date, days, [weekend], [holidays]) I have to enter 11 inside [holidays] to not to count sundays.
If I use the function Number of Days = DATEDIFF(DATEVALUE("04/01/2016"),TODAY(),DAY)+1 the result is 21 and I need 18 because there are 3 sundays that I don't want to count,
Thank you!! :D
Note: An apology if there is some misspelling but I´m from Mexico :D :S
Sorry in Excel I have to enter 11 in [Weekend]
- Sean10 years agoCommunity Champion
If you want to automate this - you'll have to incorporate this in your Calendar Table - read about it here
- Paco10 years agoFrequent Visitor
Thank you very much, I already create a table with the days. I´m new in DAX, which funtcion do I have to use to select the column in which I have the value.
I already have my fomula like this:
DailySales = TOTALMTD(SUM(Sales2016[Total]),Sales2016[Date])/ (I want to know the function to select the column [Labdays] of the current month from the Days table )
I create a table Days with 2 columns
Column 1 [Month] contains the month 1,2,3,4, etc
Column 2 [Labdays] contains laboralbes days example month 1 labdays 25, month 2 labdays 24, etc.