Combining Tables, Fields, Rows Flashcards

1
Q

Relationship

Description: ____
Tables aren’t merged together in the ____.
Joins: how are joins selected? What type of joins are supported?
LOD for each table: ____

A

Type:
Dynamic, flexible way to combine data from multiple tables

Table:
~Tables aren’t merged together in the data source. Relationships create independent domains at multiple levels of detail.

Joins:
~Tableau automatically selects join types based on the fields being used in the visualization
~Supports full outer joins, make all row and column data from related tables potentially available in the data source

LOD:
~Maintain each table’s LOD in the data source and during analysis
~Create independent domains at multiple LODs. Tables aren’t merged together in the data source.
~You don’t need to use LOD expressions (i.e. FIXED) to deduplicate data in related tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

If you could use a Relationship and a Join to combine data, which one should you try first? Why?

A

Relationship bc it makes data preparation and analysis easier & more intuitive

BONUS:
List of advantages:
~ Make your data source easier to define, change, and reuse.
~Make it easier to analyze data across multiple tables at the correct level of detail (LOD).
~Do not require the use of LOD expressions or LOD calculations for analysis at different levels of detail.
~Only query data from tables with fields used in the current viz

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Joins

Description
Tables
LOD

A

Static way to combine data. Join can’t be changed without impacting all sheets using that data source

Tables are merged into 1 table (sometimes this means umatched meaure values are dropped)

1 Table also means that sometimes (when fields are at diff LOD) -> joined data may duplicate aggregated values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Joins, Unions, Relationships, or Blending?

Requirements:
~fields that define relationship must have same data type
~No defining based on geographic fields
~Doesn’t support circular relationships
~No defining between published data sources

A

Relationships

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you combine Published Tableau data sources?

A

Bending

Bonus:
Can also edit the original data sources to natively contain the join

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Join Clause

+ Requirement

A

Tells Tableau which fields are shared between the tables and how to match the corresponding rows

2 matching fields must have same data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Join Types

A

Full, Inner, Outer, Left, Right, LeftOnly, RightOnly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Joins vs Unions

Table Requirements:
Appends:
Data:

A

Tables Require:
a common fields VS similar structure

Appends:
Columns (fields) VS rows

Widens VS lengthens data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Creates a new data source
Joins, Unions, Relationships, or Blending?

A

Joins & Unions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Only combines data using Left Joins & doesn’t create a new data source

Joins, Unions, Relationships, or Blending?

A

Blending

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Combines using Full Outer joins

Joins, Unions, Relationships, or Blending?

A

Relationships

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Combines data and then aggregates data

Joins, Unions, Relationships, or Blending?

A

Joins and Unions

e.g. if the left table has ‘Orange’ with 2 values (Orange, 2 & Orange, 8), those values are combined with the right table and then aggregated. If the second table has Orange with 1 value (Orange, 7), then that value is duplicated (Orange, 2, 7 and Orange, 8, 7). With this duplication, the value from the right table will sum to 14 when there is actually just one Orange, 7 in the original right table.

See this for reminder: https://www.youtube.com/watch?v=z2lAmjexQCc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Aggregates data then combines data

Joins, Unions, Relationships, or Blending?

Give example

A

Blending & relationships

e.g. if the left table has ‘Orange’ with 2 values (Orange, 2 & Orange, 8), those values are aggregated (Orange, 10) then the Left Table is combine with the Right Table

(No worrying about duplicates)

See this for reminder: https://www.youtube.com/watch?v=z2lAmjexQCc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What should you use if the linked fields need to vary from sheet-to-sheet?

Joins, Unions, Relationships, or Blending?

A

Use Blending

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

You can’t create _____ between tables from published data sources

Joins, Unions, Relationships, or Blending?

A

relationships or joins or unions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

___ combines data directly

Joins, Unions, Relationships, or Blending?

A

Relationships, joins, unions

Think: combines @ the datasource?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

____ never combines data directly.

Instead, it ___ query data source independently, aggregate the results to the appropriate level, then present the results together visually in the view.

i.e. ____ never truly combine the data but queries each data source independently.

A

Blends

Bonus: This is unlike relationships, joins, and unions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

___ is performed on a sheet-by-sheet basis

A

Blending

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

For blending, what is the color of the primary and secondary data sources

A

blue & orange

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

After blending, what is used to indicate multiple dimension values in a single mark, because data blending takes aggregated results and combines them in the view?

(Think of this as a one-to-many issue)

How would you solve this issue?

A

hint: 2 solutions
.
.
.

.
.
..
.
.
.
..
.
Solution: Create a Join or increase the LOD by adding relevant fields.

See this if you forgot:
https://www.youtube.com/watch?v=cC-hZtiZlHg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Relationships VS Blends

