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, 2019 in Tableau by Nithin
4,094 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, 2019 by Cherukuri
• 33,030 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
9,892 views
0 votes
1 answer

Reset filters in Tableau

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

answered Mar 30, 2018 in Tableau by QueenBee
• 1,820 points
4,033 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,560 points
6,858 views
0 votes
1 answer

Dropdown to change x-axis in Tableau

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

answered Apr 4, 2018 in Tableau by QueenBee
• 1,820 points
1,293 views
0 votes
1 answer

average line on chart of averages

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

answered Apr 23, 2019 in Tableau by Cherukuri
• 33,030 points
993 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 6, 2018 in Tableau by Atul
• 10,240 points
5,648 views
0 votes
1 answer

How to aggregate multiple column in Tableau?

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

answered Jul 10, 2018 in Tableau by ffdfd
• 5,550 points
2,719 views
0 votes
1 answer

Aggregating from multiple columns in Tableau

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

answered Aug 18, 2018 in Tableau by ffdfd
• 5,550 points
5,942 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 28, 2019 in Tableau by Cherukuri
• 33,030 points
1,830 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP