If you do not currently have Tableau, you can download a free version at: https://public.tableau.com/s/
Download Practice Excel File Here: School Lunch
Lines and Bar Charts
When you start up Tableau, the first thing you need to do is select a data source.
In this case, select Excel and choose the file the you downloaded above (schoolLunch.xls)
Once loaded, the Data Source Page will open up.
a. Data Source File
b. Shows Sheets in the file (there is only one sheet in this particular file)
c. Shows data.
In this example, we are looking at the number of kids receiving Free, Reduced Priced, and Full Price lunches at American public schools from 1971 to 2015.
Start by making a new sheet
A Quick Note About Dimensions and Measures:
Notice on the new sheet that the columns from your imported Excel sheet have been placed into two boxes on the left of the screen: Dimension and Measures. Think of Dimensions as Factors or Labels. While Measures are columns you would perform calculations against (adding, averaging, etc).
Drag Year from Dimensions and Free from Measures into Columns and Rows respectively.
The line graph should appear automatically. If not, follow the next steps:
First, make sure your Row variable says SUM(Free) — this means we are summing up all numbers in the Free column— If it doesn’t, hover over the measure until a small downward arrow appears. Then go to Measure and select Sum.
If you don’t have a line chart, go to Marks and select Line from the drop down menu
Now, go to Marks again and select Bar. Your chart will change over to a bar chart. Try a few of the other options like Area and Shape.
Next Lesson: Dual Axis Charts