Advanced Excel Reporting

Similar documents
Excel. Spreadsheet functions

Microsoft Access 2013

Instructions for Using the Databases

Microsoft Excel Pivot Tables & Pivot Table Charts

Microsoft Access 2010

Troubleshooting in Microsoft Excel 2002

Financial Reporting Using Microsoft Excel. Presented By: Jim Lee

Creating Automated Dashboard Excel 2013 Contents

Streamlined Reporting with

Basics: How to Calculate Standard Deviation in Excel

course notes quick reference guide

Pivot Tables, Lookup Tables and Scenarios

Ms excel. The Microsoft Office Button. The Quick Access Toolbar

Working With Tables In Excel 2007

Excel Shortcuts Increasing YOUR Productivity

SedonaOffice Users Conference. San Francisco, CA January 21 24, Query Builders. Presented by: Matt Howe

Create a Relationship to build a Pivot Table

PIVOT TABLES IN MICROSOFT EXCEL 2016

Excel Tables and Pivot Tables

Open Excel by following the directions listed below: Click on Start, select Programs, and the click on Microsoft Excel.

Create a Relationship to build a Pivot Table

Data Should Not be a Four Letter Word Microsoft Excel QUICK TOUR

2. create the workbook file

Excel Tables & PivotTables

Excel Level 1

Microsoft Excel Pivot Tables & Pivot Table Charts

Timecard history can be queried for a number of valuable reports. Begin by accessing the his_timecard table in a query.

Using Microsoft Excel

PivotTables & Charts for Health

Objective: Class Activities

Pivot Table Project. Objectives. By the end of this lesson, you will be able to:

Microsoft Excel Chapter 1. Creating a Worksheet and a Chart

How to Create Excel Dashboard used in Solutions Conference By Matt Mason

Service Line Export and Pivot Table Report (Windows Excel 2010)

Introduction to Microsoft Excel

