Skip to content

Commit b114fcf

Browse files
authored
Update Calendar.dax
1 parent 64356a1 commit b114fcf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Miscellaneous/Scripts/DAX/Calendar.dax

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ VAR _result =
3030
, "Is Current FY", IF(YEAR(EDATE([Date], 6)) = _fiscal_year, 1, 0)
3131
, "Is Future", IF([Date] > _today_date, 1, 0)
3232
, "Is Past", IF([Date] < _today_date, 1, 0)
33+
, "Is Weekend", IF(WEEKDAY([Date], 1) = 1 || WEEKDAY([Date], 1) = 7, 1, 0)
3334
, "Month End", EOMONTH([Date], 0)
3435
, "Month Name Short", FORMAT([Date], "MMM")
3536
, "Month Name", FORMAT([Date], "MMMM")

0 commit comments

Comments
 (0)