User Tools

Site Tools


help-wiki:making_a_pivot_table

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
help-wiki:making_a_pivot_table [2023/08/31 10:41]
cds4byu
help-wiki:making_a_pivot_table [2023/09/01 09:54] (current)
cds4byu
Line 5: Line 5:
   -Open the csv file in Excel   -Open the csv file in Excel
   -Save the file as an xlsx file.  This is necessary if you want to use advanced pivot table features.   -Save the file as an xlsx file.  This is necessary if you want to use advanced pivot table features.
-  -Click somewhere in the data list in the file.  From the Insert menu, select Table.  In the popup window, make sure the proper data is selected, and the "My table has headers" box is checked.  Click OK. +  -Click somewhere in the data list in the file.  From the Insert menu, select Table.  In the popup window, make sure the proper data is selected, and the "My table has headers" box is checked.  Click OK.{{ :help-wiki:screenshot_12_.jpg?direct&400 |}} 
-  -From the Insert menu, select Pivot Table.  In the popup window, make sure you have the "Select a table or range" option button checked, and the table should be Table1 (the newly created table from the previous step.  Make sure the "New Worksheet" option button is selected.  Make sure the "Add the data to the Data Model" checkbox is checked.  Click OK. +  -From the Insert menu, select Pivot Table.  In the popup window, make sure you have the "Select a table or range" option button checked, and the table should be Table1 (the newly created table from the previous step.  Make sure the "New Worksheet" option button is selected.  Make sure the "Add the data to the Data Model" checkbox is checked.  Click OK.{{ :help-wiki:screenshot_6_.png?direct&400 |}} 
-  -The new sheet in which the Pivot Table is created will become the active sheet.  On the right hand side of the sheet is a window  showing the pivot table fields.  Click on the name of the field that should be the row labels (not the check box) and drag it to the Rows window.  Do the same for the field that should be the column labels.+  -The new sheet in which the Pivot Table is created will become the active sheet.  On the right hand side of the sheet is a window  showing the pivot table fields.  Click on the name of the field that should be the row labels (not the check box) and drag it to the Rows window.  Do the same for the field that should be the column labels.{{ :help-wiki:screenshot_14_.png?direct&400 |}}
   -If the data to be placed in the Values area is numeric, click on the name of the field and drag it to the Values window.  You may wish to change the formula in the value field from Sum of Values (default) to something else (Count, Maximum, Minimum, Average, etc.)   -If the data to be placed in the Values area is numeric, click on the name of the field and drag it to the Values window.  You may wish to change the formula in the value field from Sum of Values (default) to something else (Count, Maximum, Minimum, Average, etc.)
   -If the data to be placed in the Values area is text (like NetID), you will need to create a new Measure for that data, as follows:   -If the data to be placed in the Values area is text (like NetID), you will need to create a new Measure for that data, as follows:
-    -Right-click on Table 1 in the field list, and select Add Measure +    -Right-click on Table 1 in the field list, and select Add Measure{{ :help-wiki:screenshot_15_.png?direct&400 |}} 
-    -When the Measure window pops up, type in a measure name (List of NetIDs in this example; you can make it be whatever you want).  Enter the following formula in the Formula window: =ConcatenateX(Table1, Table1[NetID], ", "). Note that Table1 is the name of the data table from which the pivot table is created, and NetID is the name of the text field you wish to display in the values area of the pivot table. Change the name of the data table and/or the text field as needed for your situation.+    -When the Measure window pops up, type in a measure name (List of NetIDs in this example; you can make it be whatever you want).  Enter the following formula in the Formula window: <code>=ConcatenateX(Table1, Table1[NetID], ", ")</code>. Note that Table1 is the name of the data table from which the pivot table is created, and NetID is the name of the text field you wish to display in the values area of the pivot table. Change the name of the data table and/or the text field as needed for your situation.{{ :help-wiki:screenshot_16_.png?direct&400 |}}
     -Click OK on the Measure window     -Click OK on the Measure window
-    -Now, go to the Pivot Table Fields list, and you should have a new field to choose from.  Select the checkbox for the field, and it will go into the Values area. +    -Now, go to the Pivot Table Fields list, and you should have a new field to choose from.  Select the checkbox for the field, and it will go into the Values area.{{ :help-wiki:screenshot_18_.png?direct&400 |}} 
-    -Turn off the row and column totals by selecting Pivot Table, Options, then the Totals & Filters tab, and clearing the Show grand totals for rows and Show grand totals for columns checkboxes.  Then click OK+    -Turn off the row and column totals by selecting Pivot Table, Options, then the Totals & Filters tab, and clearing the Show grand totals for rows and Show grand totals for columns checkboxes.  Then click OK {{ :help-wiki:clear_totals_2_.png?direct&400 |}}
  
 That should do it.  You now have a pivot table.  You can copy and paste the data anywhere it is needed. That should do it.  You now have a pivot table.  You can copy and paste the data anywhere it is needed.
- 
- 
-    - 
  
  
help-wiki/making_a_pivot_table.1693500072.txt.gz · Last modified: 2023/08/31 10:41 by cds4byu