16 Create forecasts and visualizations

In this chapter

Practice files

For this chapter, use the practice files from the Excel2019SBSCh16 folder. For practice file download instructions, see the introduction.

The business intelligence tools built into Excel 2019 greatly extend the app’s analytical and visualization capabilities. For example, although you have always been able to forecast future data based on current trends, you can now use an advanced technique called exponential smoothing to give greater weight to recent values instead of considering all historical data in the same light.

You can also use the Excel Data Model to create forecast worksheets, measures, key performance indicators (KPIs), and 3D maps to visualize your data. Forecast worksheets use exponential smoothing formulas to project future values in a visual display. Measures and KPIs summarize and evaluate business data against goals you set. Finally, 3D maps represent your data geographically, using maps to show static values and how your data changes over time.

This chapter guides you through procedures related to creating forecast worksheets, forecasting data by using formulas that define and manage measures, defining and displaying KPIs, and creating 3D maps.

Image Important

To complete some of the tasks in this chapter, you will need to enable the Data Analysis add-ins.

Create forecast worksheets

Excel 2019 extends your ability to analyze business data by creating forecasts. Analyzing trends in Excel isn’t new; you’ve been able to guess at future values based on historical data for quite some time. For example, you can create a linear forecast by using the FORECAST.LINEAR() function, which has the syntax FORECAST.LINEAR(x, known_ys, known_xs). The known_xs argument contains a range of independent variables, such as years, and the known_ys describe dependent variables, such as package volumes for a specified year. The FORECAST.LINEAR() function takes those historical values and projects the package volume for future year x if current trends continue.

A quick way to extend a data series is to select the cells that contain your historical data and then drag the fill handle down to extend the series. Excel analyzes the pattern of the available values and adds new values based on that analysis.

Image Important

The values used to create your forecast worksheet must be evenly spaced, such as every day, every seven days, or the first day of each month or year.

The standard exponential smoothing function, FORECAST.ETS(), returns the forecasted value for a specific future target date by using an exponential smoothing algorithm. This function has the syntax FORECAST.ETS(target_date, values, timeline, [seasonality], [data_completion], [aggregation]). The arguments used by this function are as follows:

  • target_date (required) The date for which you want to predict a value, expressed as either a date/time value or a number. The target_date value must come after the last data point in the timeline.

  • values (required) Refers to the historical values Excel uses to create a forecast.

  • timeline (required) Refers to the dates or times Excel uses to establish the order of the values data. The dates in the timeline range must have a consistent step between them, which can’t be zero.

  • seasonality (optional) A number value indicating the presence, absence, or length of a season in the data set. A value of 1 has Excel detect seasonality automatically, 0 indicates no seasonality, and positive whole numbers up to 8,760 (the number of hours in a year) indicate to the algorithm to use patterns of this length as the seasonality period.

  • data_completion (optional) FORECAST.ETS() allows, and can adjust for, up to 30 percent of missing data in a time series. A value of 0 directs the algorithm to account for missing points as zeros, whereas the default value of 1 accounts for missing points by computing them as the average of the neighboring points.

  • aggregation (optional) This argument tells FORECAST.ETS() how to aggregate multiple points that have the same time stamp. The default value of 0 directs the algorithm to use AVERAGE. Other options available in the AutoComplete list are SUM, COUNT, COUNTA, MIN, MAX, and MEDIAN.

FORECAST.ETS.SEASONALITY() follows exactly the same syntax as FORECAST.ETS(), but it returns the length of the seasonal period the algorithm detects. As with FORECAST.ETS(), the maximum seasonal period is 8,760 units.

You will often use FORECAST.ETS.SEASONALITY() and FORECAST.ETS() together, or FORECAST.ETS() by itself. The output of FORECAST.ETS.SEASONALITY() isn’t very useful without a forecast.

The final function, FORECAST.ETS.CONFINT(), returns a confidence interval for the forecast value at the specified target date. The confidence interval is the value by which the actual value will differ from the forecast, plus or minus a certain value that Excel calculates, which is a specified percentage of the time. The function has the following syntax: FORECAST.ETS.CONFINT(target_date, values, timeline, [confidence_level], [seasonality], [data_completion], [aggregation]).

Image Tip

Smaller confidence_level values allow for smaller confidence intervals because the actual result doesn’t have to be within the confidence interval as often. Larger confidence_level values require a larger interval to account for the greater probability of unlikely results.

The new argument, confidence_level, is an optional argument that lets you specify how certain you want the estimate to be. For example, a confidence_level value of 80 percent would require the actual value to be within the confidence interval (plus or minus a certain value that Excel calculates) 80 percent of the time.