Defined in the ____:
Can be Published?:
Tables semantically equal?:
Join Type:
Related fields are fixed?:
Related fields are linked?:

A

Scope: Data source VS
Worksheet b/t primary & secondary data source
[think about how you create a relationship (in the Data Source pane) VS a Blend(in worksheet) ]

Can be Published?: Can VS Cannot

Semantics (aka rules): all tables are = semantically (same rules) VS
Depend on selection of primary and secondary data sources, and how those data sources are structured

Join Type: Supports full outer join (everything) VS
Left only

Related (Joined/linked) fields are fixed?:: fixed VS
vary sheet-by-sheet

Related fields are linked?:: no (joined) VS yes, linked

Relate Your Data:
https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1mnxgvl_gaMTI1NDAzNjQ4My4xNzI2ODg2OTE5_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.

Semantics for Relationships: https://www.tableau.com/blog/relationships-tableau-data-model#:~:text=The%208%20Rs%20of%20relationship,left%2C%20right%2C%20and%20full)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

We cannot use ____ on published data sources, so our only option for such cases is ___.

A

Relationships, Joins, or (Unions?)

Blend

Relate Your Data:
https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1mnxgvl_gaMTI1NDAzNjQ4My4xNzI2ODg2OTE5_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Relationships VS Joins

Defined:
Join defining required?:
Join Type:
Tables:
LOD(is at the ___):
Combines -> Aggregates?:
Duplicated Rows Possible?:
Unmatched records:
Running Queries:

A

Defined: b/t logical tables in the Relationship canvas (logical layer) VS
b/t physical tables in the Join/Union canvas (physical layer)

Join: Don’t require defining join type VS
Require Join planning & join type

Join: Dynamic VS Static

Tables: Act like containers for tables that are joined/unioned VS
Are merged into their logical table

LOD: at the aggregate for the viz VS
at the row lvl for the single table

Combines -> Aggregates?: No VS Yes

Duplicated Rows Possible?: No VS Yes

Unmatched records: included in aggregation, unless explicitly excluded VS
omitted from the merged data

Running Queries: Only data relevant to the viz is queried VS
Run as part of every query
(Therefore, relationships generate shorter queries)

Relate Your Data:
https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1mnxgvl_gaMTI1NDAzNjQ4My4xNzI2ODg2OTE5_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

1.Use when combining data from different levels of detail.

  1. Use when you want to add more rows of data with the same column structure.
  2. Use when you want to add more columns of data across the same row structure.
  3. Use when combining data from different levels of detail.
A
  1. Blend
  2. Union
  3. Join
    4.Relate

