Recent | Popular
#ms.pbi #dax #calendar.table #dax.switch #dax.true #dax.month #quarter
Qtr = SWITCH( TRUE(), MONTH('Calendar[Date]') <=3, "Q1", MONTH('Calendar[Date]') <=6, "Q2", MONTH('Calendar[Date]') <=9, "Q3", "Q4" )
#ms.pbi #dax #calendar.table #dax.addcolumns #dax.var #dax.return #dax.format #dax.month
Calendar = VAR CalTable = CALENDARAUTO () VAR MyCal = ADDCOLUMNS ( CalTable, "Index", MONTH ( [Date] ), "Month", FORMAT ( [Date], "mmm" ), "Qtr", FORMAT ( [Date], "\QQ" ), "Year", FORMAT ( [Date], "yyyy" ) ) RETURN MyCal
Sun Dec 24 2023 07:39:01 GMT+0000 (Coordinated Universal Time)
Sat Dec 09 2023 15:24:37 GMT+0000 (Coordinated Universal Time)