Image Tip

The default confidence_level value is 95 percent.

Excel 2019 also includes the capability to create a forecast worksheet, which uses the FORECAST.ETS() function to create a line or column chart showing a forecast when given historical data. The forecast worksheet provides a striking visual summary of the exponential smoothing forecast. In addition to creating the forecast, you can control the start date, set seasonality, and determine how to handle missing or duplicate values.

Screenshot of a forecast worksheet with forecasts for the next two years of package volumes. The forecast also includes the upper and lower bounds of the forecast’s confidence interval.
Forecast worksheets show projections for future values.

To create a linear forecast by using a formula

  1. Create a list of data that contains pairs of independent variables (known_xs) and dependent variables (known_ys).

  2. In a separate cell, enter a future value of x.

  3. In another cell, create a formula with the following syntax:

    FORECAST.LINEAR(x, known_ys, known_xs)

  4. Press Enter.

To create a simple forecast by using the fill handle

  1. Select the cells that contain the historical data.

  2. Drag the fill handle down the number of cells that represents the number of periods by which you want to extend the trend.

To create a forecast worksheet

  1. Click any cell in an Excel table that contains a column with date or time data and another column with numerical results.

  2. On the Data tab of the ribbon, in the Forecast group, click the Forecast Sheet button.

  3. In the upper-right corner of the Create Forecast Worksheet dialog box, do one of the following:

    • Click the Create a line chart button to create a line chart.

    • Click the Create a column chart button to create a column chart.

  4. Click the Forecast End calendar to specify an end for the forecast.

  5. Click Create.

To create a forecast worksheet with advanced options

  1. Click any cell in an Excel table that contains a column with date or time data and another column with numerical results.

  2. Click Forecast Sheet.

  3. In the Create Forecast Worksheet dialog box, set the chart type and forecast end, and then click Options to expand the dialog box.

    Screenshot of the Forecast Worksheet dialog box with forecasts for the next two years of package volumes. The dialog box has been expanded to show the tools in the Options section.
    Set advanced options and manage data used to create a forecast worksheet.
  4. Using the tools in the Options area of the Create Forecast Worksheet dialog box, do any of the following:

    • Identify the cell range that contains the timeline values.

    • Identify the cell range that contains the numerical values.

    • Set a new forecast start date.

    • Change the confidence interval.

    • Set seasonality manually or automatically.

    • Include or exclude forecast statistics.

    • Select a method for filling in missing values.

    • Select a method for aggregating multiple values for the same time period.

  5. Click Create.

To calculate a forecast value by using exponential smoothing

  1. Create a list of data that contains pairs of independent variables (timeline) and dependent variables (values).

  2. In a separate cell, enter a future date (target_date).

  3. In another cell, create a formula with the following syntax:

    FORECAST.ETS(target_date, values, timeline, [seasonality], [data_completion], [aggregation])

  4. Press Enter.

To calculate the confidence interval for a forecast by using exponential smoothing

  1. Create a list of data that contains pairs of independent variables (timeline) and dependent variables (values).

  2. In a separate cell, enter a future date (target_date).

  3. In another cell, create a formula with the following syntax:

    FORECAST.ETS.CONFINT(target_date, values, timeline, [confidence_level], [seasonality], [data_completion], [aggregation])

  4. Press Enter.

To calculate the length of a seasonally repetitive pattern in time series data

  1. Create a list of data that contains pairs of independent variables (timeline) and dependent variables (values).

  2. In a separate cell, enter a future date (target_date).

  3. In another cell, create a formula with the following syntax:

    FORECAST.ETS.SEASONALITY(target_date, values, timeline, [seasonality], [data_completion], [aggregation])

  4. Press Enter.

Define and manage measures

You can use Power Pivot to analyze huge data collections that include millions or even hundreds of millions of rows of values. Although the details are important, it’s also valuable to examine your data in aggregate. This type of aggregate summary, such as the average of values in a column, is called a measure.

Screenshot of Power Pivot, with a measure for the SuccessRate field shown in the formula bar.
Measures summarize columns of data in Power Pivot.

Image See Also

For more information about using Power Pivot to analyze data, see “Analyze data by using Power Pivot” in Chapter 15, “Perform business intelligence analysis.”

There are two main ways to define a measure in Power Pivot. The first is to use a version of AutoSum, which calculates a sum, average, median, or other summary of a Power Pivot column. The other method is to create a calculated column manually. Regardless of the technique you use to create your measure, you can always edit it or delete it if necessary.

