Build Common Views


1. Working with Dates to Visualize Time-Based Data

>> Change date field and calender defaults

  • [Data] --> Data Source Name --> [Date Properties]

    image-20210521145523588 image-20210521145648241



2. Create Custom Date Fields and Hierarchies

>> Create a custom continuous date value

  1. [Data] Pane --> [Order Date] --> click the down-arrow

  2. [Create] --> [Custom date]

  3. [Name] : “Continuous Date (Months)”

    [Detail] : “Months”

    [Date Value]

  4. Click [OK]

    image-20210521161538861 image-20210521161650010


>> Create a custom discrete date part

  1. [Data] Pane --> [Order Date] --> click the down-arrow

  2. [Create] --> [Custom date]

  3. [Name] : “Discrete Date (Months)”

    [Detail] : “Months”

    [Date Part]

  4. Click [OK]

    image-20210521161538861 image-20210521162304726


>> Create a custom date hierarchy

  1. Create a custom discrete date part field, “Discrete Date (Years)”
  2. Create another custom discrete date part field, “Discrete Date (Months)”
  3. In the [Data] pane, drag [Discrete Date (Months)] on top of [Discrete Date (Years)]
  4. In the dialog box, change the name of the hierarchy to “Custom Dates”
  5. Click [OK]
image-20210521163445426

3. Comparing Multiple Measures in Views

[Measure Values] (측정값) and [Measure Names] (측정값 이름) fields are automatically created by Tableau.

They serve as containers for the measures in the [Data] Pane:

  • [Measure Values] field: a measure that contains the values of the measures
  • [Measure Names] field: a dimension that contains the names of the measures
    • Note: it does not include measures, such as [Latitude], that do not aggregate the same way as other measures

With Measure Values and Measure Names fields, you can build certain types of views that involve multiple measures, enabling you to compare them.


>> Create text tables with multiple measures

[개요]

  • Text tables can contain up to fifty measures on Rows and sixteen on Columns
  • Measures in text tables can have different units
image-20210521170225404

>> Make views with multiple measures on the same axis

[개요]

  • You can add fifty measures to the same axis
  • Measures that share an axis should have the same unit of measurement
  • Measures that share the same axis use the same type of mark, such as bar

[실습]

  1. Add [Category] to [Columns]
  2. Add [Sales] to [Rows]
  3. Drag [Profit] from the [Data] pane to the [Sales] axis
    • [Measure Values] and [Measure Names] will be added to the view automatically
  4. Drag [Measure Name] from the [Data] pane, to color on the [Marks] card.
image-20210526084305992

>> Build dual and combined axis charts

[개요]

  • Dual axis charts have two axes for the measures and one for the dimensions

  • Dual axis charts use two measures and one or more dimensions

  • Measures can have different units

  • Measures can use the same or different mark types


[실습]

  • Measures with same number format [Sales & Profit]

    1. Set the dimension and the first measure in the view

      [Columns] : Month(Order Date) (dimension)

      [Rows] : SUM(Sales) (first measure)


    2. Make a dual axis chart:

      Drag [Profit] (second measure) from Data pane to the right edge of the view

      until you see < a light green ruler icon > and < a black dotted line >

      and drop the measure.

      image-20210526095349671 image-20210526100126518
    3. Change the mark type for each measure

      image-20210526094017490
    4. Set the scales same

      Right-click the axis want to change --> Synchronize Axis

      image-20210526101345020

  • Measures with different number formats [Sales & Discount]

    > Without [Synchronize Axis] (축 동기화)

    image-20210526102648297


>> Using Scatter Plots To Show Relationships Between Measures

E-Learning Link

[What can we do with scatter plots?]

  • Evaluate data clusters

  • Identify correlations and trends

    - Use correlations and trends to analyze data

  • Identify outliers

    - Manage outliers

    - Exclude an outlier from a view

    - Add an annotation to an outlier


[Details]

  • Build a scatter plot
image-20210526110123760
  • Evaluate data clusters

    - Two clusters divided by the eruption duration classes, [long] and [short]

    image-20210526110409805
  • Identify correlations and trends

    - Positive Correlation

    - Negative Correlation

    - No Correlation


  • Use correlations and trends to analyze data

    image-20210526111021545

    - Positive relationship between [wait time between eruptions] and [eruption duration]

    - the longer the wait time between eruptions, the longer the eruption duration


  • Identify outliers

    image-20210526111537532
    • Exclude an outlier

      1. Press [Ctrl] and select the outlier

      2. On the tooltip that appers, click [Exclude]


    • Add an annotation to an outlier

      1. Right-click the outlier
      2. Point to [Annotate] (주석 추가)
      3. Click [Mark]
      4. Use the [Edit Annotation] dialog box to create annotation
      5. click [OK]
      image-20210526123454393