KNOWLEDGE BASE

Custom colors legend are changed when replacing data source


Published: 07 Dec 2022
Last Modified Date: 08 Dec 2022

Issue

When replacing a data source, colours legends for discrete calculated fields are changed to default.

Environment

  • Tableau Desktop 2020.4.11
  • Windows 10

Resolution

Copy/paste the calculated field manually to the new data source beforehand. Then replacing the data source will preserve the colours.

Cause

If the calculated field does not yet exist in the new data source, it will be automatically copied over when you replace the data source. The colours revert to default because the copy operation does not preserve them. This is as designed.
Did this article resolve the issue?