Bird
Raised Fist0
Tableaubi_tool~15 mins

Sets for dynamic grouping in Tableau - Real Business Scenario

Choose your learning style10 modes available
Scenario Mode
šŸ‘¤ Your Role: You are a sales analyst at a retail company.
šŸ“‹ Request: Your manager wants to see sales performance grouped dynamically by top customers and others, so they can focus on key clients easily.
šŸ“Š Data: You have sales data with Customer Name, Sales Amount, and Order Date.
šŸŽÆ Deliverable: Create a Tableau dashboard that uses a dynamic set to group customers into 'Top Customers' and 'Others' based on sales amount, and show total sales by these groups.
Progress0 / 6 steps
Sample Data
Customer NameSales AmountOrder Date
Alpha Corp120002024-01-15
Beta LLC80002024-01-20
Gamma Inc150002024-02-05
Delta Co40002024-02-10
Epsilon Ltd70002024-02-15
Zeta Group30002024-03-01
Eta Enterprises110002024-03-05
Theta Partners60002024-03-10
1
Step 1: Connect your sales data to Tableau and open a new worksheet.
No formula needed.
Expected Result
Data is loaded and ready for analysis.
2
Step 2: Create a set for 'Top Customers' based on sales amount.
Right-click 'Customer Name' in Dimensions > Create > Set > Name it 'Top Customers' > In the 'Condition' tab, select 'By formula' > Enter SUM([Sales Amount]) >= 10000.
Expected Result
'Top Customers' set includes customers with total sales of 10,000 or more.
3
Step 3: Create a calculated field to group customers dynamically using the set.
Create calculated field named 'Customer Group' with formula: IF [Top Customers] THEN 'Top Customers' ELSE 'Others' END
Expected Result
Customers are grouped into 'Top Customers' or 'Others' dynamically.
4
Step 4: Build a bar chart showing total sales by 'Customer Group'.
Rows: 'Customer Group', Columns: SUM([Sales Amount])
Expected Result
Bar chart displays total sales for 'Top Customers' and 'Others'.
5
Step 5: Add 'Customer Group' to Color to differentiate groups visually.
Drag 'Customer Group' to Color on Marks card.
Expected Result
Bars are colored differently for 'Top Customers' and 'Others'.
6
Step 6: Create a dashboard and add the worksheet with the bar chart.
No formula needed.
Expected Result
Dashboard shows the dynamic grouping sales chart ready for manager review.
Final Result
Sales by Customer Group

Top Customers  | ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆ 38,000
Others         | ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆ 28,000

Legend:
ā–ˆ Top Customers (Sum Sales >= 10,000)
ā–ˆ Others (Sum Sales < 10,000)
āœ“Top Customers contribute significantly more sales than Others.
āœ“Alpha Corp, Gamma Inc, and Eta Enterprises are in the Top Customers group.
āœ“This dynamic grouping helps focus on key clients easily.
Bonus Challenge

Modify the set to allow the manager to change the sales threshold dynamically using a parameter.

Show Hint
Create a parameter for sales threshold and update the set condition to use this parameter instead of a fixed value.

Practice

(1/5)
1. What is the main purpose of using Sets in Tableau for dynamic grouping?
easy
A. To group data dynamically based on conditions or manual selection
B. To create static charts without interaction
C. To write SQL queries inside Tableau
D. To export data to Excel automatically

Solution

  1. Step 1: Understand the role of Sets in Tableau

    Sets allow grouping data dynamically, either by user selection or by conditions.
  2. Step 2: Compare with other options

    Options B, C, and D describe unrelated features not related to Sets.
  3. Final Answer:

    To group data dynamically based on conditions or manual selection -> Option A
  4. Quick Check:

    Sets = Dynamic grouping [OK]
Hint: Sets group data dynamically, not static or export tasks [OK]
Common Mistakes:
  • Confusing Sets with filters
  • Thinking Sets export data
  • Assuming Sets create static charts
