Forum Discussion
CALENDARAUTO
- 2 years ago
AlineTCarvalho You can potentially use this fiscal calendar: DAX Custom 445 Calendar - Microsoft Fabric Community
Otherwise, Melissa de Korte's Power Query function for creating calendar tables is probably a good bet. Extended Date Table Power Query M Function | Master Data Skills + AI (enterprisedna.co)
- 2 years ago
"Quarter", "Q" & QUARTER(EDATE([Date],3)))
- Anonymous2 years ago
Hi AlineTCarvalho ,
Thank lbendlin very much for his solution! But there is a small error, it should be "Quarter", "Q" & QUARTER(EDATE([Date],-3))). On that basis, I can give you a more complete date table, which can be seen in the following results:
DimDate = ADDCOLUMNS ( CALENDARAUTO (), "Year", YEAR ( [Date] ), "Month", FORMAT ( [Date], "MMMM" ), "MonthSort", MONTH ( [Date] ), "Day", DAY ( [Date] ), "DayName", FORMAT ( [Date], "DDDD" ), "WeekDay", WEEKDAY ( [Date],2 ), "WeekStart", [Date] - WEEKDAY ( [Date], 2 ) + 1, "Quarter", "Q" & QUARTER(EDATE([Date],-3)) )Hope it helps!
Best regards,
Community Support Team_ Scott ChangIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi AlineTCarvalho ,
Thank lbendlin very much for his solution! But there is a small error, it should be "Quarter", "Q" & QUARTER(EDATE([Date],-3))). On that basis, I can give you a more complete date table, which can be seen in the following results:
DimDate =
ADDCOLUMNS (
CALENDARAUTO (),
"Year", YEAR ( [Date] ),
"Month", FORMAT ( [Date], "MMMM" ),
"MonthSort", MONTH ( [Date] ),
"Day", DAY ( [Date] ),
"DayName", FORMAT ( [Date], "DDDD" ),
"WeekDay", WEEKDAY ( [Date],2 ),
"WeekStart",
[Date] - WEEKDAY ( [Date], 2 ) + 1,
"Quarter", "Q" & QUARTER(EDATE([Date],-3))
)
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Thank you! I figured that because I wasn't getting the result right.
I really aprreciate your input!