Dynamic Reference line in tableau

0 votes
Ho to plot the reference line to a chart that shows visual according to parameter selection? I want to show average sales across regions for total in a bar chart but avg of each category in the form of the reference line.
Apr 24 in Tableau by Nithin
30 views

1 answer to this question.

0 votes

Hi Nithin,

You can make the reference line dynamic using a parameter.

 Follow the below steps to make a dynamic reference line -

1. Create a bar chart with the region and average sales.

2. Add a parameter for the selection.

3. Then create a calculated field to match the parameter and calculate the aggregate that you want to use as a reference line.

Example, IF [Category] = [Cat Parameter] THEN [Sales]

                 ELSE 0

                 END

4. Add the created calculated field in Details shelf.

5. Now Add an Average reference line on the chart click on the edit line and select the calculated field.

6. Click OK.

Hope it helps you.

answered Apr 24 by Cherukuri
• 26,020 points

Related Questions In Tableau

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
1,826 views
0 votes
1 answer

Reset filters in Tableau

I understood your question (I hope so!). ...READ MORE

answered Mar 29, 2018 in Tableau by QueenBee
• 1,810 points
593 views
0 votes
1 answer

How to group bins in a tableau histogram?

One of the simple way is by ...READ MORE

answered Apr 3, 2018 in Tableau by xyz
• 1,550 points
1,043 views
0 votes
1 answer

Dropdown to change x-axis in Tableau

You need to create a  str datatype parameter ...READ MORE

answered Apr 3, 2018 in Tableau by QueenBee
• 1,810 points
53 views
0 votes
1 answer

average line on chart of averages

Hi Anitha, To add average line already aggregated ...READ MORE

answered Apr 23 in Tableau by Cherukuri
• 26,020 points
28 views
0 votes
1 answer

How can I count the aggregate function in Tableau

Create two calculated fields one for 100's ...READ MORE

answered Apr 5, 2018 in Tableau by Atul
• 10,240 points
1,598 views
0 votes
1 answer

How to aggregate multiple column in Tableau?

You can use Tableau’s inbuilt pivot method ...READ MORE

answered Jul 9, 2018 in Tableau by Atul
• 5,530 points
167 views
0 votes
1 answer

Aggregating from multiple columns in Tableau

You can use Tableau’s inbuilt pivot method ...READ MORE

answered Aug 17, 2018 in Tableau by Atul
• 5,530 points
238 views
0 votes
1 answer
0 votes
1 answer

How to install Tableau Desktop/Public in Windows?

Hey, it is a simple and easy ...READ MORE

answered Feb 27 in Tableau by Cherukuri
• 26,020 points
105 views