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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

MID function to know which month it corresponds to

Hi I have this feature

MonthName = UPPER(LEFT(FORMAT([Date], "MMMM"), 1)) & LOWER(MID(FORMAT([Date], "MMMM"), 2, ONLY(FORMAT([Date], "MMMM")) - 1)) which per row should show which month it corresponded to, but now it no longer works for me, does anyone know what could be done to solve this problem?
An argument in the 'MID' function has an incorrect data type or has an invalid value. (This tells me when I update data.)
1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

I don't recognize ONLY as a DAX function.

 

What are you expecting MonthName to look like? Why not just use FORMAT ( [Date], "mmmm" )?

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

I don't recognize ONLY as a DAX function.

 

What are you expecting MonthName to look like? Why not just use FORMAT ( [Date], "mmmm" )?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors