Forum Discussion
Anonymous
6 years agoNot applicable
Date Shift from Today
Hi, I was wondering if someone can help me write a command that would take today's date subtract 1 business day from it and have it display as a new column with Yes or No value? I'm not sur...
- Anonymous6 years ago
Anonymous in case you are looking for previous business date. Please create a calculated column
PrevBusinessDay = SWITCH(TRUE() ,WEEKDAY('Calendar'[Date],2)=1,DATEADD('Calendar'[Date],-3,DAY) ,NOT(WEEKDAY('Calendar'[Date],2)) IN {6,7}, DATEADD('Calendar'[Date],-1,DAY),BLANK())
Anonymous
6 years agoNot applicable
Anonymous in case you are looking for previous business date. Please create a calculated column
PrevBusinessDay = SWITCH(TRUE()
,WEEKDAY('Calendar'[Date],2)=1,DATEADD('Calendar'[Date],-3,DAY)
,NOT(WEEKDAY('Calendar'[Date],2)) IN {6,7}, DATEADD('Calendar'[Date],-1,DAY),BLANK())