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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
m_mahmud
New Member

Trend Line Not Working in Line Chart

I wanted to show a trend line by month in a line chart. I am using a date table in the Data model. When I limit the date only for two months, it shows the trend by date, not month. When I limit it to more than two months, it shows by month.

Note: I need to show both the line and the trend line, which requires a continuous date field to work.

 

screenshot.jpg

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @m_mahmud 

The trend line is an automatic feature in Power BI that only works when certain conditions are met:

  1. The X-axis must use a continuous field (either date or numeric type).

  2. There must be enough data points for the engine to calculate a meaningful trend.

If you're using "Month" as your X-axis, it's likely a categorical field, not continuous — so the trend line won’t appear.
Also, when you limit the time range, the chart may revert to showing daily data (which is continuous), but either too few or too many points can prevent the trend line from rendering.
This feature cannot be manually forced — Power BI enables it only when these conditions are satisfied.

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @m_mahmud 

The trend line is an automatic feature in Power BI that only works when certain conditions are met:

  1. The X-axis must use a continuous field (either date or numeric type).

  2. There must be enough data points for the engine to calculate a meaningful trend.

If you're using "Month" as your X-axis, it's likely a categorical field, not continuous — so the trend line won’t appear.
Also, when you limit the time range, the chart may revert to showing daily data (which is continuous), but either too few or too many points can prevent the trend line from rendering.
This feature cannot be manually forced — Power BI enables it only when these conditions are satisfied.

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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