Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
quickbi
Helper II
Helper II

MAking a last day of month calendar

Hi

I'm creating a calendar with this function:

Calendar =
VAR StartDate = MIN('orders_time'[created_at])
VAR EndDate = ENDOFMONTH(MAX('orders_time'[created_at]))
RETURN
CALENDAR(StartDate, EndDate)

 

but did not work, any idea how to setup the last day of the calendar has to be the last day of the month?

 

Thanks guys

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @quickbi - can you try below calendar table. 

 

Calendar =
VAR StartDate = MIN('Date'[Date])
VAR EndDate = EOMONTH(MAX('Date'[Date]), 0)
RETURN
CALENDAR(StartDate, EndDate)

 

rajendraongole1_0-1719387656928.png

 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @quickbi ,

Based on the description, @rajendraongole1 the response provides the solution. It should be helpful to you.

If you have solved the problem, please please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Wisdom Wu

fahadqadir3
Super User
Super User

fahadqadir3_0-1719387905743.png

Calendar =
VAR StartDate = MIN('orders_time'[created_at])
VAR EndDate = EOMONTH(MAX('orders_time'[created_at]), 0)
RETURN
CALENDAR(StartDate, EndDate)

@quickbi  Hope it works.

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!! 

rajendraongole1
Super User
Super User

Hi @quickbi - can you try below calendar table. 

 

Calendar =
VAR StartDate = MIN('Date'[Date])
VAR EndDate = EOMONTH(MAX('Date'[Date]), 0)
RETURN
CALENDAR(StartDate, EndDate)

 

rajendraongole1_0-1719387656928.png

 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.