Home ยป Solving “trend lines are not supported when marks are stacked” in Tableau

Solving “trend lines are not supported when marks are stacked” in Tableau

  • by
  • 2 min read
Tags:

When you have a scatter plot in Tableau, you often want to add a trend line to indicate a relationship between two variables. However, sometimes it appears that it’s impossible: it’s greyed out and there is a tooltip that says “trend lines are not supported when marks are stacked”. Let’s solve that.

Let’s say you have a beautiful scatter plot and you want to add a trend line. From the Model section within the Analytics tab, it should be one drag and drop away. However: a greyed oud “Trend Line”. How to solve this?

What’s causing this? You have Stack Marks enabled. When you have dots in your scatter plot, of multiple categories (represented by color or shape), you theoretically could stack these. But it doesn’t make much sense. It’s more a feature for bar or area charts.

By turning Stack Marks off, you will enable adding trendlines.

Great success!

Say thanks, ask questions or give feedback

Technologies get updated, syntax changes and honestly… I make mistakes too. If something is incorrect, incomplete or doesn’t work, let me know in the comments below and help thousands of visitors.

Leave a Reply

Your email address will not be published. Required fields are marked *