Christmas Special : Upto 40% OFF! + 2 free courses  - SCHEDULE CALL

- Tableau Blogs -

What is Group and How to Implement Grouping in Tableau?

Introduction

In this article, we are going to talk about what a group in Tableau is and how to implement grouping in Tableau. We will also talk about the difference between groups and sets. Additionally, we will see when to use a group and set while doing the reporting. Along with all these, we will see the Different techniques to create a group in Tableau.

What is a group in Tableau?

The group is a feature that is like a custom field in Tableau to group or combine related items in the field. For example, if you are working on a report with say sub-categories by sales then you might want to group some of the top subcategories which are contributing the maximum sales to the organization.

grouping measures in tableau

You can see from the above bar chart, the subcategories like phone, chair, storage, Table, Binder, are contributing most of the sales to the superstore. So, you might want to group these top subcategories and might want to compare the sales from these subcategories to the total sales or remaining subcategories. In all the scenarios, a group in Tableau can be very helpful.

Along with the above scenarios, a group in Tableau can also be helpful while correcting errors along with answering somewhat if queries.

For example, if you have to combine the fields related to New York Which eventually says the same location and so should be in a single field. Groups can easily do all this kind of data cleaning. Also, if you want to ask the queries like what if you can combine the two locations or what will happen if you combine two subcategories. The group is capable of answering all such questions. These are some of the major reasons why groups are so popular while doing data reporting and Analytics.

How to create a group in Tableau?

If you want to create a group in Tableau there are multiple ways you can Follow. -

  1. The simple ways group from a field in the data pane
  2. The second option is by selecting the data in the view and then selecting the group icon

Both the above techniques work for a similar purpose. Now let's discuss both techniques one by one.

Read: The Different Tableau Server Features You Should Leverage

Creating a group by selecting the data in view

Here you first need to create a view. For example, I have a View where I am showing subcategory sales. You can create a similar view. Once you have created the view, just select all the bars you want to be a part of the group. Once selected, Right-click on it and select group.

how to create groups in tableau

This will simply create a group and it will add it to the filter shelf as well. You will find all the members which are a part of a group will be now with the blue color while remaining members will be labeled with the grey color and will be written as others. If you don't want the remaining member to be shown over there you can simply go to the filter self and unchecked other options.

Like a set, there won't be a different section getting created for the group. And the new group that you have created will be the part of the dimension itself. It will be a group name followed by that group icon.

Tableau Online Training & Certification

  • No cost for a Demo Class
  • Industry Expert as your Trainer
  • Available as per your schedule
  • Customer Support Available

Later on, when you want to edit this group you can right-click on the group that you have created and select the edit group option. Here you will get a dialogue box where both the members will be listed one with all the members of the group other with all the remaining members of that particular dimension. Now, you can simply expand both the Hierarchy and reorder the members. For example, if you want to remove some of the members from the group you can simply drag that to the other part while if you want some of the members from the other to be the part of the group you can simply drag those to the part of the group.

By default, all the members who are part of the group will be named with the members only. If you want to rename the groups you can simply select that and click on rename and then you can write your required name.

Read: Power BI vs Tableau - Top 8 Key Differences

grouping measures in tableau

If you want to change the field name itself you can simply write the desired field name. For example, by default, the field name is sab-category (group) which is the default name that has been created for the group. You should change this with the desired name like a group of top 6 subcategories.

If you want to add some members to be the part of the group or want to remove some members from the group you can either use the drag-drop feature or can take help of add to option.

Apart from all these, we have a few more options -

  1. Ungroup - That means if you don't want the group to exist now you can simply select a group and click on a group. This way, the individual members will be soon rather than the group.
  2. Include others - You will find it checkbox option at the left bottom corner which will be by default selected. That means if a dimension has 100 members and you want 20 members to be the part of the group if this checkbox is selected remaining 80 members will be the part of the other group. If this checkbox is not selected then other options won't be there. 

Once you have made all the changes, simply click apply or ok to close the window. Now you can use group anywhere you want.

Creating a group from the data pane

In the last section, we create a group by selecting some of the members from the view. Later we try to edit the group by rearranging the members and the different other features. We can also create a group from the data pane. To do that just follow the steps-

  1. Right-click on the data pane and select create followed by the group. You can find the data pane on the left side.
  2. Here you will get a dialogue box to create a group. Select the members which should be the part of a group and one selected just click on the group.

This will create a group for you with all the members who have selected in the dialogue box. Although you can change the members of the group anytime you require just by following the same way we have discussed in the last section.

Now all the selected members will be combined in the group and the default name will be provided to the group. If you want to change the name of the group just right click on it and select the edit group. In the end group dialogue box, you will be able to change the group name along with multiple other things that we have already discussed. When all the editing is done just click on OK. You can also rename the group just by right-clicking on it and selecting rename option.

If you have a lot of members in a group you can search the members using the find option you can find in the edit group dialogue box.

