{"id":245,"date":"2017-10-23T07:24:36","date_gmt":"2017-10-23T07:24:36","guid":{"rendered":"https:\/\/sprintmilestone.com\/blog\/?p=245"},"modified":"2018-01-03T13:13:17","modified_gmt":"2018-01-03T13:13:17","slug":"grouping-by-at-different-level-than-analysis-view-in-tableau","status":"publish","type":"post","link":"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/","title":{"rendered":"Grouping by at different level than analysis view in Tableau"},"content":{"rendered":"<p><span style=\"color: #000000;\">Many a times there is a need in our analyses to aggregate the measures at a different level than what is shown in the view. For example, if we drag a column called Region and then Sales then the measure value will be returned as per each Region:<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"246\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/1-normal-grouping\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/1.-Normal-Grouping.png?fit=365%2C182&amp;ssl=1\" data-orig-size=\"365,182\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"1. Normal Grouping\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/1.-Normal-Grouping.png?fit=300%2C150&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/1.-Normal-Grouping.png?fit=365%2C182&amp;ssl=1\" class=\"alignnone size-medium wp-image-246\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/1.-Normal-Grouping.png?resize=300%2C150&#038;ssl=1\" alt=\"\" width=\"300\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/1.-Normal-Grouping.png?resize=300%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/1.-Normal-Grouping.png?w=365&amp;ssl=1 365w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><!--more--><\/p>\n<p><span style=\"color: #000000;\">However, if we introduce another column called Customer Name, then the sales figures will be grouped by Region and Customer Name:<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"247\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/2-grouping-customer-level\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/2.-Grouping-Customer-Level.png?fit=398%2C388&amp;ssl=1\" data-orig-size=\"398,388\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"2. Grouping Customer Level\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/2.-Grouping-Customer-Level.png?fit=300%2C292&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/2.-Grouping-Customer-Level.png?fit=398%2C388&amp;ssl=1\" class=\"alignnone size-medium wp-image-247\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/2.-Grouping-Customer-Level.png?resize=300%2C292&#038;ssl=1\" alt=\"\" width=\"300\" height=\"292\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/2.-Grouping-Customer-Level.png?resize=300%2C292&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/2.-Grouping-Customer-Level.png?w=398&amp;ssl=1 398w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Now suppose if we want to calculate the count of customers billed or count of customers as per a type of billing and we want to calculate that without keeping customer column in the view.<\/span><\/p>\n<p><span style=\"color: #000000;\">For example, count of customers for every type of billing over every region, then it becomes an issue as we don\u2019t want to show customer column but the aggregation needs to be done at customer level.<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><strong><span style=\"color: #000000;\">Requirement<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">There was a requirement to calculate the count of customers for every type of Invoice type for every region.<\/span><\/p>\n<p><span style=\"color: #000000;\">Mock data looks like below:<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"248\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/3-sample-data\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/3.-Sample-Data.png?fit=624%2C284&amp;ssl=1\" data-orig-size=\"624,284\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"3. Sample Data\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/3.-Sample-Data.png?fit=300%2C137&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/3.-Sample-Data.png?fit=624%2C284&amp;ssl=1\" class=\"alignnone size-medium wp-image-248\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/3.-Sample-Data.png?resize=300%2C137&#038;ssl=1\" alt=\"\" width=\"300\" height=\"137\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/3.-Sample-Data.png?resize=300%2C137&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/3.-Sample-Data.png?w=624&amp;ssl=1 624w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">There are Region, Customer ID, Invoice Number, Invoice Type and Period columns.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">\u00a0<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0<\/span><\/p>\n<p><strong><span style=\"color: #000000;\">Solution:<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">After connecting to Data Source, the first step was to create a calculated field called \u201cCount of Invoice\u201d. It counts the distinct Invoice Number.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"249\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/4-count-of-invoice\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/4.-Count-of-Invoice.png?fit=566%2C164&amp;ssl=1\" data-orig-size=\"566,164\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"4. Count of Invoice\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/4.-Count-of-Invoice.png?fit=300%2C87&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/4.-Count-of-Invoice.png?fit=566%2C164&amp;ssl=1\" class=\"alignnone size-medium wp-image-249\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/4.-Count-of-Invoice.png?resize=300%2C87&#038;ssl=1\" alt=\"\" width=\"300\" height=\"87\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/4.-Count-of-Invoice.png?resize=300%2C87&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/4.-Count-of-Invoice.png?w=566&amp;ssl=1 566w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Now create another calculated field called \u201cCount of Invoice Type\u201d on top of the calculated field \u201cCount of Invoice\u201d. This field will be used to count of type of Invoices.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"250\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/5-count-of-invoice-type\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/5.-Count-of-Invoice-Type.png?fit=576%2C158&amp;ssl=1\" data-orig-size=\"576,158\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"5. Count of Invoice Type\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/5.-Count-of-Invoice-Type.png?fit=300%2C82&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/5.-Count-of-Invoice-Type.png?fit=576%2C158&amp;ssl=1\" class=\"alignnone size-medium wp-image-250\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/5.-Count-of-Invoice-Type.png?resize=300%2C82&#038;ssl=1\" alt=\"\" width=\"300\" height=\"82\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/5.-Count-of-Invoice-Type.png?resize=300%2C82&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/5.-Count-of-Invoice-Type.png?w=576&amp;ssl=1 576w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Now create analysis in Tableau with Customer ID column in the view.:<\/span><\/p>\n<p><strong><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"251\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/6-analysis\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/6.-Analysis.png?fit=648%2C295&amp;ssl=1\" data-orig-size=\"648,295\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"6. Analysis\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/6.-Analysis.png?fit=300%2C137&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/6.-Analysis.png?fit=648%2C295&amp;ssl=1\" class=\"alignnone wp-image-251\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/6.-Analysis.png?resize=449%2C205&#038;ssl=1\" alt=\"\" width=\"449\" height=\"205\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/6.-Analysis.png?resize=300%2C137&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/6.-Analysis.png?w=648&amp;ssl=1 648w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">Please note that you will have to include Customer ID into the view otherwise the result of Count of Invoice Type will always be 1 as shown below:<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"252\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/7-analysis-without-customer-id\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/7.-Analysis-without-Customer-ID.png?fit=595%2C303&amp;ssl=1\" data-orig-size=\"595,303\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"7. Analysis without Customer ID\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Aggregating at different levels&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/7.-Analysis-without-Customer-ID.png?fit=300%2C153&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/7.-Analysis-without-Customer-ID.png?fit=595%2C303&amp;ssl=1\" class=\"alignnone size-medium wp-image-252\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/7.-Analysis-without-Customer-ID.png?resize=300%2C153&#038;ssl=1\" alt=\"\" width=\"300\" height=\"153\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/7.-Analysis-without-Customer-ID.png?resize=300%2C153&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/7.-Analysis-without-Customer-ID.png?w=595&amp;ssl=1 595w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><strong><span style=\"color: #000000;\">\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">Go to Analysis Menu-&gt;Totals-&gt;Add All Subtotals:<\/span><\/p>\n<p><span style=\"color: #000000;\">This will add subtotals for each Region.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"253\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/8-add-subtotals\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/8.-Add-Subtotals.png?fit=598%2C233&amp;ssl=1\" data-orig-size=\"598,233\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"8. Add Subtotals\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/8.-Add-Subtotals.png?fit=300%2C117&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/8.-Add-Subtotals.png?fit=598%2C233&amp;ssl=1\" class=\"alignnone wp-image-253\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/8.-Add-Subtotals.png?resize=323%2C126&#038;ssl=1\" alt=\"\" width=\"323\" height=\"126\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/8.-Add-Subtotals.png?resize=300%2C117&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/8.-Add-Subtotals.png?w=598&amp;ssl=1 598w\" sizes=\"auto, (max-width: 323px) 100vw, 323px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">Now we have got the numbers that we wanted. But the Issue now is that we want to get rid of the Customer ID column from the View.<\/span><\/p>\n<p><span style=\"color: #000000;\">Next step is to select all Customer ID values (Shift + Left Mouse Click or Click on the Customer ID value and CTRL+A):<\/span><\/p>\n<p><span style=\"color: #000000;\">This will select all rows.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"254\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/9-select-all-rows\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/9.-Select-All-Rows.png?fit=624%2C338&amp;ssl=1\" data-orig-size=\"624,338\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"9. Select All Rows\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/9.-Select-All-Rows.png?fit=300%2C163&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/9.-Select-All-Rows.png?fit=624%2C338&amp;ssl=1\" class=\"alignnone wp-image-254\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/9.-Select-All-Rows.png?resize=359%2C195&#038;ssl=1\" alt=\"\" width=\"359\" height=\"195\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/9.-Select-All-Rows.png?resize=300%2C163&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/9.-Select-All-Rows.png?w=624&amp;ssl=1 624w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/span><\/p>\n<p><strong><span style=\"color: #000000;\">\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">Now right click anywhere on the Customer ID values and select Hide. This will keep the calculation still at the Customer ID level but will hide the rows:<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"255\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/10-right-click-and-hide\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/10.-Right-Click-and-Hide.png?fit=528%2C278&amp;ssl=1\" data-orig-size=\"528,278\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"10. Right Click and Hide\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/10.-Right-Click-and-Hide.png?fit=300%2C158&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/10.-Right-Click-and-Hide.png?fit=528%2C278&amp;ssl=1\" class=\"alignnone size-medium wp-image-255\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/10.-Right-Click-and-Hide.png?resize=300%2C158&#038;ssl=1\" alt=\"\" width=\"300\" height=\"158\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/10.-Right-Click-and-Hide.png?resize=300%2C158&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/10.-Right-Click-and-Hide.png?w=528&amp;ssl=1 528w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">The result we will get looks like below:<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"256\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/11-rows-hidden\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/11.-Rows-Hidden.png?fit=561%2C232&amp;ssl=1\" data-orig-size=\"561,232\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"11. Rows Hidden\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/11.-Rows-Hidden.png?fit=300%2C124&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/11.-Rows-Hidden.png?fit=561%2C232&amp;ssl=1\" class=\"alignnone wp-image-256\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/11.-Rows-Hidden.png?resize=348%2C144&#038;ssl=1\" alt=\"\" width=\"348\" height=\"144\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/11.-Rows-Hidden.png?resize=300%2C124&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/11.-Rows-Hidden.png?w=561&amp;ssl=1 561w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/span><\/p>\n<p><strong><span style=\"color: #000000;\">\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">The above Result looks good but still there is Customer ID column visible in the view.<\/span><\/p>\n<p><span style=\"color: #000000;\">Right click on any Total text and uncheck Show Header:<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"257\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/12-hide-header\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/12.-Hide-Header.png?fit=443%2C198&amp;ssl=1\" data-orig-size=\"443,198\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"12. Hide Header\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/12.-Hide-Header.png?fit=300%2C134&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/12.-Hide-Header.png?fit=443%2C198&amp;ssl=1\" class=\"alignnone size-medium wp-image-257\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/12.-Hide-Header.png?resize=300%2C134&#038;ssl=1\" alt=\"\" width=\"300\" height=\"134\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/12.-Hide-Header.png?resize=300%2C134&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/12.-Hide-Header.png?w=443&amp;ssl=1 443w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">This will remove the Customer ID column from the view and we will be left with the result:<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Times New Roman;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"258\" data-permalink=\"https:\/\/sprintmilestone.com\/blog\/2017\/10\/23\/grouping-by-at-different-level-than-analysis-view-in-tableau\/13-final-analysis\/\" data-orig-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/13.-Final-Analysis.png?fit=538%2C161&amp;ssl=1\" data-orig-size=\"538,161\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"13. Final Analysis\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/13.-Final-Analysis.png?fit=300%2C90&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/13.-Final-Analysis.png?fit=538%2C161&amp;ssl=1\" class=\"alignnone wp-image-258\" src=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/13.-Final-Analysis.png?resize=353%2C106&#038;ssl=1\" alt=\"\" width=\"353\" height=\"106\" srcset=\"https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/13.-Final-Analysis.png?resize=300%2C90&amp;ssl=1 300w, https:\/\/i0.wp.com\/sprintmilestone.com\/blog\/wp-content\/uploads\/2017\/10\/13.-Final-Analysis.png?w=538&amp;ssl=1 538w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Please note that the Customer ID column is still there in the analysis but not visible in the front View.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Get Started with a <a href=\"https:\/\/www.tableau.com\/partner-trial?id=31093\">Tableau Trial<\/a> today<\/p>\n<p>&nbsp;<\/p>\n<p>Some more exciting products that we are partner with:<\/p>\n<p><a href=\"http:\/\/hub.lavastorm.com\/download-dataverse-desktop-now?utm_campaign=Sprint%20Milestone&amp;utm_source=Sprint%20Milestone&amp;utm_medium=Partner\">Download a Lavastorm Dataverse Trial Today<\/a> &amp; <a href=\"https:\/\/www.wherescape.com\/\">Wherescape<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many a times there is a need in our analyses to aggregate the measures at a different level than what is shown in the view. For example, if we drag a column called Region and then Sales then the measure value will be returned as per each Region:<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_wpscppro_dont_share_socialmedia":false,"_wpscppro_custom_social_share_image":0,"_facebook_share_type":"","_twitter_share_type":"","_linkedin_share_type":"","_pinterest_share_type":"","_linkedin_share_type_page":"","_instagram_share_type":"","_medium_share_type":"","_threads_share_type":"","_google_business_share_type":"","_selected_social_profile":[],"_wpsp_enable_custom_social_template":false,"_wpsp_social_scheduling":{"enabled":false,"datetime":null,"platforms":[],"status":"template_only","dateOption":"today","timeOption":"now","customDays":"","customHours":"","customDate":"","customTime":"","schedulingType":"absolute"},"_wpsp_active_default_template":true},"categories":[1],"tags":[],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-uncategorized","no-thumb"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/penSqB-3X","_links":{"self":[{"href":"https:\/\/sprintmilestone.com\/blog\/wp-json\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sprintmilestone.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sprintmilestone.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sprintmilestone.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/sprintmilestone.com\/blog\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":6,"href":"https:\/\/sprintmilestone.com\/blog\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":275,"href":"https:\/\/sprintmilestone.com\/blog\/wp-json\/wp\/v2\/posts\/245\/revisions\/275"}],"wp:attachment":[{"href":"https:\/\/sprintmilestone.com\/blog\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sprintmilestone.com\/blog\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sprintmilestone.com\/blog\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}