2. Which of the following is the correct way to create a Set based on a condition in Tableau?
easy
A. Drag measure to Rows shelf and select Create Set
B. Right-click a dimension > Create > Set > Use condition tab to define criteria
C. Use Data > Export > Create Set
D. Write a calculated field with IF statements and save as Set

Solution

  1. Step 1: Recall how to create Sets by condition

    In Tableau, right-click a dimension, choose Create > Set, then use the Condition tab to set criteria.
  2. Step 2: Eliminate incorrect options

    Dragging measures or exporting data does not create Sets; calculated fields are different from Sets.
  3. Final Answer:

    Right-click a dimension > Create > Set > Use condition tab to define criteria -> Option B
  4. Quick Check:

    Create Set via dimension context menu [OK]
Hint: Sets come from dimensions, not measures or exports [OK]
Common Mistakes:
  • Trying to create Sets from measures
  • Confusing calculated fields with Sets
  • Looking for Sets in export menus
3. Given a Set named Top Customers created by condition on Sales > 10000, what will be the result when you drag this Set to Color on a bar chart of Customers?
medium
A. Bars for customers with sales over 10000 will be colored differently
B. All bars will have the same color
C. Only customers with sales under 10000 will be shown
D. The chart will show an error about invalid Set

Solution

  1. Step 1: Understand how Sets affect visualization

    Dragging a Set to Color colors members inside the Set differently from those outside.
  2. Step 2: Apply to the given condition

    Since the Set includes customers with sales > 10000, those bars get a distinct color.
  3. Final Answer:

    Bars for customers with sales over 10000 will be colored differently -> Option A
  4. Quick Check:

    Set on Color = highlights group [OK]
Hint: Set on Color splits members inside/outside group visually [OK]
Common Mistakes:
  • Expecting only Set members to show
  • Thinking all bars get same color
  • Assuming error occurs with valid Sets
4. You created a Set but it does not update when your data changes. What is the most likely cause?
medium
A. Sets never update automatically in Tableau
B. You forgot to refresh the data source
C. You used a measure instead of a dimension to create the Set
D. The Set was created as a fixed Set, not dynamic

Solution

  1. Step 1: Understand Set types in Tableau

    Sets can be fixed (static) or dynamic (condition-based). Fixed Sets do not update with data changes.
  2. Step 2: Identify the cause of no update

    If the Set was created as fixed, it won't reflect new data until manually updated.
  3. Final Answer:

    The Set was created as a fixed Set, not dynamic -> Option D
  4. Quick Check:

    Fixed Sets = no auto update [OK]
Hint: Fixed Sets don't auto-update; use condition Sets for dynamic [OK]
Common Mistakes:
  • Assuming all Sets auto-update
  • Blaming data refresh instead of Set type
  • Trying to create Sets from measures
5. You want to create a dynamic group of products that are either in the Top 10 Sales Set or manually selected by the user. Which Tableau feature allows combining these two Sets for analysis?
hard
A. Create a Calculated Field with IF statements for both Sets
B. Use a Filter to select products from both Sets separately
C. Create a Combined Set using the Union option
D. Create a Parameter to switch between Sets

Solution

  1. Step 1: Understand combining Sets in Tableau

    Tableau allows combining Sets using Union, Intersection, or Exclusion to create a Combined Set.
  2. Step 2: Apply to the scenario

    To include products in either Set, use Union to combine Top 10 Sales and manual selection Sets.
  3. Step 3: Eliminate other options

    Calculated fields or filters do not combine Sets dynamically; parameters switch but don't combine.
  4. Final Answer:

    Create a Combined Set using the Union option -> Option C
  5. Quick Check:

    Combined Set with Union merges groups [OK]
Hint: Use Combined Set with Union to merge dynamic and manual groups [OK]
Common Mistakes:
  • Trying to combine Sets with calculated fields
  • Using filters instead of Combined Sets
  • Confusing parameters with Set combination
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard