How to Create Group in Tableau

How to Create Group in Tableau

4 mins read2.6K Views Comment
Vikram
Vikram Singh
Assistant Manager - Content
Updated on Aug 27, 2024 17:56 IST

In this article, we will briefly discuss about groups in tableau, how to create groups and finally what are the differences between tableau groups and tableau sets.

2022_05_MicrosoftTeams-image-228.jpg

Table of Content

Recommended online courses

Best-suited Tableau courses for you

Learn Tableau with these high-rated online courses

39.54 K
2 hours
– / –
45 hours
– / –
4 weeks
– / –
4 weeks
2.25 K
4 weeks
Free
12 hours
– / –
1 hours
19.89 K
16 hours
– / –
3 hours
19.7 K
6 months

What is a Tableau Group?

A tableau group is a set of multiple members combined in a single dimension to create a higher category of dimension.

Confused!!

In simple terms, the Tableau group is a way to combine data in a format that doesn’t exist currently in the data source.

It combines a large number of dimensions members into higher-level categories for easy analysis.

You can create a group of related members in a field.

Example:  

In Samplestore data, if we are working with a view that shows the Sum of Profit by states, we want to group certain states together to create profitable states.

  • Loss Making State: -26K < SUM(Profit) < 0K
  • Profitable State: 0K < SUM(Profit) < 25K
  • Extremely Profitable State: SUM(Profit) > 25K

Note: Groups are are useful for:

  • Correcting Data Errors
    • Example: In sample store data combining Chico and Chicago into one data point
  • Answering “What if” type questions
    • Example: In sample store data, What if we combine two categories, Furniture, and Office Supplies, together?

Must Check: What is Tableau?

Must Check: Tableau Online Courses & Certifications

How to Create a Group?

Using the sample store data, we will create a group of extremely profitable states, as mentioned in the above example.

  • Loss Making State: -26K < SUM(Profit) < 0K
  • Profitable State: 0K < SUM(Profit) < 25K
  • Extremely Profitable State: SUM(Profit) > 25K

Using the Data Pane

  • Connect to Sample Superstore data
  • Drag and drop State and Profit into column and row shelf, respectively
  • Sort the data (in descending order)
2022_05_group_sort-the-data.jpg
  • Right-click on dimension (State) -> Create -> Group
2022_05_Group_create-group.jpg
  • Create Group dialog box will appear
    • List of the element will appear (here, a list of all states)
    • Select the states ( California, New York, and Washington) using Ctrl + Click
      • You can search the elements using the Find option at the bottom of Create Group dialog box
    • Select Group
2022_05_group_select-the-state.jpg
  • You can Rename the Group
    • Here, change the group name to Extremely Profitable State
2022_05_group_rename-group.jpg
  • Click OK
Sort Data in Tableau
Connecting data in Tableau
Create Table, line chart and Scatter Plot using Tableau Show Me

Using the View

Using the View, we can create the group (Extremely Profitable State) using two methods:

Method-1:

  • Select the list of all the elements that are required for Group using Ctrl + Click
    • Here, we will select the state California, New York, and Washington for Extremely Profitable State
  • Click the Group icon on the toolbar
2022_05_group_using-view.jpg

Method-2:

  • Select the list of all the elements that are required for Group using Ctrl + Click
    • Here, we will select the state California, New York, and Washington for Extremely Profitable State
  • Right-click on highlighted elements
    • Select Group
2022_05_group_using-view_2.jpg

Edit a Group

After the Group is created, it will be displayed in the data pane, from where you can rename the Group and add or delete members from the Group. Or create a new Group too by just simply right-click on the Group name in the data pane.

2022_05_group_edit-group.jpg
  • To add a member to an existing group
    • Right-click on the Group from the data pane -> Edit Group
    • Edit Group dialog box will appear
      • Select one or more members and drag them into the required Group
    • Click OK
  • To delete a member from an existing group
    • Right-click on the Group from the data pane -> Edit Group
    • Edit Group dialog box will appear
      • Select one or more members, and then click Ungroup
    • Click OK

Difference between Groups and Sets in Tableau

Now, you are in the position to answer what is set, how to create them, and how to edit them once Group is created, but I’m sure you are also confused that we do similar things with the sets too.
So, what is the difference between Sets and groups in Tableau?

Group Set
You can group only within one dimension You can group across multiple dimensions
Groups are not dynamic. Sets are dynamic (i.e., when data changes, the set will update with it)
New created Group will appear in the same dimension window. The newly created set appears in a separate window below the measure.
Tableau Operators: Arithmetic, Comparison and Logical
How to Create Sets in Tableau
Dimension and Measure in Tableau

Conclusion

In this article, we have discussed about groups in tableau, how to create groups and finally what are the differences between tableau groups and sets.

Hope this article will help you in your data analysis journey.

Top Trending Articles:

Data Analyst Interview Questions | Data Science Interview Questions | Machine Learning Applications | Big Data vs Machine Learning | Data Scientist vs Data Analyst | How to Become a Data Analyst | Data Science vs. Big Data vs. Data Analytics | What is Data Science | What is a Data Scientist | What is Data Analyst

About the Author
author-image
Vikram Singh
Assistant Manager - Content

Vikram has a Postgraduate degree in Applied Mathematics, with a keen interest in Data Science and Machine Learning. He has experience of 2+ years in content creation in Mathematics, Statistics, Data Science, and Mac... Read Full Bio