{"id":154,"date":"2024-10-02T02:59:11","date_gmt":"2024-10-02T02:59:11","guid":{"rendered":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/chapter\/chapter-4-groups-sets-and-combined-sets\/"},"modified":"2024-10-10T03:01:44","modified_gmt":"2024-10-10T03:01:44","slug":"chapter-4-groups-sets-and-combined-sets","status":"publish","type":"chapter","link":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/chapter\/chapter-4-groups-sets-and-combined-sets\/","title":{"raw":"GROUPS, SETS, AND COMBINED SETS","rendered":"GROUPS, SETS, AND COMBINED SETS"},"content":{"raw":"<div class=\"chapter-4:-groups,-sets,-and-combined-sets\">\r\n<table>\r\n<tbody>\r\n<tr class=\"GridTable4-Accent5-R\" style=\"height: 66pt\">\r\n<td class=\"GridTable4-Accent5-C\" style=\"background-color: #5b9bd5;border-top: solid #5B9BD5 0.5pt;border-bottom: solid #5B9BD5 0.5pt;border-right: none windowtext 0pt;border-left: solid #5B9BD5 0.5pt\">\r\n<div class=\"GridTable4-Accent5-firstCol\">\r\n<div class=\"GridTable4-Accent5-firstRow\">\r\n<p class=\"import-Normal\"><img src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image1-3.png\" alt=\"image\" width=\"96px\" height=\"96px\" \/><\/p>\r\n\r\n<\/div>\r\n<\/div><\/td>\r\n<td class=\"GridTable4-Accent5-C\" style=\"background-color: #5b9bd5;border: solid #9CC2E5 0.5pt\">\r\n<div class=\"GridTable4-Accent5-firstRow\">\r\n<p class=\"import-Normal\">By the end of this chapter, readers will be able to:<\/p>\r\n\r\n<ul>\r\n \t<li>Group dimension members<\/li>\r\n \t<li>Create data sets<\/li>\r\n \t<li>Create combined data sets<\/li>\r\n<\/ul>\r\n<\/div><\/td>\r\n<\/tr>\r\n<tr>\r\n<td><\/td>\r\n<td><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h2><a id=\"_Toc178253022\"><\/a><strong>Group<\/strong><strong>ing<\/strong> <strong>D<\/strong><strong>imension <\/strong><strong>M<\/strong><strong>embers<\/strong><\/h2>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">The group feature in Tableau can be used to merge related dimension members in a visualization. For instance, assume that we want <strong>VIZ<\/strong> <strong>10<\/strong> to show the combined number of orders for dining room furniture, which includes chairs and tables. As such, firstly, click the <strong>Sub-Category<\/strong> field in the <strong>Data <\/strong><strong>P<\/strong><strong>ane<\/strong>, then choose <strong>Create<\/strong>, followed by <strong>Group<\/strong> (Note: Clear the sorting in <strong>VIZ 10<\/strong> before proceeding with this step).<\/p>\r\n<img class=\"aligncenter wp-image-137\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image109-e1728526202424.png\" alt=\"\" width=\"732\" height=\"356\" \/>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">In the <strong>Group<\/strong> setting, choose both the <strong>Chairs<\/strong> and <strong>Tables<\/strong> using the <strong>Ctrl<\/strong> button, and click <strong>OK<\/strong>.<\/p>\r\n<img class=\"aligncenter wp-image-138\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image110-e1728526235469.png\" alt=\"\" width=\"728\" height=\"354\" \/>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Rename the group to <strong>Dining Room <\/strong><strong>Furniture<\/strong> and click <strong>OK<\/strong>.<\/p>\r\n<img class=\"aligncenter wp-image-139\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image111-e1728526262282.png\" alt=\"\" width=\"726\" height=\"353\" \/>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">The group field for <strong>Sub-Category<\/strong> items is typically created in the <strong>Data Pane<\/strong>, identified by the accompanying paperclip icon.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: center\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image112.png\" alt=\"image\" width=\"200\" height=\"148\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Drag the <strong>Sub-Category<\/strong> field from the <strong>Data Pane<\/strong> and replace it with the <strong>Sub-Category (group)<\/strong> to depict the combined total number of orders for both Chairs and Tables in <strong>VIZ 10<\/strong>.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image113.png\" alt=\"image\" width=\"709\" height=\"347\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Users may utilize the <strong>Edit Group<\/strong> function by clicking the field in the <strong>Data Pan<\/strong><strong>e<\/strong> if they wish to form more groups within a dimension field.<\/p>\r\n<img class=\"aligncenter wp-image-142\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image114-e1728526290157.png\" alt=\"\" width=\"713\" height=\"348\" \/>\r\n\r\n[h5p id=\"15\"]\r\n<h2><a id=\"_Toc178253023\"><\/a><strong>Set<\/strong><strong>s<\/strong><strong> in Tableau<\/strong><\/h2>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Set offers a more dynamic way for the users to group the dimension members. It helps users to identify and group dimension members that meet a specific condition. In Tableau, dimension members that meet the condition as grouped as <strong>IN<\/strong> items. Otherwise, they are considered <strong>OUT<\/strong> items. The <strong>IN<\/strong> items can be coloured differently to grab the audience's attention during the data presentation.<\/p>\r\n\r\n<h3><a id=\"_Toc178253024\"><\/a><strong>Exercise<\/strong><strong> 16<\/strong><\/h3>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Create a visualization to show total sales per state. Name the visualization <strong>VIZ 11<\/strong>. Using a set, identify the states with total sales above $100,000. Colour the states meeting this condition differently.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution<\/strong><strong> \u2013 Exercise 16<\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><a id=\"_Hlk159425559\"><\/a>Step 1: Drop the <strong>S<\/strong><strong>tate<\/strong> field to the <strong>C<\/strong><strong>olumn<\/strong><strong>s<\/strong> shelf and the <strong>S<\/strong><strong>ales<\/strong> field to the <strong>Row<\/strong><strong>s<\/strong> shelf to create <strong>VIZ 11<\/strong>.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image115.png\" alt=\"image\" width=\"723\" height=\"378\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: To create the set field, click <strong>State<\/strong> in the <strong>Data Pane<\/strong> and choose <strong>Create<\/strong>, followed by <strong>Set<\/strong>.<\/p>\r\n<img class=\"aligncenter wp-image-144\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image116-e1728526352386.png\" alt=\"\" width=\"717\" height=\"347\" \/>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Name the set <strong>State (<\/strong><strong>Sales above<\/strong><strong> $100,000)<\/strong><strong>, <\/strong>reflecting its characteristics.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: center\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image117.png\" alt=\"image\" width=\"462\" height=\"286\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Switch to the <strong>Condition<\/strong> tab. Set the prefixed condition, i.e., <strong>Sum of Sales <\/strong><strong>&gt;<\/strong><strong> $100,000<\/strong>, in the <strong>By <\/strong><strong>F<\/strong><strong>ield<\/strong> section.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: center\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image118.png\" alt=\"image\" width=\"464\" height=\"317\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">The newly created set field, i.e., <strong>State (<\/strong><strong>Sales <\/strong><strong>above $100,000)<\/strong>, will be available at the <strong>Data Pane<\/strong> once the OK button is clicked. In Tableau, the set field is usually denoted by a Venn diagram icon.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: center\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image119.png\" alt=\"image\" width=\"248\" height=\"75\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Drag and drop the set field in the <strong>Colour<\/strong> <strong>Card<\/strong>. We can now notice that all the states with total sales above $100,000 are coloured oddly. In this case, they are coloured in blue. The visual below shows that there are five states which satisfy the condition of the set field, which are California, New York, Pennsylvania, Texas, and Washington.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image120.png\" alt=\"image\" width=\"1489\" height=\"700\" \/><\/p>\r\n[h5p id=\"13\"]\r\n<h2><a id=\"_Toc178253025\"><\/a><strong>Combined <\/strong><strong>S<\/strong><strong>ets<\/strong><\/h2>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">In Tableau, a combined set is a set that is created to merge two or more individual sets using set operations such as union, intersection, or difference. Combined sets are particularly useful when users want to analyze data based on multiple conditions simultaneously.<\/p>\r\n\r\n<h3><a id=\"_Toc178253026\"><\/a><strong>Exercise<\/strong><strong> 17<\/strong><\/h3>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Create a visualization to show total <strong>Sales<\/strong> and <strong>Profit<\/strong> per <strong>State<\/strong>. Name the visualization <strong>VIZ 1<\/strong><strong>2<\/strong>. Using <strong>set<\/strong> and <strong>combined set<\/strong>, identify the states with total sales and total profit above $100,000 and $0, respectively. Colour the states meeting this condition differently.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution<\/strong><strong> \u2013 Exercise 17<\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Drop the <strong>State<\/strong> field to the <strong>C<\/strong><strong>olumn<\/strong><strong>s<\/strong> shelf. Also, drop both the <strong>Sales<\/strong> and the <strong>Profit<\/strong> fields to the <strong>Rows<\/strong> shelf to create <strong>VIZ 1<\/strong><strong>2<\/strong>.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: center\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image121.png\" alt=\"image\" width=\"1363\" height=\"802\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: Using similar steps, create another set field to group the profitable states, i.e., states with at least $0. Name the set <strong>State (<\/strong><strong>P<\/strong><strong>rofit above <\/strong><strong>$<\/strong><strong>0)<\/strong><strong>.<\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: center\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image122.png\" alt=\"image\" width=\"444\" height=\"303\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Click the <strong>State (<\/strong><strong>P<\/strong><strong>rofit above $0) <\/strong>set in the <strong>Data Pane<\/strong> and choose <strong>Create<\/strong><strong> Combined Set<\/strong>.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: center\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image123.png\" alt=\"image\" width=\"442\" height=\"523\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 4: Rename the combined set to <strong>State (<\/strong><strong>Profit above $0 <\/strong><strong>&amp; <\/strong><strong>sales above <\/strong><strong>$100000)<\/strong>. Choose the <strong>State (Sales <\/strong><strong>above<\/strong><strong> $100,000)<\/strong> set to combine with. Pick <strong>Shared <\/strong><strong>M<\/strong><strong>embers in <\/strong><strong>B<\/strong><strong>oth <\/strong><strong>S<\/strong><strong>ets<\/strong> to group states that meet both criteria.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: center\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image124.png\" alt=\"image\" width=\"483\" height=\"280\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 5: Drag the combined set from the <strong>Data Pane<\/strong> and drop it onto the <strong>Colour<\/strong> <strong>C<\/strong><strong>ard<\/strong>. We can observe that states with total profits and total sales of at least $0 and $100,000, respectively, are highlighted in a distinctive colour, such as blue in this instance. The results detect three states meet both conditions: California, New York, and Washington.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image125.png\" alt=\"image\" width=\"1492\" height=\"789\" \/><\/p>\r\n[h5p id=\"14\"]\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><\/p>\r\n\r\n<\/div>","rendered":"<div class=\"chapter-4:-groups,-sets,-and-combined-sets\">\n<table>\n<tbody>\n<tr class=\"GridTable4-Accent5-R\" style=\"height: 66pt\">\n<td class=\"GridTable4-Accent5-C\" style=\"background-color: #5b9bd5;border-top: solid #5B9BD5 0.5pt;border-bottom: solid #5B9BD5 0.5pt;border-right: none windowtext 0pt;border-left: solid #5B9BD5 0.5pt\">\n<div class=\"GridTable4-Accent5-firstCol\">\n<div class=\"GridTable4-Accent5-firstRow\">\n<p class=\"import-Normal\"><img decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image1-3.png\" alt=\"image\" width=\"96px\" height=\"96px\" \/><\/p>\n<\/div>\n<\/div>\n<\/td>\n<td class=\"GridTable4-Accent5-C\" style=\"background-color: #5b9bd5;border: solid #9CC2E5 0.5pt\">\n<div class=\"GridTable4-Accent5-firstRow\">\n<p class=\"import-Normal\">By the end of this chapter, readers will be able to:<\/p>\n<ul>\n<li>Group dimension members<\/li>\n<li>Create data sets<\/li>\n<li>Create combined data sets<\/li>\n<\/ul>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><a id=\"_Toc178253022\"><\/a><strong>Group<\/strong><strong>ing<\/strong> <strong>D<\/strong><strong>imension <\/strong><strong>M<\/strong><strong>embers<\/strong><\/h2>\n<p class=\"import-Normal\" style=\"text-align: justify\">The group feature in Tableau can be used to merge related dimension members in a visualization. For instance, assume that we want <strong>VIZ<\/strong> <strong>10<\/strong> to show the combined number of orders for dining room furniture, which includes chairs and tables. As such, firstly, click the <strong>Sub-Category<\/strong> field in the <strong>Data <\/strong><strong>P<\/strong><strong>ane<\/strong>, then choose <strong>Create<\/strong>, followed by <strong>Group<\/strong> (Note: Clear the sorting in <strong>VIZ 10<\/strong> before proceeding with this step).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-137\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image109-e1728526202424.png\" alt=\"\" width=\"732\" height=\"356\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image109-e1728526202424.png 1920w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image109-e1728526202424-300x146.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image109-e1728526202424-1024x498.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image109-e1728526202424-768x374.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image109-e1728526202424-1536x747.png 1536w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image109-e1728526202424-65x32.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image109-e1728526202424-225x109.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image109-e1728526202424-350x170.png 350w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">In the <strong>Group<\/strong> setting, choose both the <strong>Chairs<\/strong> and <strong>Tables<\/strong> using the <strong>Ctrl<\/strong> button, and click <strong>OK<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-138\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image110-e1728526235469.png\" alt=\"\" width=\"728\" height=\"354\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image110-e1728526235469.png 1920w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image110-e1728526235469-300x146.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image110-e1728526235469-1024x498.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image110-e1728526235469-768x374.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image110-e1728526235469-1536x747.png 1536w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image110-e1728526235469-65x32.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image110-e1728526235469-225x109.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image110-e1728526235469-350x170.png 350w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Rename the group to <strong>Dining Room <\/strong><strong>Furniture<\/strong> and click <strong>OK<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-139\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image111-e1728526262282.png\" alt=\"\" width=\"726\" height=\"353\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image111-e1728526262282.png 1920w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image111-e1728526262282-300x146.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image111-e1728526262282-1024x498.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image111-e1728526262282-768x374.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image111-e1728526262282-1536x747.png 1536w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image111-e1728526262282-65x32.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image111-e1728526262282-225x109.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image111-e1728526262282-350x170.png 350w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">The group field for <strong>Sub-Category<\/strong> items is typically created in the <strong>Data Pane<\/strong>, identified by the accompanying paperclip icon.<\/p>\n<p class=\"import-Normal\" style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image112.png\" alt=\"image\" width=\"200\" height=\"148\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Drag the <strong>Sub-Category<\/strong> field from the <strong>Data Pane<\/strong> and replace it with the <strong>Sub-Category (group)<\/strong> to depict the combined total number of orders for both Chairs and Tables in <strong>VIZ 10<\/strong>.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image113.png\" alt=\"image\" width=\"709\" height=\"347\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Users may utilize the <strong>Edit Group<\/strong> function by clicking the field in the <strong>Data Pan<\/strong><strong>e<\/strong> if they wish to form more groups within a dimension field.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-142\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image114-e1728526290157.png\" alt=\"\" width=\"713\" height=\"348\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image114-e1728526290157.png 1920w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image114-e1728526290157-300x146.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image114-e1728526290157-1024x500.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image114-e1728526290157-768x375.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image114-e1728526290157-1536x750.png 1536w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image114-e1728526290157-65x32.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image114-e1728526290157-225x110.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image114-e1728526290157-350x171.png 350w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/p>\n<div id=\"h5p-15\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-15\" class=\"h5p-iframe\" data-content-id=\"15\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Grouping\"><\/iframe><\/div>\n<\/div>\n<h2><a id=\"_Toc178253023\"><\/a><strong>Set<\/strong><strong>s<\/strong><strong> in Tableau<\/strong><\/h2>\n<p class=\"import-Normal\" style=\"text-align: justify\">Set offers a more dynamic way for the users to group the dimension members. It helps users to identify and group dimension members that meet a specific condition. In Tableau, dimension members that meet the condition as grouped as <strong>IN<\/strong> items. Otherwise, they are considered <strong>OUT<\/strong> items. The <strong>IN<\/strong> items can be coloured differently to grab the audience&#8217;s attention during the data presentation.<\/p>\n<h3><a id=\"_Toc178253024\"><\/a><strong>Exercise<\/strong><strong> 16<\/strong><\/h3>\n<p class=\"import-Normal\" style=\"text-align: justify\">Create a visualization to show total sales per state. Name the visualization <strong>VIZ 11<\/strong>. Using a set, identify the states with total sales above $100,000. Colour the states meeting this condition differently.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution<\/strong><strong> \u2013 Exercise 16<\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><a id=\"_Hlk159425559\"><\/a>Step 1: Drop the <strong>S<\/strong><strong>tate<\/strong> field to the <strong>C<\/strong><strong>olumn<\/strong><strong>s<\/strong> shelf and the <strong>S<\/strong><strong>ales<\/strong> field to the <strong>Row<\/strong><strong>s<\/strong> shelf to create <strong>VIZ 11<\/strong>.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image115.png\" alt=\"image\" width=\"723\" height=\"378\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: To create the set field, click <strong>State<\/strong> in the <strong>Data Pane<\/strong> and choose <strong>Create<\/strong>, followed by <strong>Set<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-144\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image116-e1728526352386.png\" alt=\"\" width=\"717\" height=\"347\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image116-e1728526352386.png 1920w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image116-e1728526352386-300x145.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image116-e1728526352386-1024x495.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image116-e1728526352386-768x371.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image116-e1728526352386-1536x742.png 1536w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image116-e1728526352386-65x31.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image116-e1728526352386-225x109.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image116-e1728526352386-350x169.png 350w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Name the set <strong>State (<\/strong><strong>Sales above<\/strong><strong> $100,000)<\/strong><strong>, <\/strong>reflecting its characteristics.<\/p>\n<p class=\"import-Normal\" style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image117.png\" alt=\"image\" width=\"462\" height=\"286\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Switch to the <strong>Condition<\/strong> tab. Set the prefixed condition, i.e., <strong>Sum of Sales <\/strong><strong>&gt;<\/strong><strong> $100,000<\/strong>, in the <strong>By <\/strong><strong>F<\/strong><strong>ield<\/strong> section.<\/p>\n<p class=\"import-Normal\" style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image118.png\" alt=\"image\" width=\"464\" height=\"317\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">The newly created set field, i.e., <strong>State (<\/strong><strong>Sales <\/strong><strong>above $100,000)<\/strong>, will be available at the <strong>Data Pane<\/strong> once the OK button is clicked. In Tableau, the set field is usually denoted by a Venn diagram icon.<\/p>\n<p class=\"import-Normal\" style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image119.png\" alt=\"image\" width=\"248\" height=\"75\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Drag and drop the set field in the <strong>Colour<\/strong> <strong>Card<\/strong>. We can now notice that all the states with total sales above $100,000 are coloured oddly. In this case, they are coloured in blue. The visual below shows that there are five states which satisfy the condition of the set field, which are California, New York, Pennsylvania, Texas, and Washington.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image120.png\" alt=\"image\" width=\"1489\" height=\"700\" \/><\/p>\n<div id=\"h5p-13\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-13\" class=\"h5p-iframe\" data-content-id=\"13\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Set\"><\/iframe><\/div>\n<\/div>\n<h2><a id=\"_Toc178253025\"><\/a><strong>Combined <\/strong><strong>S<\/strong><strong>ets<\/strong><\/h2>\n<p class=\"import-Normal\" style=\"text-align: justify\">In Tableau, a combined set is a set that is created to merge two or more individual sets using set operations such as union, intersection, or difference. Combined sets are particularly useful when users want to analyze data based on multiple conditions simultaneously.<\/p>\n<h3><a id=\"_Toc178253026\"><\/a><strong>Exercise<\/strong><strong> 17<\/strong><\/h3>\n<p class=\"import-Normal\" style=\"text-align: justify\">Create a visualization to show total <strong>Sales<\/strong> and <strong>Profit<\/strong> per <strong>State<\/strong>. Name the visualization <strong>VIZ 1<\/strong><strong>2<\/strong>. Using <strong>set<\/strong> and <strong>combined set<\/strong>, identify the states with total sales and total profit above $100,000 and $0, respectively. Colour the states meeting this condition differently.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution<\/strong><strong> \u2013 Exercise 17<\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Drop the <strong>State<\/strong> field to the <strong>C<\/strong><strong>olumn<\/strong><strong>s<\/strong> shelf. Also, drop both the <strong>Sales<\/strong> and the <strong>Profit<\/strong> fields to the <strong>Rows<\/strong> shelf to create <strong>VIZ 1<\/strong><strong>2<\/strong>.<\/p>\n<p class=\"import-Normal\" style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image121.png\" alt=\"image\" width=\"1363\" height=\"802\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: Using similar steps, create another set field to group the profitable states, i.e., states with at least $0. Name the set <strong>State (<\/strong><strong>P<\/strong><strong>rofit above <\/strong><strong>$<\/strong><strong>0)<\/strong><strong>.<\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image122.png\" alt=\"image\" width=\"444\" height=\"303\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Click the <strong>State (<\/strong><strong>P<\/strong><strong>rofit above $0) <\/strong>set in the <strong>Data Pane<\/strong> and choose <strong>Create<\/strong><strong> Combined Set<\/strong>.<\/p>\n<p class=\"import-Normal\" style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image123.png\" alt=\"image\" width=\"442\" height=\"523\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 4: Rename the combined set to <strong>State (<\/strong><strong>Profit above $0 <\/strong><strong>&amp; <\/strong><strong>sales above <\/strong><strong>$100000)<\/strong>. Choose the <strong>State (Sales <\/strong><strong>above<\/strong><strong> $100,000)<\/strong> set to combine with. Pick <strong>Shared <\/strong><strong>M<\/strong><strong>embers in <\/strong><strong>B<\/strong><strong>oth <\/strong><strong>S<\/strong><strong>ets<\/strong> to group states that meet both criteria.<\/p>\n<p class=\"import-Normal\" style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image124.png\" alt=\"image\" width=\"483\" height=\"280\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 5: Drag the combined set from the <strong>Data Pane<\/strong> and drop it onto the <strong>Colour<\/strong> <strong>C<\/strong><strong>ard<\/strong>. We can observe that states with total profits and total sales of at least $0 and $100,000, respectively, are highlighted in a distinctive colour, such as blue in this instance. The results detect three states meet both conditions: California, New York, and Washington.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image125.png\" alt=\"image\" width=\"1492\" height=\"789\" \/><\/p>\n<div id=\"h5p-14\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-14\" class=\"h5p-iframe\" data-content-id=\"14\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Combined set\"><\/iframe><\/div>\n<\/div>\n<p class=\"import-Normal\" style=\"text-align: justify\">\n<\/div>\n","protected":false},"author":131,"menu_order":4,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-154","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/chapters\/154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/wp\/v2\/users\/131"}],"version-history":[{"count":3,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/chapters\/154\/revisions"}],"predecessor-version":[{"id":367,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/chapters\/154\/revisions\/367"}],"part":[{"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/chapters\/154\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/chapter-type?post=154"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/wp\/v2\/contributor?post=154"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/wp\/v2\/license?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}