Reputation: 31
In Tableau, I have a column indicating positive or negative profit. If it's above 0 -- I want the column color green, If it's below 0, I want the column color red.
Upvotes: 2
Views: 8614
Reputation: 87
1.First create a new calculated field say "Profit/Loss" and set the condition something like:
IF ([Profit]))< 0 THEN "Loss" ELSE "Profit" END
*Later on you can hide this column from you visualization.
Upvotes: 0
Reputation: 3369
This will apply to the whole chart, if you want to apply this to one column only, you need to right click on the colour 'Measure Values' pill and select 'Use Separate Legends'.
Upvotes: 2