To create a measure by using AutoSum

  1. Open a workbook in which you have added at least one Excel table to the Excel Data Model.

  2. On the Power Pivot tab of the ribbon, in the Data Model group, click Manage to display the Power Pivot for Excel window.

  3. If necessary, in Power Pivot, on the Home tab of the ribbon, in the View group, click the Calculation Area button to display the Calculation Area of the grid.

  4. In the Calculation Area, click the first cell below the column on which you want to base your measure.

  5. On the Home tab, in the Calculations group, do either of the following:

    • Click the AutoSum button to create a measure by using the SUM function.

    • Click the AutoSum arrow, and then click the function you want in the list.

To create a calculated column

  1. In the Power Pivot for Excel window, display an Excel table that is part of the Data Model.

  2. Click the first blank cell in the Add Column column.

  3. Enter = followed by the formula.

    Image Tip

    To refer to fields in the Excel table, enclose the name in square brackets—for example, [Exceptions].

To edit a measure

  1. Open a workbook in which you have added at least one measure to the Data Model.

  2. If necessary, in Power Pivot, click the Calculation Area button to display the Calculation Area of the grid.

  3. Click the cell that contains the measure.

  4. In the formula bar, change the text of the measure’s formula.

  5. Press Enter.

To delete a measure

  1. Open a workbook in which you have added at least one measure to the Data Model.

  2. If necessary, in Power Pivot, click the Calculation Area button to display the Calculation Area of the grid.

  3. Click the cell that contains the measure, and then press Delete.

  4. In the Confirm dialog box, click Delete from Model.

Define and display key performance indicators

Businesses of all sizes can evaluate their results by using measures, which convey overall business performance by summarizing operations data. The next step in this analysis is to compare results from a specific part of the business, whether for a department or for the entire company’s overall performance for a month, to determine whether the company is meeting its goals.

One popular way to measure business performance is by using key performance indicators (KPIs). A KPI is a measure that the company’s officials have determined reflects the underlying health and efficiency of the organization. A shipping company might set KPIs for maintaining a low level of package handling errors, or a charitable organization could set a KPI for returning as much of its donation income as possible to their clients through service and direct support.

KPIs are most often implemented through a dashboard that summarizes organizational performance. In Excel 2019, you add KPIs to your workbooks by creating PivotTables based on data stored in the Data Model.

Screenshot of a PivotTable arranged by year and month in the Rows area, and with two Values fields: Sum of SuccessRate, which displays individual SuccessRate values, and Average of SuccessRate: Status, which shows a red, yellow, or green indicator that evaluates performance relative to the KPI.
A PivotTable that includes a KPI created in Power Pivot.

In some cases, high values are good, whereas in other cases low values are preferred. For example, reducing package-handling errors and maximizing operating profit would represent success for a shipping company. Or, a manufacturing firm might want to reduce variance in the items they fabricate for their customers. In that case, variance from the target value in either direction, high or low, would indicate a fault in the process.

Screenshot of the target area of the Key Performance Indicator (KPI) dialog box, showing the four available patterns that control whether high, low, central, or non-central values are more favorable.
Select the pattern used to evaluate data in a KPI.

After you create a KPI, you can edit or delete it as required to meet your organization’s needs.

To create a KPI

  1. Open a workbook in which you have added at least one measure to the Data Model.

  2. If necessary, in Power Pivot, on the Home tab, in the View group, click the Calculation Area button to display the Calculation Area of the grid.

  3. In the Calculation Area, right-click the cell that contains the measure you want to use as the basis for your KPI, and then click Create KPI.

  4. In the Key Performance Indicator (KPI) dialog box, click Measure and select the measure to use as the comparison for the KPI.

    Or

    Click Absolute Value and enter the target value in the box to the right of the label.

  5. In the Target group, click the pattern that represents the distribution of good, neutral, and bad values in the data set.

    Screenshot of the Key Performance Indicator (KPI) dialog box before the user has started customizing the KPI.
    Create KPIs to summarize your organization’s performance.
  6. In the Define status thresholds area, drag the sliders to indicate where the bad, neutral, and good zones start.

    Or

    Click in the box above a slider and enter a value that defines where the zone starts.

  7. Click the icon set you want to apply to the KPI.

  8. Click OK.

To use a KPI in a PivotTable

  1. On the Data tab, in the Data Tools group, click Manage Data Model.

  2. In the Power Pivot for Excel window, on the Home tab, click the PivotTable button (not the arrow).

  3. In the Create PivotTable dialog box, click New Worksheet, and then click OK.

  4. If necessary, in the PivotTable Fields task pane, click the name of the Excel table that contains your data.

  5. Add fields to the Rows and Columns areas to organize your data, and then add the field that contains the data to the Values area.

  6. At the bottom of the field list, expand the field name of the measure you used to create your KPI.

  7. Drag the Status field to the Values area.

