Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Trend Line Not Available Workaround

Good Morning,

 

I have a line chart that I would like to have a trendline added to. Unfortunately to get the data to populate in the correct chronological order I had to change the data type from continuous to categorical. This removed the trendline option. Is there a way to format a Y axis constant line that would calculate the trendline?

 

 

Thanks!

  • Hi Anonymous ,

     

    Unfortunately, if thex axis is type Categorical, you won't get the trend option.

    But you can refer this case below, it taked a solution to producing a trend line for a scatter chart is to use DAX or R, or a custom visual.

    Solved: Trend Lines! - Microsoft Power BI Community

     

    Hope this helps you.

     

    Best Regards,

    Community Support Team _Yinliw

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

1 Reply

  • v-yinliw-msft's avatar
    v-yinliw-msft
    Community Support

    Hi Anonymous ,

     

    Unfortunately, if thex axis is type Categorical, you won't get the trend option.

    But you can refer this case below, it taked a solution to producing a trend line for a scatter chart is to use DAX or R, or a custom visual.

    Solved: Trend Lines! - Microsoft Power BI Community

     

    Hope this helps you.

     

    Best Regards,

    Community Support Team _Yinliw

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