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
gbarr12345
Post Prodigy
Post Prodigy

Is there a way to add a trend line to a line and clustered chart?

Hi there,

 

I have a quick question (may seem like a dumb question) but is there a way to add a trend line to a line like an average line and clustered chart?

 

I don't see an option for it in the further analysis area.

 

gbarr12345_0-1720064568752.png

 

gbarr12345_1-1720064576514.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from @rajendraongole1 and@Uzi2019 , please allow me to provide another insight: 

 

Hi  @gbarr12345 ,

According to the official documentation: dynamic lines do not support line and clustered charts, and average lines are a type of dynamic lines.

vyangliumsft_0-1720165989617.png

Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn

 

If you want to display a trend line in a line and clustered chart with year + month on the x-axis, you can try changing the data type of the [date] column to "Date", and then formatting the field as " YYYYY-MM".

vyangliumsft_1-1720165989621.png

In the Format pane, set the type to "Continuous" instead of "Categorical".

vyangliumsft_2-1720166026588.png

vyangliumsft_3-1720166026595.png

For a more detailed explanation, you can see the following link:

How to get trend lines in a date hiearchy? - Microsoft Fabric Community

 

This is the related document, you can view this content:

Solved: Trendline no longer available when going the a low... - Microsoft Fabric Community

Solved: Month Year Trend Line - Microsoft Fabric Community

 

Best Regards,

Liu Yang

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

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Thanks for the reply from @rajendraongole1 and@Uzi2019 , please allow me to provide another insight: 

 

Hi  @gbarr12345 ,

According to the official documentation: dynamic lines do not support line and clustered charts, and average lines are a type of dynamic lines.

vyangliumsft_0-1720165989617.png

Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn

 

If you want to display a trend line in a line and clustered chart with year + month on the x-axis, you can try changing the data type of the [date] column to "Date", and then formatting the field as " YYYYY-MM".

vyangliumsft_1-1720165989621.png

In the Format pane, set the type to "Continuous" instead of "Categorical".

vyangliumsft_2-1720166026588.png

vyangliumsft_3-1720166026595.png

For a more detailed explanation, you can see the following link:

How to get trend lines in a date hiearchy? - Microsoft Fabric Community

 

This is the related document, you can view this content:

Solved: Trendline no longer available when going the a low... - Microsoft Fabric Community

Solved: Month Year Trend Line - Microsoft Fabric Community

 

Best Regards,

Liu Yang

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

Hi Liu,

 

Apologies for the delayed response. I was out of office for the last 2 weeks.

 

I set the date format to YYYY-MM as you mentioned above.

 

gbarr12345_0-1721594032863.png

 

However, I still can't see an option to change the type to continuous:

 

gbarr12345_1-1721594065233.png

 

 

This date field seems to have been created manually so is this possibly why this is the case?

 

gbarr12345_2-1721594105193.png

 

rajendraongole1
Super User
Super User

Hi @gbarr12345 - Analytics pane is not avialable now in Line and clustered chart in latest release 2024 june.

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi Rajanedra,

 

Apologies for the delayed response. I was out of office for the last 2 weeks.

 

Thanks for the information. Would you know if it might possibly be introduced at some stage in the near future?

Uzi2019
Super User
Super User

Hi @gbarr12345 

 

Try this video 

https://www.youtube.com/watch?v=KoUzUm0M0ZY

https://www.youtube.com/watch?v=vQaoJFL3l40

 

Ihope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi Uzi,

 

Apologies for the delayed response. I was out of office for the last 2 weeks.

 

Thanks for the videos, I'll give them a look and hopefully they help.

 

Many thanks.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.