To edit a KPI

  1. Open a workbook in which you have added at least one KPI to the Data Model.

  2. If necessary, in Power Pivot, on the Home tab, in the View group, click the Calculation Area button to display the Calculation Area of the grid.

  3. In the Calculation Area, right-click the cell that contains the measure you are using as the basis for your KPI, and then click Edit KPI Settings.

  4. Use the controls in the Key Performance Indicator (KPI) dialog box to change the KPI’s settings.

  5. Click OK.

To delete a KPI

  1. Open a workbook in which you have added at least one KPI to the Data Model.

  2. If necessary, display the Calculation Area of the grid.

  3. In the Calculation Area, right-click the cell that contains the measure you are using as the basis for your KPI, and then click Delete KPI.

  4. In the Confirm dialog box, click Delete from Model.

Create 3D maps

Much of the business data you collect will refer to geographic entities such as countries, regions, cities, or states. In Excel 2019, you can plot your data on 3D maps by using the built-in Power Map facilities.

Screenshot of a 3D map with the State field mapped to the Location box in the Layer task pane.
Summarize data by using a 3D map.

After you add an Excel table to the Data Model, you can summarize its data geographically. All you need to do is click a cell in the Excel table and indicate that you want to create a 3D map. Excel examines your data source and, if it recognizes geographic entities such as cities, countries, regions, and so on, it adds the corresponding field to the map’s layout.

Image Tip

If you haven’t clicked a cell in an Excel table that contains data you can use to create a map, Excel doesn’t add a geographic data field to the Location area of the Layers task pane.

With the 3D map in place, you can add data fields to its layout, supplement the display by adding a 2D line or column chart of the data, or change the fields used in the visualization. If you have multiple geographic data levels available, such as country or region, state, and city, you can change the level of analysis before closing your map and returning to the main Excel workbook.

Screenshot of a 3D map that summarizes visitor data by state.
Summarize data by geographical entity by using a 3D map.

Image Tip

After you close the 3D Maps window, Excel adds a text box to the worksheet from which the 3D map draws its data, indicating that the workbook has 3D Maps tours available.

One real strength of 3D maps in Excel 2019 is the ability to create tours, which are animations of the data summarized in your map. If your data has a date or time component, such as years, months, and days (or specific dates), you can create an animation that shows how the data changes over time.

Image Important

The field you add to the Time box must be formatted by using a Date or Time data type.

After you create your map, you can copy an image of the screen to the Clipboard, save the animation as a video, edit the map, or delete the map.

To create a 3D map

  1. Click a cell in the Excel table that contains the data you want to map.

  2. On the Insert tab of the ribbon, in the Tours group, click the 3D Map button (not the arrow).

  3. In the 3D Maps window, on the Home tab of the ribbon, in the View group, click Field List to display the Field List pane.

  4. Drag the field that contains geographic information, such as states, from the Field List to the Location box.

  5. Drag the field that contains the summary data from the Field List to the Height box.

  6. If your data contains a third component, such as a company, drag the field that contains this category data from the Field List to the Category box.

To return to the main Excel workbook

  1. Perform either of these steps:

    • In the 3D Maps window, display the Backstage view, and then click Close.

    • On the title bar of the 3D Maps window, click the Close button.

To launch a 3D map

  1. On the Insert tab of the ribbon, in the Tours group, click the 3D Map button (not the arrow).

    Screenshot of the Launch dialog box, in which you can select which existing 3D map to display.
    Select an existing 3D map to launch.
  2. In the Launch 3D Maps dialog box, click the tour you want to launch.

To summarize mapped data by using a 2D chart

  1. Launch the 3D map you want to summarize.

  2. On the Home tab, in the Insert group, click 2D Chart.

  3. If necessary, point to the chart, click the Change the chart type button in the upper-right corner of the chart, and then click a new chart type.

To change the geographical type of a visualization

  1. Launch the 3D map you want to edit.

  2. In the View group, click Layer Pane to display the Layer task pane.

  3. Also, if necessary, click Field List to display the Field List pane.

  4. In the Location box, click the geographical type.

  5. In the list that appears, click the new level at which you want to summarize the data.

To animate your data over time

  1. Create a 3D map that includes summary and location data.

  2. If necessary, click Layer Pane to display the Layer task pane.

  3. If necessary, click Field List to display the Field List pane.

  4. Drag a field containing time data from the Field List pane to the Time box of the Layer task pane.

    Screenshot of a 3D map with the Field List and Layer task panes displayed with the State field added to the Location box, Visitors added to the Height box, and Year added to the Time box.
    Animate data by using a time series from your data set.
  5. On the Home tab, in the Tour group, click Play Tour.

