Skip to main content

Hello Tableau Community,

I'm currently developing a Tableau dashboard with enhanced drill-down functionality. The dashboard allows users to navigate through projects, categories, and tasks. I've implemented several calculated fields to facilitate this, but I'm encountering challenges with dynamic color coding header based on user selection.

Dashboard Setup:

  • Calculated Fields:
    • [Dynamic Start Date]
    • [2. Project Header]
    • [3. Roadmap Category]
    • [5. Task Level]
    • [6. Current Level]
    • [7. Roadmap Category Header]
    • [Legend Category]
  • Set Actions:
    • Update Project Name Set
    • Update Roadmap Category Set

Goal:

I aim to dynamically adjust the colors of

[2. Project Header], [7. Roadmap Category Header] and [5. Task Level] based on the user's current selection in the drill-down process, example would be the red square in my image.

 

Current Configuration:

[2. Project Header] , [7. Roadmap Category Header] and [5. Task Level] are placed in the rows shelf without any marks.

 

I am using [Legend Category]

IF [6. Current Level] = 'Task' THEN 'Task Level' ELSEIF [6. Current Level] = 'Roadmap Category' THEN [Roadmap Category] ELSE 'Project Level' END

 

Challenge:

My research indicates that it might not be possible to dynamically color code headers in Tableau.

 

Looking for guidance or alternative solutions to enhance the interactivity and visual clarity of my dashboard, particularly in the context of these dynamic selections.

Any insights, suggestions, or workarounds from the community would be greatly appreciated. I'm looking forward to your expert advice on making this dashboard more interactive and visually appealing.

Thank you!

 

Need Help with Dynamic Color Coding in Tableau Dashboard Headers 

2 answers
  1. Dec 5, 2023, 6:48 AM

    Hi @Cristian Roman​ ,

    We can't dynamically change the "header" colour in Tableau. We can only affect the colour (dynamically) in the drawing pane. As to be able to assign different colors for each Measures, you can place "Measure Values" on color marks and then right click on the "Measure Values" and select "Use Separate Legends". On the right side all the color legends will show up and you can then update the colors of your choice.

    Thanks.

0/9000