{"id":135,"date":"2024-10-02T02:59:01","date_gmt":"2024-10-02T02:59:01","guid":{"rendered":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/chapter\/chapter-3-data-filtering-and-sorting\/"},"modified":"2024-10-10T02:38:08","modified_gmt":"2024-10-10T02:38:08","slug":"chapter-3-data-filtering-and-sorting","status":"publish","type":"chapter","link":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/chapter\/chapter-3-data-filtering-and-sorting\/","title":{"raw":"DATA FILTERING AND SORTING","rendered":"DATA FILTERING AND SORTING"},"content":{"raw":"<div class=\"chapter-3:-data-filtering-and-sorting\">\r\n<table>\r\n<tbody>\r\n<tr class=\"GridTable4-Accent5-R\" style=\"height: 0\">\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-2.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>Filter data based on the dimension, measure, or date fields<\/li>\r\n \t<li>Use the parameter feature to dynamically filter data<\/li>\r\n \t<li>Sort data effectively<\/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=\"_Toc178253007\"><\/a><strong>Filters<\/strong><\/h2>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Filters can be used to control the degree of information depicted in a visualisation. In other words, users can include and exclude the type or level of information displayed in a visualisation, allowing a focused investigation. Filters also allow users to make certain comparisons for decision-making purposes, e.g., comparison between a selected range of dimension members, comparison across a selected range of periods etc.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">A filter dialogue box appeared immediately once the users dropped a field to the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf. This dialogue box permits the users to set the characteristics of the filter. The available characteristics in each dialog box vary according to the type of field dropped to the filter shelf i.e. dimension, measure, or date field. The figure shows the summary of filter characteristics according to each field type.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><img class=\"aligncenter wp-image-348 \" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P1.png\" alt=\"\" width=\"339\" height=\"428\" \/><\/p>\r\n\r\n<h2><a id=\"_Toc178253008\"><\/a><strong>Filtering <\/strong><strong>B<\/strong><strong>ased on <\/strong><strong>a D<\/strong><strong>imension <\/strong><strong>F<\/strong><strong>ield<\/strong><\/h2>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">When a dimension field, is dropped to the filter shelf, a dialogue box pops out, with each tab in the dialogue box representing a characteristic that the user can set to the filter:<\/p>\r\n\r\n<ul>\r\n \t<li><strong>General<\/strong><strong> Tab<\/strong>: Users can use the <strong>General<\/strong> tab to choose the dimension members that they wish to include or exclude. You can control the exclusion or inclusion of the data points later with the help of a filter control card. Filter control card will appear together with the visualization once the users click the <strong>Show Filter<\/strong> option.<\/li>\r\n \t<li><strong>Wildcard<\/strong>: Users can use the <strong>Wildcard<\/strong> tab to filter the dimension members that follow a specific pattern. For example, when filtering on email addresses you might want to only include emails from a specific domain. You can define a wildcard filter that ends with \"@ums.edu.my\" to only include Universiti Malaysia Sabah email addresses.<\/li>\r\n \t<li><strong>Condition<\/strong>: The <strong>C<\/strong><strong>ondition<\/strong> tab can be used to only depict dimension members that satisfy certain rules. For example, in a visualization that shows the sub-category products vs. the sum of sales, users can opt to only depict sub-category products that made at least $140,000 in sales by defining the condition tab.<\/li>\r\n \t<li><strong>Top<\/strong>: The <strong>T<\/strong><strong>op<\/strong> tab can be used to show the top or bottom N dimension members in the visualization based on a measure field. For example, users can customize the <strong>Top<\/strong> tab to only show the top 5 sub-category products in terms of total sales.<\/li>\r\n<\/ul>\r\n<h3><a id=\"_Toc178253009\"><\/a><strong>Exercise <\/strong><strong>9<\/strong><\/h3>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">With the help of the filter tool, create a bar graph that compares only the total sales between furniture and technology sub-category items.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution \u2013 Exercise 9<\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Drop the <strong>C<\/strong><strong>ategory<\/strong> and <strong>S<\/strong><strong>ub-<\/strong><strong>C<\/strong><strong>ategory<\/strong> fields to the <strong>C<\/strong><strong>olumn<\/strong><strong>s<\/strong> shelf and the <strong>S<\/strong><strong>ales<\/strong> field to the <strong>Rows<\/strong> shelf to create the intended graph. Name the sheet <strong>VIZ 8<\/strong>. Also, drop the <strong>S<\/strong><strong>ales<\/strong> field onto the <strong>L<\/strong><strong>abel<\/strong> <strong>C<\/strong><strong>ard<\/strong> to add the sales information in the <strong>VIZ 8<\/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\/image67.png\" alt=\"image\" width=\"706\" height=\"375\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: Drag and drop the <strong>C<\/strong><strong>ategory<\/strong> field onto the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf. In the dialog box that appears, under the <strong>General<\/strong> tab, include all the categories and click <strong>Apply<\/strong>, followed by <strong>OK<\/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\/image68.png\" alt=\"image\" width=\"358\" height=\"506\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Click the down arrow next to the <strong>Category<\/strong> field located in the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and choose <strong>Show Filter<\/strong> to display the filter control.<\/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\/image69.png\" alt=\"image\" width=\"262\" height=\"223\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 4: Check the <strong>Furniture<\/strong> and <strong>Technology<\/strong> categories in the filter control to compare the sales of sub-category items that belong to both Furniture and Technology categories.<\/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\/image70.png\" alt=\"image\" width=\"693\" height=\"327\" \/><\/p>\r\n\r\n<h3><a id=\"_Toc178253010\"><\/a><strong>Exercise <\/strong><strong>10<\/strong><\/h3>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Apply the condition filter on <strong>VIZ 8<\/strong> to identify sub-category items with total sales exceeding $100,000.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution- Exercise 10<\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Remove the existing filter in <strong>VIZ 8<\/strong> by clicking the down arrow next to the field available on the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf.<\/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\/image71.png\" alt=\"image\" width=\"182\" height=\"357\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: Drag and drop the <strong>Sub-Category<\/strong> field to the filter shelf. Choose the <strong>Condition<\/strong> tab in the dialogue box that appears. Under the <strong>Condition<\/strong> tab, select <strong>By <\/strong><strong>F<\/strong><strong>ield<\/strong> and set the values accordingly to meet our specifications.<\/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\/image72.png\" alt=\"image\" width=\"365\" height=\"529\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Click <strong>Apply<\/strong> and <strong>OK<\/strong> to only display sub-category items exceeding a total sale of $100,000. The analysis points out bookcases, chairs, tables, appliances, binders, storage, accessories, copiers, machines, and phones as items meeting the condition set.<\/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\/image73.png\" alt=\"image\" width=\"693\" height=\"324\" \/><\/p>\r\n\r\n<h3><a id=\"_Toc178253011\"><\/a><strong>Exercise 1<\/strong><strong>1<\/strong><\/h3>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Apply the top filter on <strong>VIZ 8<\/strong> to identify the top three sub-category items with the highest total sales.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution <\/strong><strong>\u2013 Exercise 11<\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Click the down arrow next to the <strong>S<\/strong><strong>ub-<\/strong><strong>C<\/strong><strong>ategory<\/strong> field available in the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf, and choose <strong>Edit <\/strong><strong>F<\/strong><strong>ilter<\/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\/image74.png\" alt=\"image\" width=\"204\" height=\"144\" \/><\/p>\r\n<p class=\"import-Normal\">Step 2: Under the <strong>C<\/strong><strong>ondition<\/strong> tab, select <strong>None <\/strong>to reset (remove) the condition setting.<\/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\/image75.png\" alt=\"image\" width=\"390\" height=\"245\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Switch to the <strong>Top<\/strong> tab, choose <strong>By field<\/strong>, and set the values according to the needs of the analysis.<\/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\/image76.png\" alt=\"image\" width=\"368\" height=\"537\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">The filtered chart identifies phones, chairs, and storage as the top-selling sub-category items, achieving total sales of $330,007, $328,449, and $223,844 respectively.<\/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\/image77.png\" alt=\"image\" width=\"709\" height=\"341\" \/><\/p>\r\n\r\n<h2><a id=\"_Toc178253012\"><\/a><strong>Using Parameter with Top N Filter<\/strong><\/h2>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">A parameter can be combined with a Top N filter to dynamically adjust the \"N\" value without requiring users to repeatedly modify the \"N\" value in the filter settings. In Tableau, a parameter serves as a control mechanism that enables users to dynamically adjust an input value, resulting in corresponding adjustments to the visualization based on the selected parameter value. Parameters are highly beneficial for conducting what-if analyses, allowing users to observe visualization changes as input values are modified.<\/p>\r\n\r\n<h3><a id=\"_Toc178253013\"><\/a><strong>Exercise 1<\/strong><strong>2<\/strong><\/h3>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Based on <strong>VIZ 8<\/strong>, create a parameter to allow the user to switch the top N sub-category items, with N ranging from 1 to 10.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution \u2013 Exercise 12<\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Edit the <strong>Top N<\/strong> filter for sub-category by the choosing <strong>Create a New Parameter<\/strong> instead of entering a value like Top 1, 2, 3 etc.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: center\"><img class=\"aligncenter wp-image-104\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image78-e1728523969387.png\" alt=\"\" width=\"715\" height=\"378\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: The <strong>Create Parameter<\/strong> box pops out, in which we can customize the name and other features of the parameter. Name the parameter <strong>Top N Sub-Category<\/strong>, and set the range of values with 1 as the minimum and 10 as the maximum.<\/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\/image79.png\" alt=\"image\" width=\"365\" height=\"395\" \/><\/p>\r\n<p class=\"import-Normal\">Step 3: The parameter is created and appears in the <strong>D<\/strong><strong>ata <\/strong><strong>P<\/strong><strong>ane<\/strong> once the <strong>OK<\/strong> button is clicked.<\/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\/image80.png\" alt=\"image\" width=\"197\" height=\"472\" \/><\/p>\r\n<p class=\"import-Normal\">Step 4: Click the down arrow on the parameter and choose <strong>S<\/strong><strong>how <\/strong><strong>P<\/strong><strong>arameter<\/strong> to display the parameter control.<\/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\/image81.png\" alt=\"image\" width=\"386\" height=\"378\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 5 - The parameter control allows us to switch the input value, N, from 1 to 10 to display the top N category items. The visualization updates based on the selected value in the control.<\/p>\r\n<p class=\"import-Normal\"><img class=\"aligncenter wp-image-350\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P2.png\" alt=\"\" width=\"704\" height=\"332\" \/><\/p>\r\n\r\n<h2><a id=\"_Toc178253014\"><\/a><strong>Context <\/strong><strong>F<\/strong><strong>ilter<\/strong><\/h2>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Set the <strong>Top N Sub<\/strong><strong>-<\/strong><strong>Category<\/strong> parameter value in <strong>V<\/strong><strong>IZ<\/strong><strong> 8<\/strong> to 3. <strong>V<\/strong><strong>IZ<\/strong><strong> 8<\/strong> now shows the top 3 sub-category items with the highest sales. <strong>V<\/strong><strong>IZ<\/strong><strong> 8<\/strong> detects Phones from the Technology category, Storage from the Office Supplies category, and Chairs from the Furniture category as the top 3 sub-category items, regardless of the main Category that these items belong to.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><img class=\"aligncenter wp-image-351\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P3.png\" alt=\"\" width=\"705\" height=\"331\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">However, assume that you now wish to find the top 3 sub-category items for each main category. As such, drop the <strong>C<\/strong><strong>ategory<\/strong> field to the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and locate it above the <strong>Sub-Category<\/strong> filter.<\/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\/image84.png\" alt=\"image\" width=\"240\" height=\"222\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Click <strong>S<\/strong><strong>how <\/strong><strong>F<\/strong><strong>ilter<\/strong> to display the filter control for <strong>Catego<\/strong><strong>r<\/strong><strong>y<\/strong> items and choose <strong>F<\/strong><strong>urniture<\/strong>. Repeat the process by only choosing the <strong>Office<\/strong><strong> Supplies<\/strong> and <strong>Technology<\/strong> categories. What did you notice? Is the visual showing the intended results?<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">We anticipate that the visualization will exhibit the top three sub-categories when each category is selected, but it behaves differently. For instance, when <strong>Furniture<\/strong> is chosen, only one sub-category is displayed. This occurs because Tableau initially applies the Top N Sub-category filter, scanning through the entirety of the data to identify the top three sub-category items before executing the second filter, which is the <strong>Category<\/strong> filter. Consequently, the second filter operates based on the results of the first filter.<\/p>\r\n<img class=\"aligncenter wp-image-352\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P4.png\" alt=\"\" width=\"686\" height=\"329\" \/>\r\n\r\n<img class=\"aligncenter wp-image-353\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P5.png\" alt=\"\" width=\"699\" height=\"326\" \/>\r\n\r\n<img class=\"aligncenter wp-image-354\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P6.png\" alt=\"\" width=\"688\" height=\"322\" \/>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">To avoid this, we can use <strong>C<\/strong><strong>ontext <\/strong><strong>F<\/strong><strong>ilter<\/strong>. A context filter is a filter which is executed first before any other filters. When a filter is designated as a context filter, Tableau first applies that filter to the data and then uses the filtered data as the context for subsequent filters.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">In this scenario, we should designate the <strong>Category<\/strong> as the context filter. To do this, click the down arrow next to the <strong>Category<\/strong> field available in the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf, and select <strong>Add to Context<\/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\/image88.png\" alt=\"image\" width=\"210\" height=\"268\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">The <strong>Category<\/strong> field will then turn grey, indicating it is now a context filter.<\/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\/image89.png\" alt=\"image\" width=\"177\" height=\"114\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Now, choose the <strong>F<\/strong><strong>urniture<\/strong> option in the filter card. We can notice that the visualization now displays the intended results, showing the top three sub-category items for each category. What happens? When a category such as <strong>Furniture<\/strong> is chosen, Tableau filters the relevant data, and then performs the second filtering; it identifies the top three sub-categories solely based on the <strong>Furniture<\/strong> data filtered earlier.<\/p>\r\n<img class=\"aligncenter wp-image-355\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P7.png\" alt=\"\" width=\"710\" height=\"331\" \/>\r\n<h3><a id=\"_Toc178253015\"><\/a><strong>Exercise <\/strong><strong>1<\/strong><strong>3<\/strong><\/h3>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Open a new worksheet and rename it to <strong>VIZ <\/strong><strong>9<\/strong>. Create a bar graph showing the sum of sales vs. cities. Apply a filter to identify the top 5 cities based on sales. Additionally, use a context filter to determine the top 5 cities specifically within the Arizona state.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solutions<\/strong><strong> \u2013 Exercise <\/strong><strong>13<\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: To create the desired graph, drop the <strong>City<\/strong> field to the <strong>Rows<\/strong> shelf and the <strong>Sales<\/strong> field to the <strong>C<\/strong><strong>olumn<\/strong><strong>s<\/strong> shelf. Rename the sheet to <strong>VIZ 9<\/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\/image91.png\" alt=\"image\" width=\"703\" height=\"383\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: Include the <strong>City<\/strong> field in the filter, then select <strong>Edit Filter<\/strong> to apply a Top N filter to identify cities with top five sales. The results indicate that, overall, New York City leads in total sales, followed by Los Angeles, Seattle, San Francisco, and Philadelphia.<\/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\/image92.png\" alt=\"image\" width=\"710\" height=\"377\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Drop the <strong>State<\/strong> field to the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and locate it above the <strong>City<\/strong> filter. Click the down arrow next to the <strong>State<\/strong> field available in the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and select <strong>Add to Context<\/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\/image93.png\" alt=\"image\" width=\"171\" height=\"89\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 4: Click <strong>Show Filter<\/strong> for <strong>State<\/strong>, and check <strong>Arizona<\/strong> in the filter card. The results indicate that Phoenix is the city with the highest sales in Arizona state, followed by Tucson, Gilbert, Mesa, and Glendale.<\/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\/image94.png\" alt=\"image\" width=\"709\" height=\"385\" \/><\/p>\r\n[h5p id=\"10\"]\r\n<h2><a id=\"_Toc178253016\"><\/a><strong>Filtering <\/strong><strong>B<\/strong><strong>ased on <\/strong><strong>a<\/strong> <strong>M<\/strong><strong>easure <\/strong><strong>F<\/strong><strong>ield<\/strong><\/h2>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">When a measure field is added to the filter shelf, a dialogue box appears, providing users with the ability to display only dimension members that fall within a specified range of values. There are four filter options that can be applied to a measure field:<\/p>\r\n\r\n<ul>\r\n \t<li><strong>Range of Values<\/strong>: This option enables users to exhibit only the dimension members that lie within a chosen minimum and maximum value range. For example, users can choose to display only the sub-category items that achieved total sales between $100,000 and $200,000.<\/li>\r\n \t<li><strong>At Least<\/strong>: This option enables users to filter data to show only the dimension members that meet or exceed a specific threshold value. For example, users can choose to display only the sub-category items with total sales of at least $200,000.<\/li>\r\n \t<li><strong>At Most<\/strong>: This option enables users to display only the dimension members that have a value equal to or less than a specified threshold. For example, users can choose to show only the sub-category items with total sales of at most $200,000.<\/li>\r\n \t<li><strong>Specific<\/strong>: Utilize this option <a id=\"_Hlk158844346\"><\/a>to determine whether to include only null values, non-null values, or all values in your analysis.<\/li>\r\n<\/ul>\r\n<h3><a id=\"_Toc178253017\"><\/a><strong>Exercise 1<\/strong><strong>4<\/strong><\/h3>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Using a filter in <strong>V<\/strong><strong>IZ<\/strong> <strong>6<\/strong>, identify the customer who contributed a minimum total profit of $2000 or more.<\/p>\r\n<p class=\"import-Normal\"><strong>Solution \u2013 Exercise 14<\/strong><\/p>\r\n<p class=\"import-Normal\">Step 1: Drop the <strong>P<\/strong><strong>rofit<\/strong> field to the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and choose the <strong>At least<\/strong> option.<\/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\/image95.png\" alt=\"image\" width=\"500\" height=\"309\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: Set the threshold value as $2,000.<\/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\/image96.png\" alt=\"image\" width=\"505\" height=\"225\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Click <strong>OK<\/strong> once setting the targeted value to get the list of customers who contributed a minimum total profit of $2000 or more.<\/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\/image97.png\" alt=\"image\" width=\"697\" height=\"320\" \/><\/p>\r\n[h5p id=\"11\"]\r\n<h2><a id=\"_Toc178253018\"><\/a><strong>Filtering <\/strong><strong>B<\/strong><strong>ased on <\/strong><strong>a D<\/strong><strong>ate <\/strong><strong>F<\/strong><strong>ield<\/strong><\/h2>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">The level of data in a visualization can also filtered based on a date field. When a date field is added to the filter shelf in Tableau, users are provided with five options to customize the date filter:<\/p>\r\n\r\n<ul>\r\n \t<li><strong>Relative Date<\/strong>: This option allows users to incorporate data from a number of days, weeks, months, or years preceding or following a particular date.<\/li>\r\n \t<li><strong>Range of Dates<\/strong>: This option includes data within a selected range of two dates.<\/li>\r\n \t<li><strong>Starting Date<\/strong>: This option includes data from a specific date onwards.<\/li>\r\n \t<li><strong>Ending Date<\/strong>: This option includes data up to a particular date.<\/li>\r\n \t<li><strong>Specific<\/strong>: This option determines whether to include only null dates, non-null dates, or all values in the analysis.<\/li>\r\n<\/ul>\r\n<h3><a id=\"_Toc178253019\"><\/a><strong>Exercise 1<\/strong><strong>5<\/strong><\/h3>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Create a bar graph showing no. of orders per sub category item. Rename the sheet to <strong>VIZ <\/strong><strong>10<\/strong>. What is the total number of orders received for papers? Next, using the <strong>Order Date<\/strong> as a filter, determine the number of orders received for papers in 2019 alone.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution \u2013 Exercise 15<\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Drop the <strong>Sub-Category<\/strong> field to the <strong>Columns<\/strong> shelf and the <strong>Order ID<\/strong> to the <strong>Rows<\/strong> shelf. Set the aggregation measure of <strong>Order ID<\/strong> to <strong>Count<\/strong>. This allows Tableau to compute and display the number of orders received for each sub-category item.<\/p>\r\n<img class=\"aligncenter wp-image-124\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image98-e1728525861921.png\" alt=\"\" width=\"717\" height=\"350\" \/>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: The resulting chart based on the entire data shows that the total number of orders received for papers was 1370.<\/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\/image99.png\" alt=\"image\" width=\"712\" height=\"376\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Drop <strong>Order Date<\/strong> to the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and choose <strong>Range of Dates<\/strong>.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image100.png\" alt=\"image\" width=\"569\" height=\"300\" \/><\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 4: Set the date interval from 1\/1\/2019 to 31\/12\/2019.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image101.png\" alt=\"image\" width=\"560\" height=\"260\" \/><\/strong><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 5: The number of orders received for papers within 2019 was 272.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image102.png\" alt=\"image\" width=\"708\" height=\"381\" \/><\/strong><\/p>\r\n\r\n<h2><a id=\"_Toc178253020\"><\/a><strong>Sorting <\/strong><strong>D<\/strong><strong>ata<\/strong><\/h2>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Tableau enables us to sort dimension members within a visualization. This sorting feature aids in organizing dimension members according to our preferences. Tableau provides five sorting methods, including the commonly used alphabetical and field-based methods. The field-based method, specifically, involves arranging dimension members in either ascending or descending order according to a field's value. This sorting allows us to quickly identify the most and least significant dimension members, particularly when their mark sizes in the visualization are not easily comparable. Additionally, it provides insights into how the values vary across different dimension members.<\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Suppose we aim to arrange the Sub-Category items in <strong>VIZ <\/strong><strong>10<\/strong> in descending sequence based on their no. of orders. To achieve this, firstly, click the down arrow next to the <strong>Sub-Category<\/strong> field available in the <strong>C<\/strong><strong>olumn<\/strong><strong>s<\/strong> shelf and choose <strong>Sort<\/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\/image103.png\" alt=\"image\" width=\"705\" height=\"385\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Next, click the drop-down that popped out to select <strong>Field<\/strong>.<\/p>\r\n<img class=\"aligncenter wp-image-130\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image104-e1728526157702.png\" alt=\"\" width=\"728\" height=\"354\" \/>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Lastly, select <strong>Descending<\/strong> and pick the correct <strong>Field Name<\/strong> and <strong>Type of Aggregation<\/strong> to ensure the visualization is sorted accordingly.<\/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\/image105.png\" alt=\"image\" width=\"292\" height=\"361\" \/><\/p>\r\n<p class=\"import-Normal\">The chart below displays <strong>VIZ 3<\/strong>, listing sub-category items sorted in descending order based on average sales.<\/p>\r\n<p class=\"import-Normal\"><img class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image106.png\" alt=\"image\" width=\"714\" height=\"387\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">Interestingly, in Tableau, dimension members can be sorted according to a field that is not directly visualized on the chart. For example, suppose we want to arrange the sub-category items in <strong>VIZ 10<\/strong> based on the average profit contributed by each, rather than their number of orders. In this case, we then can merely edit the sorting setting by switching the field selection to <strong>Profit<\/strong>, and setting the aggregation type to <strong>Average<\/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\/image107.png\" alt=\"image\" width=\"282\" height=\"349\" \/><\/p>\r\n<p class=\"import-Normal\" style=\"text-align: justify\">The sorting function in Tableau could lead users to interesting findings. For example, in the current <strong>VIZ 10<\/strong> where sub-category items are sorted by average profit, the analysis concludes the following:<\/p>\r\n\r\n<ul>\r\n \t<li>The no. of orders of the sub-category items is not proportional to their average profit; items with a decent no. of orders may not yield a promising average profit.<\/li>\r\n \t<li>Despite chairs, phones, and accessories generating substantial order volumes, they do not rank among the top profit-making items. This situation suggests the need for management to consider adjusting pricing or enhancing marketing and promotional strategies for these products.<\/li>\r\n<\/ul>\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\/image108.png\" alt=\"image\" width=\"706\" height=\"328\" \/><\/p>\r\n[h5p id=\"12\"]\r\n\r\n<\/div>","rendered":"<div class=\"chapter-3:-data-filtering-and-sorting\">\n<table>\n<tbody>\n<tr class=\"GridTable4-Accent5-R\" style=\"height: 0\">\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-2.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>Filter data based on the dimension, measure, or date fields<\/li>\n<li>Use the parameter feature to dynamically filter data<\/li>\n<li>Sort data effectively<\/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=\"_Toc178253007\"><\/a><strong>Filters<\/strong><\/h2>\n<p class=\"import-Normal\" style=\"text-align: justify\">Filters can be used to control the degree of information depicted in a visualisation. In other words, users can include and exclude the type or level of information displayed in a visualisation, allowing a focused investigation. Filters also allow users to make certain comparisons for decision-making purposes, e.g., comparison between a selected range of dimension members, comparison across a selected range of periods etc.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">A filter dialogue box appeared immediately once the users dropped a field to the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf. This dialogue box permits the users to set the characteristics of the filter. The available characteristics in each dialog box vary according to the type of field dropped to the filter shelf i.e. dimension, measure, or date field. The figure shows the summary of filter characteristics according to each field type.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-348\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P1.png\" alt=\"\" width=\"339\" height=\"428\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P1.png 507w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P1-238x300.png 238w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P1-65x82.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P1-225x284.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P1-350x442.png 350w\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" \/><\/p>\n<h2><a id=\"_Toc178253008\"><\/a><strong>Filtering <\/strong><strong>B<\/strong><strong>ased on <\/strong><strong>a D<\/strong><strong>imension <\/strong><strong>F<\/strong><strong>ield<\/strong><\/h2>\n<p class=\"import-Normal\" style=\"text-align: justify\">When a dimension field, is dropped to the filter shelf, a dialogue box pops out, with each tab in the dialogue box representing a characteristic that the user can set to the filter:<\/p>\n<ul>\n<li><strong>General<\/strong><strong> Tab<\/strong>: Users can use the <strong>General<\/strong> tab to choose the dimension members that they wish to include or exclude. You can control the exclusion or inclusion of the data points later with the help of a filter control card. Filter control card will appear together with the visualization once the users click the <strong>Show Filter<\/strong> option.<\/li>\n<li><strong>Wildcard<\/strong>: Users can use the <strong>Wildcard<\/strong> tab to filter the dimension members that follow a specific pattern. For example, when filtering on email addresses you might want to only include emails from a specific domain. You can define a wildcard filter that ends with &#8220;@ums.edu.my&#8221; to only include Universiti Malaysia Sabah email addresses.<\/li>\n<li><strong>Condition<\/strong>: The <strong>C<\/strong><strong>ondition<\/strong> tab can be used to only depict dimension members that satisfy certain rules. For example, in a visualization that shows the sub-category products vs. the sum of sales, users can opt to only depict sub-category products that made at least $140,000 in sales by defining the condition tab.<\/li>\n<li><strong>Top<\/strong>: The <strong>T<\/strong><strong>op<\/strong> tab can be used to show the top or bottom N dimension members in the visualization based on a measure field. For example, users can customize the <strong>Top<\/strong> tab to only show the top 5 sub-category products in terms of total sales.<\/li>\n<\/ul>\n<h3><a id=\"_Toc178253009\"><\/a><strong>Exercise <\/strong><strong>9<\/strong><\/h3>\n<p class=\"import-Normal\" style=\"text-align: justify\">With the help of the filter tool, create a bar graph that compares only the total sales between furniture and technology sub-category items.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution \u2013 Exercise 9<\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Drop the <strong>C<\/strong><strong>ategory<\/strong> and <strong>S<\/strong><strong>ub-<\/strong><strong>C<\/strong><strong>ategory<\/strong> fields to the <strong>C<\/strong><strong>olumn<\/strong><strong>s<\/strong> shelf and the <strong>S<\/strong><strong>ales<\/strong> field to the <strong>Rows<\/strong> shelf to create the intended graph. Name the sheet <strong>VIZ 8<\/strong>. Also, drop the <strong>S<\/strong><strong>ales<\/strong> field onto the <strong>L<\/strong><strong>abel<\/strong> <strong>C<\/strong><strong>ard<\/strong> to add the sales information in the <strong>VIZ 8<\/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\/image67.png\" alt=\"image\" width=\"706\" height=\"375\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: Drag and drop the <strong>C<\/strong><strong>ategory<\/strong> field onto the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf. In the dialog box that appears, under the <strong>General<\/strong> tab, include all the categories and click <strong>Apply<\/strong>, followed by <strong>OK<\/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\/image68.png\" alt=\"image\" width=\"358\" height=\"506\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Click the down arrow next to the <strong>Category<\/strong> field located in the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and choose <strong>Show Filter<\/strong> to display the filter control.<\/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\/image69.png\" alt=\"image\" width=\"262\" height=\"223\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 4: Check the <strong>Furniture<\/strong> and <strong>Technology<\/strong> categories in the filter control to compare the sales of sub-category items that belong to both Furniture and Technology categories.<\/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\/image70.png\" alt=\"image\" width=\"693\" height=\"327\" \/><\/p>\n<h3><a id=\"_Toc178253010\"><\/a><strong>Exercise <\/strong><strong>10<\/strong><\/h3>\n<p class=\"import-Normal\" style=\"text-align: justify\">Apply the condition filter on <strong>VIZ 8<\/strong> to identify sub-category items with total sales exceeding $100,000.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution- Exercise 10<\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Remove the existing filter in <strong>VIZ 8<\/strong> by clicking the down arrow next to the field available on the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf.<\/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\/image71.png\" alt=\"image\" width=\"182\" height=\"357\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: Drag and drop the <strong>Sub-Category<\/strong> field to the filter shelf. Choose the <strong>Condition<\/strong> tab in the dialogue box that appears. Under the <strong>Condition<\/strong> tab, select <strong>By <\/strong><strong>F<\/strong><strong>ield<\/strong> and set the values accordingly to meet our specifications.<\/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\/image72.png\" alt=\"image\" width=\"365\" height=\"529\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Click <strong>Apply<\/strong> and <strong>OK<\/strong> to only display sub-category items exceeding a total sale of $100,000. The analysis points out bookcases, chairs, tables, appliances, binders, storage, accessories, copiers, machines, and phones as items meeting the condition set.<\/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\/image73.png\" alt=\"image\" width=\"693\" height=\"324\" \/><\/p>\n<h3><a id=\"_Toc178253011\"><\/a><strong>Exercise 1<\/strong><strong>1<\/strong><\/h3>\n<p class=\"import-Normal\" style=\"text-align: justify\">Apply the top filter on <strong>VIZ 8<\/strong> to identify the top three sub-category items with the highest total sales.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution <\/strong><strong>\u2013 Exercise 11<\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Click the down arrow next to the <strong>S<\/strong><strong>ub-<\/strong><strong>C<\/strong><strong>ategory<\/strong> field available in the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf, and choose <strong>Edit <\/strong><strong>F<\/strong><strong>ilter<\/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\/image74.png\" alt=\"image\" width=\"204\" height=\"144\" \/><\/p>\n<p class=\"import-Normal\">Step 2: Under the <strong>C<\/strong><strong>ondition<\/strong> tab, select <strong>None <\/strong>to reset (remove) the condition setting.<\/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\/image75.png\" alt=\"image\" width=\"390\" height=\"245\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Switch to the <strong>Top<\/strong> tab, choose <strong>By field<\/strong>, and set the values according to the needs of the analysis.<\/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\/image76.png\" alt=\"image\" width=\"368\" height=\"537\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">The filtered chart identifies phones, chairs, and storage as the top-selling sub-category items, achieving total sales of $330,007, $328,449, and $223,844 respectively.<\/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\/image77.png\" alt=\"image\" width=\"709\" height=\"341\" \/><\/p>\n<h2><a id=\"_Toc178253012\"><\/a><strong>Using Parameter with Top N Filter<\/strong><\/h2>\n<p class=\"import-Normal\" style=\"text-align: justify\">A parameter can be combined with a Top N filter to dynamically adjust the &#8220;N&#8221; value without requiring users to repeatedly modify the &#8220;N&#8221; value in the filter settings. In Tableau, a parameter serves as a control mechanism that enables users to dynamically adjust an input value, resulting in corresponding adjustments to the visualization based on the selected parameter value. Parameters are highly beneficial for conducting what-if analyses, allowing users to observe visualization changes as input values are modified.<\/p>\n<h3><a id=\"_Toc178253013\"><\/a><strong>Exercise 1<\/strong><strong>2<\/strong><\/h3>\n<p class=\"import-Normal\" style=\"text-align: justify\">Based on <strong>VIZ 8<\/strong>, create a parameter to allow the user to switch the top N sub-category items, with N ranging from 1 to 10.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution \u2013 Exercise 12<\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Edit the <strong>Top N<\/strong> filter for sub-category by the choosing <strong>Create a New Parameter<\/strong> instead of entering a value like Top 1, 2, 3 etc.<\/p>\n<p class=\"import-Normal\" style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-104\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image78-e1728523969387.png\" alt=\"\" width=\"715\" height=\"378\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image78-e1728523969387.png 1920w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image78-e1728523969387-300x158.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image78-e1728523969387-1024x541.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image78-e1728523969387-768x406.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image78-e1728523969387-1536x811.png 1536w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image78-e1728523969387-65x34.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image78-e1728523969387-225x119.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image78-e1728523969387-350x185.png 350w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: The <strong>Create Parameter<\/strong> box pops out, in which we can customize the name and other features of the parameter. Name the parameter <strong>Top N Sub-Category<\/strong>, and set the range of values with 1 as the minimum and 10 as the maximum.<\/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\/image79.png\" alt=\"image\" width=\"365\" height=\"395\" \/><\/p>\n<p class=\"import-Normal\">Step 3: The parameter is created and appears in the <strong>D<\/strong><strong>ata <\/strong><strong>P<\/strong><strong>ane<\/strong> once the <strong>OK<\/strong> button is clicked.<\/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\/image80.png\" alt=\"image\" width=\"197\" height=\"472\" \/><\/p>\n<p class=\"import-Normal\">Step 4: Click the down arrow on the parameter and choose <strong>S<\/strong><strong>how <\/strong><strong>P<\/strong><strong>arameter<\/strong> to display the parameter control.<\/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\/image81.png\" alt=\"image\" width=\"386\" height=\"378\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 5 &#8211; The parameter control allows us to switch the input value, N, from 1 to 10 to display the top N category items. The visualization updates based on the selected value in the control.<\/p>\n<p class=\"import-Normal\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-350\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P2.png\" alt=\"\" width=\"704\" height=\"332\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P2.png 1261w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P2-300x142.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P2-1024x483.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P2-768x362.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P2-65x31.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P2-225x106.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P2-350x165.png 350w\" sizes=\"auto, (max-width: 704px) 100vw, 704px\" \/><\/p>\n<h2><a id=\"_Toc178253014\"><\/a><strong>Context <\/strong><strong>F<\/strong><strong>ilter<\/strong><\/h2>\n<p class=\"import-Normal\" style=\"text-align: justify\">Set the <strong>Top N Sub<\/strong><strong>&#8211;<\/strong><strong>Category<\/strong> parameter value in <strong>V<\/strong><strong>IZ<\/strong><strong> 8<\/strong> to 3. <strong>V<\/strong><strong>IZ<\/strong><strong> 8<\/strong> now shows the top 3 sub-category items with the highest sales. <strong>V<\/strong><strong>IZ<\/strong><strong> 8<\/strong> detects Phones from the Technology category, Storage from the Office Supplies category, and Chairs from the Furniture category as the top 3 sub-category items, regardless of the main Category that these items belong to.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-351\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P3.png\" alt=\"\" width=\"705\" height=\"331\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P3.png 1231w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P3-300x141.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P3-1024x480.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P3-768x360.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P3-65x30.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P3-225x105.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P3-350x164.png 350w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">However, assume that you now wish to find the top 3 sub-category items for each main category. As such, drop the <strong>C<\/strong><strong>ategory<\/strong> field to the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and locate it above the <strong>Sub-Category<\/strong> filter.<\/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\/image84.png\" alt=\"image\" width=\"240\" height=\"222\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Click <strong>S<\/strong><strong>how <\/strong><strong>F<\/strong><strong>ilter<\/strong> to display the filter control for <strong>Catego<\/strong><strong>r<\/strong><strong>y<\/strong> items and choose <strong>F<\/strong><strong>urniture<\/strong>. Repeat the process by only choosing the <strong>Office<\/strong><strong> Supplies<\/strong> and <strong>Technology<\/strong> categories. What did you notice? Is the visual showing the intended results?<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">We anticipate that the visualization will exhibit the top three sub-categories when each category is selected, but it behaves differently. For instance, when <strong>Furniture<\/strong> is chosen, only one sub-category is displayed. This occurs because Tableau initially applies the Top N Sub-category filter, scanning through the entirety of the data to identify the top three sub-category items before executing the second filter, which is the <strong>Category<\/strong> filter. Consequently, the second filter operates based on the results of the first filter.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-352\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P4.png\" alt=\"\" width=\"686\" height=\"329\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P4.png 1231w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P4-300x144.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P4-1024x492.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P4-768x369.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P4-65x31.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P4-225x108.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P4-350x168.png 350w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-353\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P5.png\" alt=\"\" width=\"699\" height=\"326\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P5.png 1219w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P5-300x140.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P5-1024x477.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P5-768x358.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P5-65x30.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P5-225x105.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P5-350x163.png 350w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-354\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P6.png\" alt=\"\" width=\"688\" height=\"322\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P6.png 1246w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P6-300x140.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P6-1024x478.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P6-768x359.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P6-65x30.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P6-225x105.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P6-350x163.png 350w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">To avoid this, we can use <strong>C<\/strong><strong>ontext <\/strong><strong>F<\/strong><strong>ilter<\/strong>. A context filter is a filter which is executed first before any other filters. When a filter is designated as a context filter, Tableau first applies that filter to the data and then uses the filtered data as the context for subsequent filters.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">In this scenario, we should designate the <strong>Category<\/strong> as the context filter. To do this, click the down arrow next to the <strong>Category<\/strong> field available in the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf, and select <strong>Add to Context<\/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\/image88.png\" alt=\"image\" width=\"210\" height=\"268\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">The <strong>Category<\/strong> field will then turn grey, indicating it is now a context filter.<\/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\/image89.png\" alt=\"image\" width=\"177\" height=\"114\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Now, choose the <strong>F<\/strong><strong>urniture<\/strong> option in the filter card. We can notice that the visualization now displays the intended results, showing the top three sub-category items for each category. What happens? When a category such as <strong>Furniture<\/strong> is chosen, Tableau filters the relevant data, and then performs the second filtering; it identifies the top three sub-categories solely based on the <strong>Furniture<\/strong> data filtered earlier.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-355\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P7.png\" alt=\"\" width=\"710\" height=\"331\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P7.png 1243w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P7-300x140.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P7-1024x478.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P7-768x358.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P7-65x30.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P7-225x105.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/C3-P7-350x163.png 350w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/p>\n<h3><a id=\"_Toc178253015\"><\/a><strong>Exercise <\/strong><strong>1<\/strong><strong>3<\/strong><\/h3>\n<p class=\"import-Normal\" style=\"text-align: justify\">Open a new worksheet and rename it to <strong>VIZ <\/strong><strong>9<\/strong>. Create a bar graph showing the sum of sales vs. cities. Apply a filter to identify the top 5 cities based on sales. Additionally, use a context filter to determine the top 5 cities specifically within the Arizona state.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solutions<\/strong><strong> \u2013 Exercise <\/strong><strong>13<\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: To create the desired graph, drop the <strong>City<\/strong> field to the <strong>Rows<\/strong> shelf and the <strong>Sales<\/strong> field to the <strong>C<\/strong><strong>olumn<\/strong><strong>s<\/strong> shelf. Rename the sheet to <strong>VIZ 9<\/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\/image91.png\" alt=\"image\" width=\"703\" height=\"383\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: Include the <strong>City<\/strong> field in the filter, then select <strong>Edit Filter<\/strong> to apply a Top N filter to identify cities with top five sales. The results indicate that, overall, New York City leads in total sales, followed by Los Angeles, Seattle, San Francisco, and Philadelphia.<\/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\/image92.png\" alt=\"image\" width=\"710\" height=\"377\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Drop the <strong>State<\/strong> field to the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and locate it above the <strong>City<\/strong> filter. Click the down arrow next to the <strong>State<\/strong> field available in the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and select <strong>Add to Context<\/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\/image93.png\" alt=\"image\" width=\"171\" height=\"89\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 4: Click <strong>Show Filter<\/strong> for <strong>State<\/strong>, and check <strong>Arizona<\/strong> in the filter card. The results indicate that Phoenix is the city with the highest sales in Arizona state, followed by Tucson, Gilbert, Mesa, and Glendale.<\/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\/image94.png\" alt=\"image\" width=\"709\" height=\"385\" \/><\/p>\n<div id=\"h5p-10\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-10\" class=\"h5p-iframe\" data-content-id=\"10\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Context Filter\"><\/iframe><\/div>\n<\/div>\n<h2><a id=\"_Toc178253016\"><\/a><strong>Filtering <\/strong><strong>B<\/strong><strong>ased on <\/strong><strong>a<\/strong> <strong>M<\/strong><strong>easure <\/strong><strong>F<\/strong><strong>ield<\/strong><\/h2>\n<p class=\"import-Normal\" style=\"text-align: justify\">When a measure field is added to the filter shelf, a dialogue box appears, providing users with the ability to display only dimension members that fall within a specified range of values. There are four filter options that can be applied to a measure field:<\/p>\n<ul>\n<li><strong>Range of Values<\/strong>: This option enables users to exhibit only the dimension members that lie within a chosen minimum and maximum value range. For example, users can choose to display only the sub-category items that achieved total sales between $100,000 and $200,000.<\/li>\n<li><strong>At Least<\/strong>: This option enables users to filter data to show only the dimension members that meet or exceed a specific threshold value. For example, users can choose to display only the sub-category items with total sales of at least $200,000.<\/li>\n<li><strong>At Most<\/strong>: This option enables users to display only the dimension members that have a value equal to or less than a specified threshold. For example, users can choose to show only the sub-category items with total sales of at most $200,000.<\/li>\n<li><strong>Specific<\/strong>: Utilize this option <a id=\"_Hlk158844346\"><\/a>to determine whether to include only null values, non-null values, or all values in your analysis.<\/li>\n<\/ul>\n<h3><a id=\"_Toc178253017\"><\/a><strong>Exercise 1<\/strong><strong>4<\/strong><\/h3>\n<p class=\"import-Normal\" style=\"text-align: justify\">Using a filter in <strong>V<\/strong><strong>IZ<\/strong> <strong>6<\/strong>, identify the customer who contributed a minimum total profit of $2000 or more.<\/p>\n<p class=\"import-Normal\"><strong>Solution \u2013 Exercise 14<\/strong><\/p>\n<p class=\"import-Normal\">Step 1: Drop the <strong>P<\/strong><strong>rofit<\/strong> field to the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and choose the <strong>At least<\/strong> option.<\/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\/image95.png\" alt=\"image\" width=\"500\" height=\"309\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: Set the threshold value as $2,000.<\/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\/image96.png\" alt=\"image\" width=\"505\" height=\"225\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Click <strong>OK<\/strong> once setting the targeted value to get the list of customers who contributed a minimum total profit of $2000 or more.<\/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\/image97.png\" alt=\"image\" width=\"697\" height=\"320\" \/><\/p>\n<div id=\"h5p-11\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-11\" class=\"h5p-iframe\" data-content-id=\"11\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Measure filter\"><\/iframe><\/div>\n<\/div>\n<h2><a id=\"_Toc178253018\"><\/a><strong>Filtering <\/strong><strong>B<\/strong><strong>ased on <\/strong><strong>a D<\/strong><strong>ate <\/strong><strong>F<\/strong><strong>ield<\/strong><\/h2>\n<p class=\"import-Normal\" style=\"text-align: justify\">The level of data in a visualization can also filtered based on a date field. When a date field is added to the filter shelf in Tableau, users are provided with five options to customize the date filter:<\/p>\n<ul>\n<li><strong>Relative Date<\/strong>: This option allows users to incorporate data from a number of days, weeks, months, or years preceding or following a particular date.<\/li>\n<li><strong>Range of Dates<\/strong>: This option includes data within a selected range of two dates.<\/li>\n<li><strong>Starting Date<\/strong>: This option includes data from a specific date onwards.<\/li>\n<li><strong>Ending Date<\/strong>: This option includes data up to a particular date.<\/li>\n<li><strong>Specific<\/strong>: This option determines whether to include only null dates, non-null dates, or all values in the analysis.<\/li>\n<\/ul>\n<h3><a id=\"_Toc178253019\"><\/a><strong>Exercise 1<\/strong><strong>5<\/strong><\/h3>\n<p class=\"import-Normal\" style=\"text-align: justify\">Create a bar graph showing no. of orders per sub category item. Rename the sheet to <strong>VIZ <\/strong><strong>10<\/strong>. What is the total number of orders received for papers? Next, using the <strong>Order Date<\/strong> as a filter, determine the number of orders received for papers in 2019 alone.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong>Solution \u2013 Exercise 15<\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 1: Drop the <strong>Sub-Category<\/strong> field to the <strong>Columns<\/strong> shelf and the <strong>Order ID<\/strong> to the <strong>Rows<\/strong> shelf. Set the aggregation measure of <strong>Order ID<\/strong> to <strong>Count<\/strong>. This allows Tableau to compute and display the number of orders received for each sub-category item.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-124\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image98-e1728525861921.png\" alt=\"\" width=\"717\" height=\"350\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image98-e1728525861921.png 1920w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image98-e1728525861921-300x146.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image98-e1728525861921-1024x500.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image98-e1728525861921-768x375.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image98-e1728525861921-1536x750.png 1536w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image98-e1728525861921-65x32.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image98-e1728525861921-225x110.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image98-e1728525861921-350x171.png 350w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 2: The resulting chart based on the entire data shows that the total number of orders received for papers was 1370.<\/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\/image99.png\" alt=\"image\" width=\"712\" height=\"376\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 3: Drop <strong>Order Date<\/strong> to the <strong>F<\/strong><strong>ilter<\/strong><strong>s<\/strong> shelf and choose <strong>Range of Dates<\/strong>.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image100.png\" alt=\"image\" width=\"569\" height=\"300\" \/><\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 4: Set the date interval from 1\/1\/2019 to 31\/12\/2019.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image101.png\" alt=\"image\" width=\"560\" height=\"260\" \/><\/strong><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Step 5: The number of orders received for papers within 2019 was 272.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\"><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image102.png\" alt=\"image\" width=\"708\" height=\"381\" \/><\/strong><\/p>\n<h2><a id=\"_Toc178253020\"><\/a><strong>Sorting <\/strong><strong>D<\/strong><strong>ata<\/strong><\/h2>\n<p class=\"import-Normal\" style=\"text-align: justify\">Tableau enables us to sort dimension members within a visualization. This sorting feature aids in organizing dimension members according to our preferences. Tableau provides five sorting methods, including the commonly used alphabetical and field-based methods. The field-based method, specifically, involves arranging dimension members in either ascending or descending order according to a field&#8217;s value. This sorting allows us to quickly identify the most and least significant dimension members, particularly when their mark sizes in the visualization are not easily comparable. Additionally, it provides insights into how the values vary across different dimension members.<\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Suppose we aim to arrange the Sub-Category items in <strong>VIZ <\/strong><strong>10<\/strong> in descending sequence based on their no. of orders. To achieve this, firstly, click the down arrow next to the <strong>Sub-Category<\/strong> field available in the <strong>C<\/strong><strong>olumn<\/strong><strong>s<\/strong> shelf and choose <strong>Sort<\/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\/image103.png\" alt=\"image\" width=\"705\" height=\"385\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Next, click the drop-down that popped out to select <strong>Field<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-130\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image104-e1728526157702.png\" alt=\"\" width=\"728\" height=\"354\" srcset=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image104-e1728526157702.png 1920w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image104-e1728526157702-300x146.png 300w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image104-e1728526157702-1024x498.png 1024w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image104-e1728526157702-768x374.png 768w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image104-e1728526157702-1536x747.png 1536w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image104-e1728526157702-65x32.png 65w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image104-e1728526157702-225x109.png 225w, https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image104-e1728526157702-350x170.png 350w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Lastly, select <strong>Descending<\/strong> and pick the correct <strong>Field Name<\/strong> and <strong>Type of Aggregation<\/strong> to ensure the visualization is sorted accordingly.<\/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\/image105.png\" alt=\"image\" width=\"292\" height=\"361\" \/><\/p>\n<p class=\"import-Normal\">The chart below displays <strong>VIZ 3<\/strong>, listing sub-category items sorted in descending order based on average sales.<\/p>\n<p class=\"import-Normal\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-content\/uploads\/sites\/190\/2024\/10\/image106.png\" alt=\"image\" width=\"714\" height=\"387\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">Interestingly, in Tableau, dimension members can be sorted according to a field that is not directly visualized on the chart. For example, suppose we want to arrange the sub-category items in <strong>VIZ 10<\/strong> based on the average profit contributed by each, rather than their number of orders. In this case, we then can merely edit the sorting setting by switching the field selection to <strong>Profit<\/strong>, and setting the aggregation type to <strong>Average<\/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\/image107.png\" alt=\"image\" width=\"282\" height=\"349\" \/><\/p>\n<p class=\"import-Normal\" style=\"text-align: justify\">The sorting function in Tableau could lead users to interesting findings. For example, in the current <strong>VIZ 10<\/strong> where sub-category items are sorted by average profit, the analysis concludes the following:<\/p>\n<ul>\n<li>The no. of orders of the sub-category items is not proportional to their average profit; items with a decent no. of orders may not yield a promising average profit.<\/li>\n<li>Despite chairs, phones, and accessories generating substantial order volumes, they do not rank among the top profit-making items. This situation suggests the need for management to consider adjusting pricing or enhancing marketing and promotional strategies for these products.<\/li>\n<\/ul>\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\/image108.png\" alt=\"image\" width=\"706\" height=\"328\" \/><\/p>\n<div id=\"h5p-12\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-12\" class=\"h5p-iframe\" data-content-id=\"12\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Sorting\"><\/iframe><\/div>\n<\/div>\n<\/div>\n","protected":false},"author":131,"menu_order":3,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-135","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/chapters\/135","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":9,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/chapters\/135\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/chapters\/135\/revisions\/364"}],"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\/135\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/pressbooks\/v2\/chapter-type?post=135"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/wp\/v2\/contributor?post=135"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/essentialsofdatavisualizationwithtableau\/wp-json\/wp\/v2\/license?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}