NEW QUESTION 24
Connect to the “Life Expectancy at birth” data source, combine sheets Data_20th century and Data_21st century. Find the moving average for the average life expectancy for 10 years before 2000 and 10 years after
2000 for New Zealand.
Connect to the “Life Expectancy at birth” excel file, drag Data_20th Century sheet to the canvas. If you find data columns are not correct.
Graphical user interface, application Description automatically generated

Use the data Interpreter, it will correct the data.
Graphical user interface, text, application Description automatically generated

Select the column 1960 to 2000. And Click on the Pivot option
Graphical user interface, text, application Description automatically generated

Rename the two new columns as ‘Years’ and ‘Life Expectancy’
Graphical user interface, application Description automatically generated

Create a Union by dragging the sheet Data_21st Century to Data_20th Century, once you see the orange block for union.
Graphical user interface, text, application, email Description automatically generated

Now, select column 2001 to 2013 and Select Add data to Pivot.
A picture containing graphical user interface Description automatically generated

Select Country and Country Name field, Merge these fields.
Graphical user interface, application Description automatically generated

Rename the merged field as Country.
Let’s create the view.
Drop the country to the Filters and Select New Zealand. Drop the years to the columns and ‘Life Expectancy’ to the Text marks card. Change the aggregation to Avg (it won’t make a difference here).
Right-Click on Life Expectancy -> Quick Table Calc -> Moving Average
Again, right-click on it and edit the table calculation.
Graphical user interface, application Description automatically generated

Update the values as:
Graphical user interface, application, Word Description automatically generated

Result is:
Graphical user interface, application, Word Description automatically generated
