color line based on difference (increase/decrease)

0 votes
How to show color in a line chart to show profit increase or decrease depending on avg profit? Show red if decreased and green if increased.
May 22 in Tableau by sindhu
26 views

1 answer to this question.

0 votes

Hi Sindhu,

Once you create a line graph, Drop the profit over the color shelf.

Now Right click on the profit column and add quick calculation as difference.

Now the graph would change as below,

Click on the color legend on the right and edit color as red-green to get red-green color in the line graph.

Hope it helps!.

answered May 22 by Cherukuri
• 31,840 points

Related Questions In Tableau

0 votes
1 answer

How to use LOD to count distinct number of records based on some condition?

From the desired output it seems that ...READ MORE

answered Apr 9, 2018 in Tableau by xyz
• 1,550 points
5,628 views
+1 vote
1 answer

How can I filter data on different sheets based on clicks on Tableau

Filter actions are an essential and fundamental ...READ MORE

answered Jul 19, 2018 in Tableau by Atul
• 5,530 points
343 views
+1 vote
1 answer

How to add filter on different sheets based on clicks?

Go to Actions… (if you're on a dashboard, you ...READ MORE

answered Aug 1, 2018 in Tableau by Atul
• 10,240 points
61 views
0 votes
1 answer

How to create a filter based on date range?

You can use this code snippet in ...READ MORE

answered Aug 7, 2018 in Tableau by Nitish
• 630 points
63 views
0 votes
1 answer

How to color code cells of a column based on the text value in Tableau

You can use the following steps to ...READ MORE

answered Mar 27, 2018 in Tableau by Atul
• 10,240 points
2,193 views
+1 vote
1 answer
0 votes
1 answer

Calculated filed with if-then

Below is the required code:  IF (NOT ISNULL([test2])) ...READ MORE

answered Mar 27, 2018 in Tableau by Atul
• 10,240 points
98 views
+2 votes
1 answer
0 votes
1 answer

How to show % difference between bar chart to show increase or decrease?

Hi Anshuli, Make the bar chart first for ...READ MORE

answered Apr 5 in Tableau by Cherukuri
• 31,840 points
109 views
0 votes
1 answer

Filter Measure Based on Different Variables of the Same Dimension

Hi Nithin, I used calculated fields. You can use ...READ MORE

answered Mar 11 in Tableau by Cherukuri
• 31,840 points
34 views