[[Date =]]
[[ADDCOLUMNS (]]
[[ CALENDAR (DATE(2015, 1, 1), DATE(2050, 12, 31)),]]
[[ "Year", YEAR(\[Date\]),]]
[[ "Month Number", MONTH(\[Date\]),]]
[[ "Month Name", FORMAT(\[Date\], "MMMM"),]]
[[ "Day", DAY(\[Date\]),]]
[[ "Quarter",]]
[[ SWITCH(]]
[[ TRUE(),]]
[[ MONTH(\[Date\]) IN {1, 2, 3}, "Q3",]]
[[ MONTH(\[Date\]) IN {4, 5, 6}, "Q4",]]
[[ MONTH(\[Date\]) IN {7, 8, 9}, "Q1",]]
[[ MONTH(\[Date\]) IN {10, 11, 12}, "Q2"]]
[[ ),]]
[[ "Year-Quarter",]]
[[ YEAR(\[Date\]) & "-Q" &]]
[[ SWITCH(]]
[[ TRUE(),]]
[[ MONTH(\[Date\]) IN {1, 2, 3}, "3",]]
[[ MONTH(\[Date\]) IN {4, 5, 6}, "4",]]
[[ MONTH(\[Date\]) IN {7, 8, 9}, "1",]]
[[ "2"]]
[[ )]]
[[)]]