Sierra Pacific Community College District (SPCCD) analyzes departmental course fees. The source data is stored in separate XML files, and you plan to merge the queries.
[Student Learning Outcomes 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7]
Files Needed: XML_SPCCDept-10.xml and XML_SPCCFees-10.xml; companion files XML_SPCCDept-10.xsd and XML_SPCCFees-10.xsd must be accessible. (GP-E10-2.zip) (Student data files are available in the Library of your SIMnet account.)
Completed Project File Name: [your initials] Excel 10-2.xlsx
Skills Covered in This Project
- Get XML data in Power Query.
- Merge queries.
- Manipulate data in Power Query.
- Create a custom column in Power Query.
- Create a PivotTable from the data model.
- Use PivotTable tools.
- Create a PivotChart from the data model.
- Build a dashboard.
- Open a new workbook and save it as [your initials] Excel 10-2.
- Launch Power Query.
- Click the Get Data button [Data tab, Get & Transform Data group].
- Choose Launch Power Query Editor.
- Expand the Navigator Pane if it is collapsed.
- Get XML data in Power Query.
- Click the New Source button [Home tab, New Query group] to displays its options.
- Select File and then choose XML.
- Navigate to the folder with XML_SPCCDept-10, select the file name, and click Import. The Navigator window does not preview data for XML files.
- Click OK to import the data. Fields are not automatically expanded in an XML file. (Refresh data if prompted.)
- Click the New Source button [Home tab, New Query group] again and import XML_SPCCFees-10. Both queries are listed in the Navigator Pane (Figure 10-78).
- Transform data in Power Query.
- Select the XML_SPCCDept-10 query name in the Navigator Pane.
- Click the http://…Schema… column header (second column), press Ctrl, and click the Attribute:generated header (third column).
- Click the Remove Columns button [Home tab, Manage Columns group].
- Click the Expand/Aggregate button next to the SPCCDept-10 column header.
- Verify that the Expand button is selected, that all fields are selected and click OK.
- Click the SPCCDept-10.ID column label, click the Data Type button [Home tab, Transform group], and choose Whole Number.
- Click the SPCCDept-10.Course… label in the third column. Note that the Data Type [Home tab, Transform group] is Text. Leave this field as text for use in a custom column in a later step.
- Select the …Hours and …Sections columns and set the data type to Whole Number (Figure 10-79).
- Display the XML_SPCCFees-10 query.
- Select and remove the http://…Schema… and the Attribute:generated fields.
- Click the Expand/Aggregate button and display the data.
- Change the ID and Fee columns to Whole Number data type.
- Merge queries.
- Display the XML_SPCCDept-10 query.
- Click the Merge Queries drop-down arrow [Home tab, Combine group] and select Merge Queries as New.
- Select the ID field as the common field in XML_SPCCDept-10.
- Click the drop-down list for the related query and choose XML_SPCCFees-10.
- Select the ID field as the common field.
- Verify that the Join Kind is Left Outer and click OK (Figure 10-80). The new query name is Merge1.
- Expand and display the data from XML_SPCCFees-10 in the merged query.
- Create a custom column with a multiplication formula.
- Select and remove the SPCCDept-10…Hours field. The credit hours field is not necessary in your analysis.
- Remove the XML_SPCCFees-10…ID field.
- Click the Custom Column button [Add Column tab, General group].
- Type Fees Collected as the New column name.
- Click after the = symbol in the Custom column formula box.
- Double-click the field name for Sections in the Available columns list.
- Type * to multiply.
- Double-click the field name for Fee in the Available columns list (Figure 10-81).
- Click OK. The new column displays at the right.
- Create a custom column with a concatenated text expression.
- Click the Custom Column button [Add Column tab, General group].
- Type Code as the New column name.
- Click after the = symbol in the Custom column formula box.
- Double-click the field name for Dept in the Available columns list.
- Type & (an ampersand) to concatenate fields.
- Type “ ” (quotation mark, space, quotation mark) to place a space in the custom field.
- Type & to join the next field.
- Double-click the name for the Course Number field in the Available columns list.
- Compare your formula to the following:

- Click OK. The custom column joins the department name and course number in a single field.
- Remove and reposition fields in a query.
- Select the …Dept field, press Ctrl and select …Course Number field (second and third columns).
- Remove the selected columns.
- Point to the Code column header and drag the column to be the second field in the query.
- Reposition the Fees Collected column as the fourth column (Figure 10-82).
- Load query data and format the Excel table.
- Click the Close & Load button [Home tab, Close group]. Each query is loaded to the workbook on its own sheet.
- Confirm that the Merge1 sheet is active. The table includes the Code column.
- Rename the sheet as Merge1 if it was not automatically named.
- Format columns D and F as Currency with two decimals.
- Edit the column header for column C to Course Name.
- Edit the column header for column E to # of Sections.
- Edit the column header for column F to Fee.
- Hide column A.
- AutoFit all columns.
- Create a PivotTable from the data model.
- Select the XML_SPCCDept-10 worksheet tab; its table displays six columns. Rename the sheet as XML_SPCCDept-10 if necessary.
- Click a cell in the table and click the Summarize with PivotTable button [Table Design tab, Tools group].
- Confirm the table range and that the New Worksheet button is selected.
- Select the Add this data to the Data Model box and click OK.
- Close the Queries & Connections pane.
- Expand the field list in the PivotTable Fields pane if it is not expanded.
- Select the Dept, Course Name, and Sections boxes to place the fields in the PivotTable layout. (Point to a field name in the pane to see the complete name.)
- Click All at the top of the PivotTable Fields pane and expand the XML_SPCCFees-10 list.
- Select the Fee box to add it to the PivotTable layout.
- Click Auto-Detect. No relationship is found.
- Click Manage Relationships and click New.
- Click the Table drop-down list and choose Data Model Table: XML_SPCCFees_10.
- Click the Column (Foreign) drop-down list and choose SPCCFees-10.ID.
- Select the …Dept_10 table as the Related Table with the ID column (Figure 10-83).
- Click OK and then click Close.
- Name the sheet tab Dashboard.
- Format and move a PivotTable.
- Click the Report Layout button [Design tab, Layout group] and choose Show in Tabular Form.
- Select cell A3, type Dept, and press Tab.
- Select cell B3, type Course Name, and press Tab.
- Select cell C3, type # of Sections, and press Tab.
- Edit the label in cell D3 to Course Fee.
- Click the More button [Design tab, PivotTable Styles group] and choose White, Pivot Style Light 22.
- Select the Banded Rows box [Design tab, PivotTable Style Options group].
- Click the PivotTable Name box [PivotTable Analyze tab, PivotTable group] and name the table pvtSections.
- Click the Select button [PivotTable Analyze tab, Actions group] and select Entire PivotTable.
- Click the Move PivotTable button [PivotTable Analyze tab, Actions group], select cell C3, and click OK (Figure 10-84).
- AutoFit the columns in the PivotTable.
- Select a cell in column F and format the field settings as Currency with two decimal places.
- Click the Grand Totals button [Design tab, Layout group] and turn off all totals.
- Copy and build a PivotTable.
- Click the Select button [PivotTable Analyze tab, Actions group] and select the PivotTable.
- Copy and paste the PivotTable to cell H3. Press Esc to remove the border.
- Click the PivotTable Name box [PivotTable Analyze tab, PivotTable group] and name the copied table pvtFees.
- Expand the Merge1 field list in the PivotTable Fields pane.
- Select the Fees Collected box to place the field in the PivotTable layout.
- Click Auto-Detect. The relationship is found.
- Close the dialog box.
- Remove the # of Sections and the Course Fee fields from PivotTable Field List pane.
- Format a PivotTable.
- Select cell J3 and change the label to Total Fees.
- Format the values in column J as Currency with two decimal places.
- Click the Subtotals button [Design tab, Layout group] and show subtotals at the bottom of each group.
- Insert and connect a slicer on the dashboard.
- Set the width of column A to 35.
- Click cell C3 and click the Insert Slicer button [PivotTable Analyze tab, Filter group].
- Select the Dept box in the XML_SPCCDept_10 list and click OK.
- Position the slicer window to start at cell A3.
- Size the slicer window to display all items.
- Apply White, Slicer Style Dark 3.
- Click the Report Connections button [Slicer tab, Slicer group].
- Select the pvtFees box and click OK.
- Insert a PivotChart on the dashboard.
- Select cell A23.
- Click the PivotChart button [Insert tab, Charts group].
- Confirm or select the Use this workbook’s Data Model radio button.
- Confirm or select the Existing Worksheet radio button and click OK.
- Expand the Merge1 list in the PivotChart Fields pane.
- Select the Course Name and Fees Collected boxes.
- Format a PivotChart on the dashboard.
- Click the Change Chart Type button [Design tab, Type group].
- Select the Pie category and the Doughnut subtype.
- Turn off display of the Field Buttons [PivotChart Analyze tab, Show/Hide group].
- Triple-click the Total text box and change the label to Fees by Course.
- Click the Filter Connections button [PivotChart Analyze tab, Filter group].
- Select the Dept box to connect the chart to the slicer and click OK.
- Position and size the chart object to span cells A23:B40.
- Apply a ½ pt. Black, Text 1 outline to the chart object.
- Complete labels for the dashboard.
- Select rows 1:2 and set the height to 35.
- Select cell A1 and type Sierra Pacific Community College District.
- Select cell A2 and type Department Course Fees.
- Format both labels with Calibri 20 pt. italic.
- Insert a blank row at row 1 and a blank column at column A.
- Hide Gridlines, the Formula Bar, and the Headings [View tab].
- Select the BUS and CGI items in the slicer.
- Save and close the workbook (Figure 10-85).
Do you need help with this assignment or any other? We got you! Place your order and leave the rest to our experts.
