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
Yolo_pbi
Frequent Visitor

Format function changing the current month to previous month

Hey guys,

I am using today function to get the current month, i.e. Month(Today()) which gives me output 2 as for February, but when I use format() to get the full name it changes to January - any idea what could be reason behind?
Here's the code: 

Reporting month =
Var Current_Month = MONTH(TODAY())
RETURN
FORMAT(Current_Month,"MMMM")
1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Yolo_pbi 
This happens because the current month is not a date datatype, it is just a number. so you always will have it as a January.
Modify your formula to 

Current_Month =
FORMAT(today(),"mmm")
Ritaf1983_0-1709006520263.png

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @Yolo_pbi 
This happens because the current month is not a date datatype, it is just a number. so you always will have it as a January.
Modify your formula to 

Current_Month =
FORMAT(today(),"mmm")
Ritaf1983_0-1709006520263.png

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
PijushRoy
Super User
Super User

Hi @Yolo_pbi 

Please create a measure

 

 

Current Month = FORMAT(TODAY(),"MMMM")

 

PijushRoy_0-1709006735968.png

 

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

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.