Candy is Dandy Project (Project #12)

Pivot Tables in Excel Contents. Updated 5/19/2016

New Perspectives on Microsoft Excel Module 5: Working with Excel Tables, PivotTables, and PivotCharts

Export a PROTECT Report to Excel (User s Guide Lesson 21 : Reports) Tips for Using Microsoft Excel and Exported Reports

Sort, Filter, Pivot Table

How to Create and Use a Pivot Table in Excel

Les s on Objectives. Student Files Us ed. Student Files Crea ted

USING ODBC COMPLIANT SOFTWARE MINTRAC PLUS CONTENTS:

Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts. Microsoft Excel 2013 Enhanced

Microsoft Power Tools for Data Analysis #5 Power Query: Append All Tables in Current Workbook Notes from Video:

Intermediate Microsoft Excel 2010

Day : Date : Objects : Open MS Excel program * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office.

Chapter 4. Microsoft Excel

Formulas, LookUp Tables and PivotTables Prepared for Aero Controlex

New Finance Officer & Staff Training

Connecting SQL Data Sources to Excel Using Windward Studios Report Designer

Integrating Word with Excel

Relativity. User s Guide. Contents are the exclusive property of Municipal Software, Inc. Copyright All Rights Reserved.

Excel 2007 Tutorials - Video File Attributes

Homework 1 Excel Basics

Microsoft Excel Microsoft Excel

QUERY USER MANUAL Chapter 7

Reference Services Division Presents. Excel Introductory Course

Business Process Procedures

Tips & Tricks: MS Excel

Basic Excel. Helen Mills OME-RESA

Creating Database Reports

Basic tasks in Excel 2013

2013 ADVANCED MANUAL

Excel 2003 Tutorials - Video File Attributes

MIS Cases: Decision Making With Application Software, Second Edition. Database Glossary

Excel 2016: Part 2 Functions/Formulas/Charts

Excel Lesson 1 Microsoft Excel Basics

This book is about using Microsoft Excel to

MICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi

Advanced Excel for EMIS Coordinators

1 Course Tallies and Lists with Designations

Introductory Excel Walpole Public Schools. Professional Development Day March 6, 2012

Crystal Reports Compiled by Christopher Dairion

Reporting Excel Tutorial

How to insert table in Excel?

Excel Tips for Compensation Practitioners Weeks Pivot Tables

COURSE CONTENT EXCEL BASIC ONE DAY

Working with Data in Microsoft Excel 2010

A Tutorial for Excel 2002 for Windows

Become strong in Excel (2.0) - 5 Tips To Rock A Spreadsheet!

download instant at

Filter and PivotTables in Excel

Excel 2013 PivotTables and PivotCharts

IP4 - Running reports

Excel 2010 Tutorials - Video File Attributes

THE EXCEL ENVIRONMENT... 1 EDITING...

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

The following instructions cover how to edit an existing report in IBM Cognos Analytics.

Microsoft Excel 2016 LEVEL 3

PHLI Instruction (734) Introduction. Lists.

Charting Progress with a Spreadsheet

Unleash the Power of Excel

ADVANCED INQUIRIES IN ALBEDO: PART 2 EXCEL DATA PROCESSING INSTRUCTIONS

Navigate to Cognos Cognos Analytics supports all browsers with the exception of Microsoft Edge.

Excel Tutorials - File Size & Duration

Birst Pronto: Connect to Data in Pronto

Intermediate Microsoft Excel 2010 Tables and Printing

Excel Contents. MS Excel /3/2011 JSD#2-Neptune Page 1

Working with Excel CHAPTER 1

Transcription:

SedonaOffice Users Conference San Francisco, CA January 21 24, 2018 Advanced Excel Reporting Presented by: Matt Howe

This Page Intentionally Left Blank Page 2 of 20

Table of Contents Overview... 4 Making the Connection to the Database... 5 Designing the Query... 9 Joining Tables... 10 Adding Fields... 11 Adding Criteria... 11 Returning Data to the Spreadsheet... 14 Adding Formulas to the Dataset... 16 Creating a Pivot Table... 17 Adding fields to the Pivot Table... 18 Refinements... 20 Page 3 of 20

Overview In this session, we will learn how to use Microsoft Excel and Microsoft Query to extract data from a SedonaOffice database into Excel, add formulas and analyze the data with pivot charts. Page 4 of 20

Making the Connection to the Database In order for Excel and Query to access the data in your SQL server, we need to make a Data Connection object. This sounds more complicated than it is, and the object you create can be used for other Excel Queries. Open Excel and select the Data tab. On the Data tab choose From Other Sources. Then select From Microsoft Query. Page 5 of 20

The Choose Data Source form will be displayed. You can see I have one connection already built to access my Development database, and I could reuse that just as you will be able to reuse the one you create. For the purposes of this session, we will build a new one by selecting <New Data Source>. In box number 1, type in a name for the connection. In box number 2, select SQL Server from the drop down list [from near the bottom of the list] of drivers. Click the Connect button when finished. Page 6 of 20

The SQL Server Login form will be displayed. In the Server field, select your SedonaOffice SQL server from the drop-down list Uncheck the Use Trusted Connection checkbox In the Login ID text box, type SedonaReports Leave the password field blank When finished, click the OK button. Page 7 of 20

If you do not receive an error and are returned to the Create New Data Source form, leave the #4 dropdown blank and check Save my ID and password checkbox. Click the OK button; you will be returned to the Chose Data Source form. Choose the Source you just created. Uncheck Use the Query Wizard checkbox and click OK. Set the database to the SedonaOffice database you wish to use. Note: This is the database name in the SQL Server, not the company name from the log in screen. Usually they will be similar. Page 8 of 20

Designing the Query Start selecting the tables you will want to use. Each table you choose will be opened in the top area of the window. Here you can see I have selected AP_Vendor and am about to choose AP_Check. We will be using the AP_Vendor and AP_Check table in our example. When you are finished selecting tables, click the Close button on the Add Tables form. Page 9 of 20

Joining Tables Before we take the next step, we need to understand tables, fields and joins. Tables are made up of fields. Each row or record in a table will have exactly the same fields as all of the others in that table. The data is stored in these fields. Some fields are pointers. They end in _ID (All of the pointer or linking fields end in _ID, but not every field ending in _ID is a pointer or linking field). A join uses these pointers to tell the SQL Server how the various tables relate to each other. Let s build a join to make this clearer. Scroll both tables until you can see the Vendor_ID in both tables. Notice the one on the left AP_Vendor table is bold. This is because it is the main pointer for that table. Click on the Vendor_Id field in that table and drag your mouse to the AP_Check table s Vendor_ID. This will create a join between the tables signified by a line. Microsoft Query attempts to automatically link the tables for you, so there may already be a line there. You can use that one, but if there is a line connection to the wrong fields, you need to click on it and it will turn bold. Then you need to press the delete key to remove the link. Page 10 of 20

Adding Fields Now we can select our fields. Double click on the field you want or you can drag it down to the bottom. Add these fields, in the order listed below. From AP_Vendor Vendor_Code Company_Name From AP_Checks Check_Number Check_Date Amount Void_Amount Void_Date If you place a field in the wrong order, just click the name at the top of the column and then click and drag it to the proper position. When finished it should look like the example below. Adding Criteria As you can see, Microsoft Query is already showing you a preview of the data retrieved. But there is way too much data. Query is bringing back data for every check ever written, so we need to add some filters to refine the list of data. Click on the filter button from the upper toolbar. Page 11 of 20

A new section will appear between the tables/fields area and the data results; this is the Criteria area. From the AP_Vendor table, drag the Vendor_Code field down and place it in the top of the first criteria column. Beneath the Vendor Code column, in the Value row type <> N/A. <> means does not equal and because it is a text field we need to add single quotes. This removes the N/A record. Then we set a date range for the Check_Date using >= and <= (greater than or equal to and less than or equal to). Page 12 of 20

We are now ready to save our query and exit. Click the Save button on the toolbar. This saves the query but not the spreadsheet. Queries are saved separate because they are also reusable. Page 13 of 20

Returning Data to the Spreadsheet To exit, we do not just close the window. We want to close the window and return our data to the spreadsheet. Click the Return Data button on the toolbar. Page 14 of 20

Once back in Excel we see a new form with several options. First, we can return a table, a pivot table or a table and a pivot table. We are going to use the default option, which is Table. We will build our pivot table manually later. Then we have the choice of importing the data into the existing worksheet or a new worksheet. If you select existing worksheet, which we are going to use, it wants to know where to place the data within the worksheet. Again, we will use the default, which is cell A1. Click the OK button. Depending on how much data is being retrieved, it may take a few seconds or up to a minute to return the data. Below are the results. Page 15 of 20

Adding Formulas to the Dataset As this worksheet is not really about checks but about how much we spent, we will create a formula to account for voided checks. In a new column give it a Header of Amount_Paid and then in the first cell below the header enter the following: =Table_Vendor_Query_from_Conference[[#This Row],[Amount]]- Table_Vendor_Query_from_Conference[[#This Row],[Void_Amount]] Create another column called Row_Header and add this formula below it. =CONCATENATE(Table_Vendor_Query_from_Conference[[#This Row],[Vendor_Code]], " - ",Table_Vendor_Query_from_Conference[[#This Row],[Company_Name]]) Either by typing or using the formula wizard. And we have this: When finished, save the worksheet. Page 16 of 20

Creating a Pivot Table We are now ready to create our pivot table. Select all of the columns, then click on the Insert tab and select PivotTable. The pivot table form will be displayed. Leave everything at the defaults, and then click the OK button. This will display the blank pivot table and the pivot table designer. Page 17 of 20

Adding fields to the Pivot Table Drag the Row_Header to the Row Labels box Drag the Check_Date to the Row Labels box. Drag the Amount to the Row Labels box. Drag the Check_Date to the Row Labels box. Drag the Amount_Paid to the Values Box Make sure Check_Date is set to count and Amount is set to sum. Page 18 of 20

Close the Pivot Table Fields box. Our final pivot table should look like this: Page 19 of 20

Refinements Of course the first improvement would be to format the table and pivot table columns. You can also have Excel ask you for the dates every time you refresh the data. Back in the query where we created criteria, replace the dates with labels in square brackets ([]). You can also add the full check amount and void information to the values box for additional detail. Page 20 of 20