Relate Your Data:
https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1mnxgvl_gaMTI1NDAzNjQ4My4xNzI2ODg2OTE5_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Can be used to combine published data sources, but can't be published. Join, Union, Relate, or Blend?
Blend Relate Your Data: https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1*mnxgvl*_ga*MTI1NDAzNjQ4My4xNzI2ODg2OTE5*_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.
26
____ed physical tables are merged into a single logical table with a fixed combination of data. Join, Union, Relate, or Blend?
Join & Union Relate Your Data: https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1*mnxgvl*_ga*MTI1NDAzNjQ4My4xNzI2ODg2OTE5*_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.
27
May cause data loss if fields or values aren’t present in all tables Join, Union, Relate, or Blend?
Join - (dependent on join types used) Relate Your Data: https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1*mnxgvl*_ga*MTI1NDAzNjQ4My4xNzI2ODg2OTE5*_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.
28
Requires matching fields between two logical tables. Multiple matching field pairs can define the ___. Join, Union, Relate, or Blend?
Relate Relationship Relate Your Data: https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1*mnxgvl*_ga*MTI1NDAzNjQ4My4xNzI2ODg2OTE5*_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.
29
Automatically uses correct aggregations and contextual joins based on how fields are related and used in the viz. Join, Union, Relate, or Blend?
Relate Relate Your Data: https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1*mnxgvl*_ga*MTI1NDAzNjQ4My4xNzI2ODg2OTE5*_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.
30
Supports many-to-many and outer joins. Join, Union, Relate, or Blend?
Relate Relate Your Data: https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1*mnxgvl*_ga*MTI1NDAzNjQ4My4xNzI2ODg2OTE5*_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.
31
Can be published, but you can't combine published data sources by using ____.
Relationships Relate Your Data: https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1*mnxgvl*_ga*MTI1NDAzNjQ4My4xNzI2ODg2OTE5*_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.
32
Using data source filters limits join culling benefits of ____.
Relationships Relate Your Data: https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm?_gl=1*mnxgvl*_ga*MTI1NDAzNjQ4My4xNzI2ODg2OTE5*_ga_8YLN0SNXVS*MTc0MDEwMzg3Ni42MC4xLjE3NDAxMDcyMTUuMC4wLjA.
33
True or False? Tables in a Relationship are merged at the data source.
False
34
# T/F Relationships can be defined based on geographic fields
False They CANNOT But joins can
35
**Just review M/D again before blue** Groups VS Sets Logo: Fixed/Dynamic: Measure/Dimensions: Can be used to create: Can be operated on (i.e. can create a union):
. . . . . .. . . **Logo**: paper clip VS venn diagram **Fixed/Dynamic**: fixed (manual) VS both **Measure/Dimensions**: can be both VS only D (see by right-clicking measure/dimension fields in the datapane) **Can be used to create**: another group VS another set **Can be operated on (i.e. can create a union)**: No VS Yes | **Image 6** ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
36
In "Country" field, there are multiple different inputs for US (i.e. USA, United States, etc). How do you combine them?
Hint: Set, Group, or Parameter? . . . . . . . . . . Group
37
See Image 1 Which icon will create a group?
paperclip
38
How do you create a group from points on a map?
1. Select a "Selection" type on the map (see image 2) 2. Select relevant data points 3. Select the paperclip
39
# T/F When you create a group, it shows up in the Data Pane
True. Similar to sets and parameters
40
When you create a set, group, or parameter; it shows up in the _
Data Pane
41
How can you edit a group?
1. Find it in the Data Pane 2. Right click 3. Select "edit Group"
42
# T/F There are 2 ways to rename groups.
False. There are 3 ways: 1.**Data Pane** > right click group > "Edit Group" > Right click the specific group >**"Rename"** 2. (grouped from mark) Right click the specific group on the **Group Legend** (see image 4) > "**Edit alias**" > rename the specific group 3. (grouped from member name) Right-click the group name in **visual** (Image 13) > "**Edit alias**"
43
# T/F To rename a group in the visual, you can: go to the Data Pane > right click group > "Rename"
False, this will rename it in the Data Pane, not the visual
44
How can you search for 1 point to add to a different group.
1. Data Pane 2. right click an existing group 3. "Edit Group" pop-up 4. under "find members" type in your search 5. Change the "Add to" to the appropriate group (see image 5)
45
# T/F The "Group By" helps you create groups within a field by selecting certain rows.
False. "Group By" is an option that reorganizes the Data Pane by Folders or Data Source Tables
46
# T/F Sets create a new field in the datapane, but groups do not.
False, both do ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
47
If you create a group from Image 11, what will it look like?
Selecting the appropriate marks (the bar charts) will add the new group to color - **Image 12** Selecting the appropriate sub-category labels/names will add the new group to the rows/columns - **Image 13** ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
48
# T/F Groups are good for creating heirarchies
True ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
49
If you group a measure, the new group field can be a [measure only/dimension only/both]
dimension
50
How do you create a fixed set?
1.selecting marks on visual > opening the "Create set" dialogue box (can right click or hover) 2.Right click the field > "create set" > pick options in General tab (Condition/Top tabs are dynamic) | (11:28) ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
51
How do you create a dynamic set?
Right click the field > create set > pick options in Condition/Top ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
52
# T/F Highlighting a mark > right click > "create set" can create a dynamic set.
False, highlighting marks will only create fixed/static sets.
53
[Groups/Sets] create an In/Out field by default.
Sets ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
54
How can you change the set in **image 14** to **image 15**?
**Image 18** Right click field in rows, change "Show in/out of set" to "show members in set" ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
55
**Image 19** shows a [group/set] dialouge box.
group ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
56
**Image 20** shows a [group/set] dialouge box.
set ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
57
To create a "Top 56" [group/set], what are the steps?
1. Open Set dialogue box (From Data Panel) 2. Go to "Top">"By field"> input correct inputs (e.g. **image 21**) ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
58
____ set fields do not have a "show set" option but ____ sets do.
Hint: dynamic/fixed/both . . . . . . . . **Fixed** set fields do not have a "show set" option but **dynamic** sets do. Example of fixed: select set members on visual Example of dynamic: create a "top 50" condition ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
59
# T/F You can combine 2 groups and 2 sets.
False You can only combine 2 sets ctrl/shift+Select the 2 sets (optional) > right click the set field > "create combined set" ## Footnote https://www.youtube.com/watch?app=desktop&v=fqBFTdTxT1M
60
Screenshot **Image 16 in calc** 1. Match the function with it's syntax 2. State the output type | review ISOs and Max/Min
https://help.tableau.com/current/pro/desktop/en-us/functions_functions_date.htm
61
# T/F Relationship tables are joined at the data source.
False Relationship tables **aren't** joined at the data source.