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! Request now

Reply
laurent_rio
Helper I
Helper I

Cant add trendline when Month-Year axis is text . Please help

Hi,

 

I have this chart where i get the Month-Year from my calendar table 

Month-Year = 'Date Table'[Month Name] & "-" & 'Date Table'[Year]

When i create chart like this 

Capture.JPG
 
I cant only get the trendline option if i change my axis x into numeric of Month Year 

Capture.JPG 
YearMonth = 'Date Table'[Year]*100 + 'Date Table'[Month]
 
Any trip where i can still have Month Name and Year but also have trendline ? I tried using date Hierarchy is not work. Its only show year

Really Appreciated
1 REPLY 1
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

how are you generating the month name format? creating it as text or as a date format: 

basically the correct form for this type of options to work will be manking them something like this: MonthName = FORMAT(DATE(1, [Month], 1), "MMM") so the model understand thats a date related field instead of a text value. 

check this: https://www.spguides.com/get-month-name-from-month-number-in-power-bi/#:~:text=Go%20to%20the%20Model....

 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors