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
bgarland
Helper I
Helper I

Axis Labels when using Trend Line

It seems that Trend Lines are not avialable in charts unless the axis are numeric. In the example below, my X axis are months but I had to use a number representing the month to get the trend line (i.e. January = 1, February = 2, etc). This seems to be a known issue from the searches I've done but I'm wondering if anyone has found a way around it? I considered just putting the month names as text below the chart but that won't work since the user can dynamically change the months they want to view.

 

2018-08-24_144509.jpg

1 ACCEPTED SOLUTION
deldersveld
Resident Rockstar
Resident Rockstar

The axis needs to be set to Continuous to get the trend line, but it doesn't have to be numeric. You can achieve a trend with month on the axis using a date hierarchy containing continuous dates. Expand the visual down to Month Year from the default Year.

 

Trend with Month.PNGTrend with Month 2.PNG

View solution in original post

2 REPLIES 2
deldersveld
Resident Rockstar
Resident Rockstar

The axis needs to be set to Continuous to get the trend line, but it doesn't have to be numeric. You can achieve a trend with month on the axis using a date hierarchy containing continuous dates. Expand the visual down to Month Year from the default Year.

 

Trend with Month.PNGTrend with Month 2.PNG

Hi!

 

Thought it would pose no problem to replicate this, but apparently I'm not able to to so. Hierarchy just won't let me achieve the month-year format as shown in your picture. Any chance you could go into detail how you achieved this result?

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.