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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.