0% found this document useful (0 votes)
0 views

Program 3

The document outlines the process of creating various data visualizations in Tableau, including bar charts, line graphs, pie charts, and heat maps. It also discusses the use of filters, data aggregation, statistical functions, and parameters to enhance interactivity and control over the displayed data. Key steps for creating visualizations and applying filters or parameters are provided to facilitate user engagement with the data.

Uploaded by

kalpanaman
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Program 3

The document outlines the process of creating various data visualizations in Tableau, including bar charts, line graphs, pie charts, and heat maps. It also discusses the use of filters, data aggregation, statistical functions, and parameters to enhance interactivity and control over the displayed data. Key steps for creating visualizations and applying filters or parameters are provided to facilitate user engagement with the data.

Uploaded by

kalpanaman
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Experiment 3:

Aim:
Creating a View - formatting charts, adding filters, creating calculated fields and
defining parameters.
Data Visualization
We can perform various visualization operations on data in Tableau. Some of them are bar cart,
histogram, bubble chart, heat map etc.

Bar chart:
Bar charts can be created in 3 variations in Tableau: Horizontal bars, stacked bars, side-by-side
bars.
Horizontal bars can be created by selecting that type of chart from Show Me menu on right
hand side of Canvas. The type of chart in box on right hand side represents horizontal bar graph.

In similar to above, stacked bar graph can be created and the result is shown below.
Side-by-side bar chart can be created in following way.

Line graph: Line graph can be continuous or discrete.


Continuous line graph is shown below:

Discrete line graph is shown below:


Pie chart:

Bubble chart:
Heat map:

Filters:
In Tableau, filters are powerful tools used to control the data that is displayed in your
visualizations.

General Filter:
Drag category and sub category as Column and sales as rows and swap it . Then select city a
color card.

Then drag city to filter shelf


Select the cities and click ok

Wildcard Filter:
Drag sub category as Row and Sales as Column then drag sub category to filter shelf and
click wildcard option and click starts with and enter the letter A then click OK.
Condition filter:
Select Row as Sales, Column as Category and Sub category and drag product name to filter
shelf then condition by field select quantity and average and click load select the option less
than 1000 and click ok.

Top Filter:

Drag row as subcategory and column as sales and drag the sub category the select top and
specify the number and click ok.

Data aggregation and statistical functions


We can apply various aggregation and statistical functions on data such as count,
minimum, maximum, standard deviation, variance etc. This is shown below. This can be
done by right clicking on the required field of dataset, click on Default properties and click
on aggregation.

Or the above operation can be done by creating a calculated field as shown below. To
create a calculated field, click on the down arrow button beside search tab above Tables
panel, drag a field to that calculated field window.
Then click on apply and results are shown below:
In the same way we can apply any aggregate or statistical function on data with the help
of calculated fields.
Parameters:
Parameters in Tableau are dynamic values that can replace a constant value in
calculations, filters, or reference lines. They allow users to input or select values,
providing a more interactive experience. Here’s how to define and use parameters in
Tableau:
Creating a Parameter
Open the Parameter Dialog:
o Right-click in the Data pane and select Create Parameter.
Define the Parameter:
o Name: Give your parameter a descriptive name.
o Data Type: Choose the data type (e.g., Integer, Float, String, Date).
o Current Value: Set the default value that will be used when the parameter
is first created.
o Allowable Values: Decide how users will interact with the parameter:
 All: Any value is allowed.
 List: Provide a specific list of values for users to choose from.
 Range: Set a minimum and maximum value with an increment
(step size).
Click OK: Save the parameter.
Using the Parameter:
In Filters:
 You can filter your data based on the parameter. For instance, create a
filter to show only sales greater than the parameter value.
Select Column as Sum(sales) and Rows as Sub Category. Then arrange it in descending
order. Then drag sub category in filters card.

In Top Select By Field and enter 10 and click OK.

For changing the value In filters click top then select creating a new parameter name the
parameter as TOP N, give the minimum and maximum values then apply OK.

Right side can adjust the parameter value. Click and Type In the values also.
In Sets:
Right click the sub category create set give the name of the set then Top select By Field and
click TOP N then click ok set is created.

Then Right click the parameters select show parameters. You can adjust the parameter
control. Put the set in Color card.

You might also like