Forum Discussion
Scatterplot with trendline no available
- 1 year ago
To add a trendline for each legend value in a Power BI scatter plot:
- Add the desired field to the Legend section of the scatter plot.
- Select the scatter plot and open the Analytics pane.
- If the Trend Line option is missing:
- Ensure you're using the built-in scatter plot visual, not a custom one.
- Confirm that both X-Axis and Y-Axis fields are numeric.
- Power BI supports one trendline per series, so the legend must split the data into multiple series.
- If the option still doesn't appear, update Power BI Desktop to the latest version.
Note: Using a Date Hierarchy on the X-axis may cause issues with trendlines, especially when multiple months are selected, due to overlapping day values.
translation and formatting supported by AI
Thank you both v-venuppu ! The problem is that my X-axis is a Date Hierarchy. It works with one month as the days are not repeated, but when trying with multiple months, the values are incorrect (For example, if viewing from Jan 01 to Feb 01, the values for the first day appear at a single point on the x-axis.). Is it a limitation of the Power BI Scatter plot?
To add a trendline for each legend value in a Power BI scatter plot:
- Add the desired field to the Legend section of the scatter plot.
- Select the scatter plot and open the Analytics pane.
- If the Trend Line option is missing:
- Ensure you're using the built-in scatter plot visual, not a custom one.
- Confirm that both X-Axis and Y-Axis fields are numeric.
- Power BI supports one trendline per series, so the legend must split the data into multiple series.
- If the option still doesn't appear, update Power BI Desktop to the latest version.
Note: Using a Date Hierarchy on the X-axis may cause issues with trendlines, especially when multiple months are selected, due to overlapping day values.
translation and formatting supported by AI
- julsr1 year ago
Continued Contributor
Thanks. This worked for the trendline, I'll open another post for the issue with multiple months.