Read: Tableau vs. Qlikview vs. Power BI - Comparing Data Management Tools

Using the group in the report

Now let's use the group we have created in the report and see the comparison. Let say, we want to see how much profit we have made from all the subcategories which are the part of the group and the remaining other subcategories. To do this, drag the subcategory group in the row shelf, and drag the profit measure into the text field. Once done, you will get like below -

Tableau Grouping

As you can see from the above tabular report, the profit made by members of the group is way higher than the other members of the subcategories. This way you can do the comparison with different other measures as well. This Kind of comparison you can do only if you have selected another option in the group. Later, if you don't want to show the other option you can simply put that group on the filter shelf and uncheck the other option.

Apart From just comparing the values and making the corrections and asking the questions, you can also use the group to color a view.

Tableau Online Training & Certification

  • Personalized Free Consultation
  • Access to Our Learning Management System
  • Access to Our Course Curriculum
  • Be a Part of Our Free Demo Class

Wrapping it up!

This was all about the group in Tableau. Groups majorly make a large number of dimensions easier by combining them into a higher level of categories. While the set is a subset of the data best on certain conditions for existing dimensions. Along with this grouping means grouping multiple members in a single dimension to a higher category while the set is grouping members from multiple dimensions into a dynamic group or a constant group. So, the set makes things dynamic.

You can now go and create the group and use it in your report to see the real action. While creating this if you face any difficulty do let us know. 

Read: 6 Steps On How to Build an Impressive Tableau Developer Resumes (With Samples)


fbicons FaceBook twitterTwitter lingedinLinkedIn pinterest Pinterest emailEmail

     Logo

    JanBask Training

    A dynamic, highly professional, and a global online training course provider committed to propelling the next generation of technology learners with a whole new way of training experience.


  • fb-15
  • twitter-15
  • linkedin-15

Comments

Trending Courses

Cyber Security Course

Cyber Security

  • Introduction to cybersecurity
  • Cryptography and Secure Communication 
  • Cloud Computing Architectural Framework
  • Security Architectures and Models
Cyber Security Course

Upcoming Class

2 days 21 Dec 2024

QA Course

QA

  • Introduction and Software Testing
  • Software Test Life Cycle
  • Automation Testing and API Testing
  • Selenium framework development using Testing
QA Course

Upcoming Class

1 day 20 Dec 2024

Salesforce Course

Salesforce

  • Salesforce Configuration Introduction
  • Security & Automation Process
  • Sales & Service Cloud
  • Apex Programming, SOQL & SOSL
Salesforce Course

Upcoming Class

-0 day 19 Dec 2024

Business Analyst Course

Business Analyst

  • BA & Stakeholders Overview
  • BPMN, Requirement Elicitation
  • BA Tools & Design Documents
  • Enterprise Analysis, Agile & Scrum
Business Analyst Course

Upcoming Class

8 days 27 Dec 2024

MS SQL Server Course

MS SQL Server

  • Introduction & Database Query
  • Programming, Indexes & System Functions
  • SSIS Package Development Procedures
  • SSRS Report Design
MS SQL Server Course

Upcoming Class

8 days 27 Dec 2024

Data Science Course

Data Science

  • Data Science Introduction
  • Hadoop and Spark Overview
  • Python & Intro to R Programming
  • Machine Learning
Data Science Course

Upcoming Class

1 day 20 Dec 2024

DevOps Course

DevOps

  • Intro to DevOps
  • GIT and Maven
  • Jenkins & Ansible
  • Docker and Cloud Computing
DevOps Course

Upcoming Class

2 days 21 Dec 2024

Hadoop Course

Hadoop

  • Architecture, HDFS & MapReduce
  • Unix Shell & Apache Pig Installation
  • HIVE Installation & User-Defined Functions
  • SQOOP & Hbase Installation
Hadoop Course

Upcoming Class

1 day 20 Dec 2024

Python Course

Python

  • Features of Python
  • Python Editors and IDEs
  • Data types and Variables
  • Python File Operation
Python Course

Upcoming Class

2 days 21 Dec 2024

Artificial Intelligence Course

Artificial Intelligence

  • Components of AI
  • Categories of Machine Learning
  • Recurrent Neural Networks
  • Recurrent Neural Networks
Artificial Intelligence Course

Upcoming Class

1 day 20 Dec 2024

Machine Learning Course

Machine Learning

  • Introduction to Machine Learning & Python
  • Machine Learning: Supervised Learning
  • Machine Learning: Unsupervised Learning
Machine Learning Course

Upcoming Class

8 days 27 Dec 2024

 Tableau Course

Tableau

  • Introduction to Tableau Desktop
  • Data Transformation Methods
  • Configuring tableau server
  • Integration with R & Hadoop
 Tableau Course

Upcoming Class

1 day 20 Dec 2024

Search Posts

Reset

Receive Latest Materials and Offers on Tableau Course

Interviews