Tutorial with example
Create a calendar with DAX in Power BI. Generate/ Create calendars in DAX using CALENDAR() and/or CALENDARAUTO().
And a bonus item, a blog post on how to create all kinds of calendars:
Download example file:
Link to Power BI file: here.
An error is returned if start_date is greater than end_date.