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
Anonymous
Not applicable

Create Measure for Last Completed Month

Hello,

 

I would like to create a measure for the last completed month, formatted as such: YYYYMM. Is there an easy measure to accomplish this?

 

Thanks in advance!

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can try

Last completed month = FORMAT( EOMONTH( TODAY(), 1), "YYYYMM")

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

You can try

Last completed month = FORMAT( EOMONTH( TODAY(), 1), "YYYYMM")
Anonymous
Not applicable

Thanks for the reply. It did not seem to like that format. I updated it as follows: 

Last Completed Month = FORMAT(EOMONTH(TODAY(), -1), "YYYY/MM"). I should be able to make this work.
 
Thank you!

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.