Color formatting conditionally in a tableau list

657 Views Asked by At

I am trying to conditionally format the progress till date to red for the date in the end date which has already passed or which is lesser than the current date and when the concern filter is yes.

Below is the screen shot:

enter image description here

Please help me how do I Make the progress column red for end dates which have passed or lesser than the current date and when the concern filter is yes

1

There are 1 best solutions below

0
Wizhi On

This is one way to color a column based another value (conditional formatting).

enter image description here

  1. Data set looks like following:

enter image description here

  1. Create a calculated field which will hold the color condition (I assume your data is in date format and not string):

    IF [Concern] = "Yes" AND [End Date] < TODAY() THEN "RED" ELSE "" END

  2. Create a dummy calculated field:

enter image description here

  1. We create a second dummy:

enter image description here

  1. We add the dummy columns to the "columns" at the top

enter image description here

  1. Make them to "Dual Axis"

enter image description here

  1. Then click on "Marks" and "All". Drag color and drag it down to Color (1 in picture) and choose text (2 in picture)

enter image description here

  1. Then drag the Progress column to the text field

enter image description here

  1. Time to adjust layout. Right click and choose "Edit Axis"

enter image description here

9.1 Remove "Title" from "Axis Titles"

enter image description here

9.2 Remove the ticker marks

enter image description here

  1. Choose the upper header and change the title

enter image description here

and remove the tickers

enter image description here

  1. Then adjust the header space by dragging the line

enter image description here