Forum Discussion
ringovski
4 years agoHelper II
Calendar include blanks
Hi, I have a start & end date with some blanks in the rows which I would like included, I need to handle them differently in the visual layer. However the DAX calendar function says blanks are not a...
- 4 years ago
ringovski , Try like
Work Day = if( not(isblank([Pick Up Date])) && not(isblank([Actual Delivered Date])) , COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(Table[Pick Up Date],Table[Actual Delivered Date]),"WorkDay", if(WEEKDAY([Date],2) <6,1,0)),[WorkDay] =1)), blank())
amitchandak
4 years agoSuper User
ringovski , Try like
Work Day = if( not(isblank([Pick Up Date])) && not(isblank([Actual Delivered Date])) , COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(Table[Pick Up Date],Table[Actual Delivered Date]),"WorkDay", if(WEEKDAY([Date],2) <6,1,0)),[WorkDay] =1)), blank())
ringovski
4 years agoHelper II
Thanks for reply should have thought that myself.
- Anonymous3 years agoNot applicable
Does the code fixed your problem? I come across to have error using the code above.
Appreciate your help