To filter 3D map data

  1. Launch the 3D map you want to edit.

  2. If necessary, click Layer Pane to display the Layer task pane.

  3. In the Layer task pane, click Filters, click Add Filter, and then click the field by which you want to filter your map.

    Image
    Apply a filter to focus on specific data in your map.
  4. Use the controls in the Filters area of the Layer task pane to create your filter.

  5. Click Apply Filter.

To remove a 3D map filter

  1. Display the 3D map from which you want to remove the filter.

  2. In the Layer task pane, display the available filters.

  3. Point to the filter you want to remove, and then click Delete Filter.

To capture a screenshot of a 3D map

  1. Display the 3D map whose image you want to capture.

  2. On the Home tab, in the Tour group, click Capture Screen to copy an image of the map to the Clipboard.

  3. Open the document in which you want to paste the image of the map.

  4. Press Ctrl+V (or use the appropriate paste command for the app you opened) to paste the map image into the open document.

To play a 3D map tour as a video

  1. Display a 3D map tour that has a time component.

  2. On the Home tab, in the Tour group, click Play Tour.

  3. When the tour finishes playing, point to the bottom of the screen to display the control bar, and then click the Go Back to Edit View button.

To save a 3D map video

  1. Display a 3D map tour that has a time component.

  2. In the Tour group, click Create Video.

  3. In the Create Video dialog box, click the button that represents the video quality and resolution you want.

  4. Click Create.

  5. In the Save Movie dialog box, navigate to the folder where you want to save the video.

  6. In the File name box, enter a name for the video.

  7. Click Save.

To delete a 3D map

  1. In an Excel workbook that contains 3D maps, on the Insert tab, click the 3D Map button (not the arrow).

  2. In the Launch 3D Maps dialog box, point to the 3D map tour you want to delete, and click the Delete this Tour button in the upper-right corner of the tour.

  3. In the Delete Tour dialog box, click Yes to confirm that you want to delete the tour.

  4. Close the Launch 3D Maps dialog box.

Skills review

In this chapter, you learned how to:

  • Create forecast worksheets

  • Define and manage measures

  • Define and display key performance indicators

  • Create 3D maps

Practice tasks

Image

The practice files for these tasks are located in the Excel2019SBSCh16 folder. You can save the results of the tasks in the same folder.

Create forecast worksheets

Open the CreateForecastSheets workbook in Excel, and then perform the following tasks:

  1. In cell I5, create a formula that uses exponential smoothing to forecast the value for January 2019 (found in cell I3) based on the values in the MonthYear and Volume columns in the Excel table.

  2. Using the same inputs, calculate the 95-percent confidence interval (the default value) for your forecast.

  3. In cell I9, calculate the length of the season implied by the data used in the previous two formulas.

  4. Create a forecast worksheet by using the data in the MonthlyVolume table on Sheet1.

  5. If necessary, edit the forecast worksheet so its Timeline Range is cells D1:D37 and the Values Range is cells E1:E37.

  6. Change the forecast worksheet’s Confidence Interval to 90 percent.

Define and manage measures

Open the DefineMeasures workbook in Excel, and then perform the following tasks:

  1. Display the Data Model.

  2. Create a measure for the Exceptions field that finds the sum of the Exceptions values.

  3. Create a measure for the SuccessRate field that finds the sum of the SuccessRate values.

  4. Delete the measure that finds the sum of the Exceptions values.

  5. Edit the measure that finds the sum of the SuccessRate values so that it finds the average of those values.

Define and display KPIs

Open the CreateKPIs workbook in Excel, and then perform the following tasks:

  1. Open PowerPivot and display the Data Model.

  2. Create a KPI named Status based on the Average of SuccessRate measure with the following characteristics:

    • An absolute value of 9925

    • A green lower limit of 9900

    • A yellow lower limit of 9825

    • The black-bordered traffic-light icon set

  3. While still within Power Pivot, create a PivotTable on a new worksheet.

  4. In the PivotTable Fields task pane, add the Year and Month columns to the Rows area, and then the Success Rate and Status fields to the Values area.

Create 3D maps

Open the CreateMaps workbook in Excel, and then perform the following tasks:

  1. Create a 3D map based on the data in the VisitorData Excel table. Show the visitors by state.

  2. Add the Year field to the Time area, and then play the tour.

  3. Create and save a video based on the tour you created.

  4. Add a 2D chart that summarizes your data in a clustered column chart.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.30.236