reporter tutorial: advanced - mc user connect

24
1 | Page © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012) Reporter Tutorial: Advanced Refer to the following sections for guidance on using these advanced features of the Reporter: Lesson 1 – Create Tutorial Training Report Lesson 2 – Custom Expressions Lesson 3 – Modify Fixed Criteria Lesson 4 – Editable Smart Reports Lesson 5 – Custom Group Headers Lesson 6 – Summary Reports For complete reference information on the Maintenance Connection Reporter, refer to the Online Reporter Guide available from the Help Menu. The following additional Reporter Tutorials are available from MC User Connect: Reporter Tutorial – Basic: Overview, Copy Report, Report Groups, Report Preview Window, Report Criteria, Field Selection, Sorting/Grouping, Charting. Reporter Tutorial – Intermediate: Conditional Formatting, Modify Report Criteria, Smart Report Popups, Smart Criteria and Scheduling Reports. Reporter Tutorial – Pivot Reports: Instructions for creating Pivot Reports, an easy to use method for presenting aggregated or summary data.

Upload: others

Post on 04-Feb-2022

19 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Reporter Tutorial: Advanced - MC User Connect

1 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

Reporter Tutorial: Advanced Refer to the following sections for guidance on using these advanced features of the Reporter:

Lesson 1 – Create Tutorial Training Report Lesson 2 – Custom Expressions Lesson 3 – Modify Fixed Criteria Lesson 4 – Editable Smart Reports Lesson 5 – Custom Group Headers Lesson 6 – Summary Reports

For complete reference information on the Maintenance Connection Reporter, refer to the Online Reporter Guide available from the Help Menu. The following additional Reporter Tutorials are available from MC User Connect: Reporter Tutorial – Basic: Overview, Copy Report, Report Groups, Report Preview Window, Report Criteria,

Field Selection, Sorting/Grouping, Charting. Reporter Tutorial – Intermediate: Conditional Formatting, Modify Report Criteria, Smart Report Popups,

Smart Criteria and Scheduling Reports. Reporter Tutorial – Pivot Reports: Instructions for creating Pivot Reports, an easy to use method for

presenting aggregated or summary data.

Page 2: Reporter Tutorial: Advanced - MC User Connect

2 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

Lesson 1 – Create Tutorial Training Report Let’s create a report to use for this advanced tutorial:

1. Open the Report Lookup and select the Work Order (Open) Reports folder on the left:

2. The Report List on the right will display all reports currently in the selected Work Order (Open) Reports group/folder. Locate the Open Work Order List and select it. Once it has been selected, click Copy Report (alternatively, you can just right click on the Report Name and select Copy Report):

3. The report will open in the Report Copy window, showing standard options for Report Setup. At the top of the window, enter a name for your report, such as “Your Name –Advanced Tutorial Training Report.” It is helpful to put the word TEST (or TRAINING) in reports used for training, so that they are easily identified later.

4. Specify a Repair Center in the Managed By prompt if the report should only be viewable by a particular Repair Center. To make the report viewable by all, select All Repair Centers. The logged in user’s Repair Center will be populated by default.

Page 3: Reporter Tutorial: Advanced - MC User Connect

3 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

5. Click on the Groups tab, and then the Custom Groups sub-tab. Ensure that this report is designated for inclusion in your desired Report Group. This makes it easier to locate the report in the future.

6. Click Apply when you are finished and you will return to the Report Lookup. The new report is likely to display by default, depending on what it was named and the “Managed By” Repair Center to which it was associated. If your new report does not display by default, modify the filters at the top or page through the Report List to locate it.

Page 4: Reporter Tutorial: Advanced - MC User Connect

4 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

Lesson 2 – Custom Expressions Custom Expressions can be used to modify the format of a field or perform a calculation. For example, you can calculate elapsed time, such as days open or time taken to respond. You can also use a custom expression to change the display of a field, such as removing the time stamp from a date field, or changing the displayed case (e.g., display all in upper case).

In this tutorial, we will create a custom expression to calculate the number of days the work order has been open. We will then review a reference list of commonly used custom expressions.

Calculate Days (Open) Let’s modify the report we just copied to include the date the work order was requested and then calculate and display the number of days the work order has been open:

1. Locate the report that you just created in Lesson 1, and then select Run Report.

2. The Report Criteria window will open. Change any desired criteria and click Apply to present your report in the Report Preview window.

3. Click the Setup icon on the Reporter Toolbar to access the Report Setup window, on which the custom field can be defined.

4. Since we will be calculating the number of days the work order has been open, let’s add [WO] Requested to the Display fields list and place it just after the Work Order #.

5. Add or remove additional fields as desired. A simple field list such as the following can be used:

Page 5: Reporter Tutorial: Advanced - MC User Connect

5 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

6. To create the calculated field, you must specify a placeholder field on which the calculation will be specified:

• Select a field from the Available fields list to use as a placeholder. It must be a field that is not already listed in the Display fields list.

• For our example, you could select a UDF field such as [WO] UDF Field 10 and move it to the Display fields list

7. Select the placeholder field in the Display fields list and click Edit, just below the field list. The Report Field Options dialog will display for this field.

8. Enter the desired field label for the report column in the Field Label (Custom) prompt. In our example, you could enter Days Open.

9. Select the appropriate field type for your calculated result from the Field Type dropdown. In our example, you should select Numeric, as we will be calculating the number of days using this field.

Page 6: Reporter Tutorial: Advanced - MC User Connect

6 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

10. Click the Yes control in the Custom Expression? field prompt toward the bottom of the dialog, letting the system know that a custom calculation or expression will be used.

• The expression for the calculation must be placed in the Custom Expression Box. In our example, we will create a custom expression that calculates the number of days between today and the date the work order was requested. A function called DATEDIFF is used to calculate elapsed time between dates. The format of this function is as follows:

• DATEDIFF(increment to display - such as ‘day’ for days, field/value to be subtracted, field/value to subtract from)

• To tell the system to calculate from today, we must use the expression GETDATE() to signify the current date. The correct expression would be:

“DATEDIFF(DAY,WO.REQUESTED,GETDATE())”

11. In our example, the custom expression box should appear as follows:

12. Click Apply to return to the Report Setup window.

13. Use the up/down arrow controls to move the new field just below [WO] Requested:

14. To save your changes and view them in the report, click the Apply button at the bottom of the Report Setup window.

15. If run in late February, the new Days Open column might appear as follows:

Page 7: Reporter Tutorial: Advanced - MC User Connect

7 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

16. Return to the Report Setup window and note that once the field properties have been applied, the field will show in the Display fields list with the label you specified.

Commonly Used Custom Expressions - Reference Table Following are some examples of custom expressions to calculate or format report field display. It should be noted that custom expressions are not case-sensitive. They are listed here in mixed case (e.g., WO.Requested) to make the field names easier to read.

Description Expression Upper Case a Field Value UPPER(WO.Reason) Days to Complete Work Order from Requested Date DATEDIFF(day,WO.Requested,WO.Complete) Days to Complete Work Order from Issued Date DATEDIFF(day,WO.Issued,WO.Complete) Days Work Order Open DATEDIFF(day,WO.Requested,GETDATE()) Weeks Work Order Open DATEDIFF(week,WO.Requested,GETDATE()) Months Work Order Open DATEDIFF(month,WO.Requested,GETDATE()) Hours to Issue Work Order DATEDIFF(hour,WO.Requested,WO.Issued) Minutes to Issue Work Order DATEDIFF(minute,WO.Requested,WO.Issued) Date Returned without Time Stamp LEFT(WO.Requested,12) Full Status Returned (Issued/Complete vs. Issued) dbo.MC_GetWOStatus(WO.WOPK) Adding two field values together (e.g., Work Order Labor Cost + Work Order Parts Cost)

WO.CostLaborActual+WO.CostPartActual

Conditional Display using CASE Statement (e.g., if work order is past target date, display “OVERDUE”)

CASE when WO.TargetDate<GETDATE() THEN ‘OVERDUE’ ELSE ‘ON SCHEDULE’ END

Page 8: Reporter Tutorial: Advanced - MC User Connect

8 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

Lesson 3 – Modify Fixed Criteria When fixed criteria have been defined for a report, it is displayed at the top of the Report Criteria window.

Fixed Criteria to limit work order reports to display only open or closed work orders is specified for most Work Order Reports. For indicators/checkboxes in the system, the acceptable values are always “0” or “1”. “0” is used to indicate “false/no,” and “1” to indicate “true/yes”.

Note: To modify fixed criteria, the access group to which you belong must have permission to utilize the Advanced tab in the Reporter.

To demonstrate this feature, we will take an open work order report and create a new version that includes both open and closed work orders:

1. If you are continuing from Lesson 2, return to the Report Lookup and select the report that was created for this tutorial:

Note: Alternatively, you can use any open work order list for this lesson. It is preferable to have a “Days Open” calculation, similar to the one created in the previous lesson.

2. With the report highlighted, select the option to Copy Report.

3. Change the report name to indicate something similar to the following: “Your Name – Open/Closed WO Advanced Tutorial Report”:

Page 9: Reporter Tutorial: Advanced - MC User Connect

9 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

4. Select the Advanced tab and then select the SQL Structure sub-tab. If the Advanced tab does not display, your access group does not currently have permission to use this feature. You must contact your System Administrator for assistance.

5. The current fixed criteria is displayed in the Where (SQL) section of the page. In the above example, the report has fixed criteria to include only open work orders (WO.IsOpen=1). Remove this value so that the report will no longer filter to include only Open work orders:

6. Now that we have changed this to return all work orders, we should also move this report into the Work Order (Open/Closed) Reports Folder:

Select the Groups tab. Using the default Base Groups sub-tab, remove the check from Work Order (Open) Reports. Add a check to Work Order (Open/Closed) Reports.

7. In the Display fields list at the top of Report Setup window, let’s remove the Days Open field, and replace it with the dates the work orders were completed and closed. This will make it easier to identify which work orders are complete.

Remove Days Open from the Display fields list. Since there is a Custom Expression tied to this field, you will be asked to verify that you want to remove it from the report.

Add [WO] Complete to the Display fields list. Add [WO] Closed to the Display fields list. Move the fields so they are displayed directly after [WO] Requested. Your new field list should appear similar to the following:

Page 10: Reporter Tutorial: Advanced - MC User Connect

10 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

8. Click Apply to return to the Report List to run our newly copied report. Since the report has been moved to the Work Order (Open/Closed) Reports folder, you may need to change the selected Report Group in order to find the report:

9. Select the newly copied report and click Run Report:

10. With the Report Criteria dialog displayed, enter criteria that will limit the results appropriately for your organization’s data. For example, target date in within the Last/Next 3 Months:

11. Save your defined criteria and click Apply to open the report in the Report Preview window:

12. In viewing the report, you should see both open and closed work orders, with the Complete and Closed dates showing for those work orders that are closed:

Page 11: Reporter Tutorial: Advanced - MC User Connect

11 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

Fixed Criteria Examples The following list shows examples of fixed criteria that customers have found especially useful. This feature is often used to specify criteria that may be difficult to define using the standard prompts in the Report Criteria dialog.

The examples that are listed below would be entered in the Where (SQL) section of the Advanced Tab-> SQL Structure sub-tab.

Description Expression On an open work order report, show only work orders that are overdue.

WO.IsOpen=1 and WO.TargetDate<Getdate()

On a closed work order report, show only work orders that took more than 10 days to complete.

WO.IsOpen=0 and DATEDIFF(DAY,WO.Requested,WO.Complete)>10

On a closed work order report, show all work orders that have no value in the “Problem” field.

WO.IsOpen=0 and ProblemID is null

On a closed work order labor report, show only “actual” labor hours (exclude any estimated labor hours). Actual labor records are recorded with a WOLabor.RecordType of “2”.

WO.IsOpen=0 and WOLabor.RecordType=2

Note: As can be seen, fixed criteria typically includes the expression that determines whether open or closed work orders should be displayed.

Page 12: Reporter Tutorial: Advanced - MC User Connect

12 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

Lesson 4 – Editable Smart Reports Reports can include smart actions, allowing users to click on a row/column displayed in a report and have an action occur. You can even use “smart features” to allow editing of report fields from within a report, or updates to status (e.g., Issue work orders).

Note: Editable smart reports are a very powerful feature that can result in unintended consequences if not defined correctly (e.g., the wrong records updated). As such, it is strongly recommended that only data from the primary file (e.g., work order data in a work order report) be enabled for updating, such as that demonstrated in the following lesson. It is recommended that you obtain the assistance of Maintenance Connection Support prior to creating any editable smart reports of your own.

In this lesson, we will demonstrate how to use smart actions to edit the defined target dates, and then add buttons to change the status of the displayed work orders:

1. Return to the Report Lookup and locate the report you created in Lesson 1 (and modified in Lesson 2):

Note: You can copy any open work order list for this lesson.

2. With the report highlighted, select the option to Copy Report.

3. Change the report name to indicate something similar to the following: “YourName – Advanced Tutorial Smart Report”:

4. Click Apply when you are finished and you will return to the Report Lookup. The new report is likely to display by default, depending on what it was named and the “Managed By” Repair Center to which it was

Page 13: Reporter Tutorial: Advanced - MC User Connect

13 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

associated. If your new report does not display by default, modify the filters at the top or page through the Report List to locate it.

5. Select the newly-created report and click Run Report.

6. Click Apply from the Report Criteria dialog to run the report. The Report Preview window will display.

7. To define our smart actions for this report, select Setup from the Reports Toolbar.

8. Click on the Smart Elements tab and turn Smart Mode On from the default Smart Settings sub-tab:

9. Select the Smart Actions sub-tab. From this sub-tab, we can specify the type of smart action to enable.

10. To specify that we wish to designate a smart action for a specific column/field, set the Smart Action Type to Column (Multiple Smart Actions per Row). Any remaining prompts on this page will disappear.

11. Select the Smart Button(s) sub-tab. In order to have an editable report, we must specify that a Save button is needed on the report:

• Select Save from the Smart Button(s) dropdown control. • The Smart Button Field Value is an extremely important designation, as it defines the relationship

that instructs MC as to which tables/records to update. For updates to a primary file (Work Order, Asset), you select the primary field for the record that is shown. For this update to the Work Order record, you should select [WO]WO.

Page 14: Reporter Tutorial: Advanced - MC User Connect

14 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

12. Now, we can define the field on which we want the edit to be allowed. Let’s add the Target Date to this report, so we can define it to be editable. Once you have added the [WO] Target Date field, select it in the Display fields list and click the Edit button:

13. In the Report Field Options dialog that is displayed, set the Smart Action control (in the middle of the dialog) to Edit Field.

14. An additional field will display, allowing you to enter a Smart Action Tool Tip if desired.

15. Click Apply to close the Report Field Options dialog.

16. Click Apply again to save your changes and return to the Report Preview window.

17. Notice how the Target Date field is now editable, with a Save button displayed to save any updates:

Page 15: Reporter Tutorial: Advanced - MC User Connect

15 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

18. To modify a date, enter a new date and click the Save button. Notice how the record turns green to let you know that it has been updated.

Tip: The Save All button shown in the header row allows changes made to multiple rows to be saved in a single step. After saving, the page refreshes, showing the records that updated correctly in green and highlighting rows with errors in red. It is important to note that this feature saves ALL records displayed in the report, not just those for which an update has been entered. As such, it is wise to carefully define report criteria when performing a Save All to ensure performance efficiency.

19. Return to Report Setup so that we can add a smart action to allow these work orders to be issued from the report.

20. Return to the Smart Elements -> Smart Button(s) sub tab.

21. Open the Smart Button dropdown control and notice all the options available to change the status of work orders. Select Issue:

Page 16: Reporter Tutorial: Advanced - MC User Connect

16 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

Note: The Smart Button dropdown control even includes options to Complete or Close work orders. The options can be designated to function with and without the display of the Complete/Close dialog. The “No Dialog” options allow you to complete or close the work order without first being presented with the Complete/Close dialog.

22. Click the Apply button to return to the Report Preview window. An Issue button now appears at the far right of each row.

Page 17: Reporter Tutorial: Advanced - MC User Connect

17 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

Lesson 5 – Custom Group Headers Reports designated to group on a specified field show a header above each grouping, which displays the value in the field. In some cases, this description is not informative enough and an alternative header is desired. The MC Reporter has a feature that allows you to specify a custom header. The system includes some default custom headers, including some that can be used to aggregate date groupings (by month, day or year).

To demonstrate this feature, let’s sort a report by requested date, and use a custom header that groups by month:

1. If you are continuing from Lesson 4, return to Report Setup. Alternatively, access Report Setup for any Open Work Order Report that can be modified for training purposes.

Note: Custom Group Headers are only available on reports that are included in a Base Report Group, such as Work Order (Open) Reports.

2. On the default Sort/Group tab, remove any existing sort definition by selecting None for the first sort field.

3. Select [WO] Requested as Sort Field 1.

4. Click the Group indicator to ensure the results will be grouped for this sort. Then click the Custom Header indicator to the right of the Group Indicator.

Page 18: Reporter Tutorial: Advanced - MC User Connect

18 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

5. The Custom Header dialog will display:

6. Click the indicator at the top that says: Use Custom Header for Group 1

7. Select Group By Month:

8. Click Apply to close the Custom Header dialog. Click Apply again to preview the report. Notice how the records are now grouped by Requested Month, with a header that clearly indicates each month.

9. Now let’s take a peek at a valuable charting feature that is available when a custom header is used to group by a date aggregation (such as our Group by Month example). Return to Report Setup and select the Charts/KPI tab.

Page 19: Reporter Tutorial: Advanced - MC User Connect

19 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

10. Modify the existing chart display (or create a new one), as follows:

• Select Bar Chart as the type, and Flash as the format. • Select Automatic (Sort 1) as the Chart By field, instructing the Reporter to chart by our Sort 1

definition (Requested By Month). • Select Count as the Chart Function. • Enter a desired name for the Chart Name.

11. Click Apply to return to the Report Preview window and note how the chart displays a count of work order requests by month:

Page 20: Reporter Tutorial: Advanced - MC User Connect

20 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

Custom Header Tip The Custom Header dialog includes predefined options that are especially helpful when reports are grouped by asset (e.g., showing icon, name, ID and parent).

Note: Users with experience working with HTML can use the options in the Custom Header dialog to create their own custom headers.

Page 21: Reporter Tutorial: Advanced - MC User Connect

21 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

Lesson 6 – Summary Reports Summary Reports are used to display aggregations of data, such as sums, averages and counts. In the following example, a summary report was created that calculates both the number of incidents and total down time for different assets (or asset classifications).

Note: Pivot Reports are a special type of summary report that provide an expedient method for displaying aggregated data along two dimensions. For additional information on creating Pivot Reports, refer to the Pivot Report Tutorial available from MC User Connect.

Let’s create a summary report that provides the total count and average days to close for closed work orders (by priority).

1. Open the Report Lookup and select the Work Order (Closed) Reports folder.

2. Locate the Closed Work Order Count by Priority report and select Copy Report.

3. The report will open in the Report Setup window. Enter a descriptive name for your report, such as the following:

4. Click on the Groups tab and then select the Custom Groups sub-tab. Place this report in your custom report folder:

5. Click Apply when you are finished to return to the Report Lookup.

6. Once back to the Report Lookup, locate your newly copied report and click Run Report. The report should be in your Custom Report Group and the Work Order (Closed) Reports Folder.

Page 22: Reporter Tutorial: Advanced - MC User Connect

22 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

7. In the Report Criteria window, change the Target Date filter as desired. For example, you could include all work orders targeted in the current year. If it is early in the calendar year, you may wish to change this to a broader filter to ensure sufficient records are included.

Note: If you prefer to base your criteria on the Work Order Complete/Closed Date, you can modify the Report Criteria dialog to include this field. For more information on this capability, see the Intermediate Reporter Tutorial available from MC User Connect.

8. Click the Save Criteria option in the lower left of the Report Criteria dialog and then click Apply to run the report. The report will display in the Report Preview window.

9. Click the Setup icon to modify the set up for this report:

10. The Report Setup window will display, showing the fields currently defined for the report in the Display fields list on the right.

[WO] Priority Desc and [WO] Count should already be listed, so should not need to be changed. Any additional fields, such as [WO] Priority should be removed. The list should appear as follows:

11. Let’s add a field to calculate the number of days the work order was open. Remember, to create the calculated field, you must specify a placeholder field on which the calculation will be specified:

• Select a field from the Available fields list to use as a placeholder. It must be a field that is not already listed in the Display fields list. For our example, you could use a UDF field such as [WO] UDF Field 10 and move it to the Display fields list.

Page 23: Reporter Tutorial: Advanced - MC User Connect

23 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

12. Select the placeholder field in the Display fields list and click Edit just below the field list. The Report Field Options dialog will display for this field.

Enter the desired Label for the report column in the Field Label (Custom) prompt. In our example, you could enter “Avg Days to Close”.

Select the appropriate Field Type for your calculated result from the Field Type dropdown. In our example, you should select Numeric, as we will be calculating the number of days using this field.

Enter the Aggregate Function. Since we wish to calculate the average days to complete, enter “AVG” for average.

The Report Field Options should appear as follows:

13. Click the Yes control in the Custom Expression? field prompt, letting the system know that a custom calculation or expression will be used.

In our example, we will create a custom expression that calculates the number of days between the date the work order was “requested” and “completed’, using the DATEDIFF function. Enter “DATEDIFF(DAY,WO.REQUESTED,WO.COMPLETE)”into the Custom Expression Box:

Page 24: Reporter Tutorial: Advanced - MC User Connect

24 | P a g e © Maintenance Connection, Inc. – MC v6.0 - Reporter Tutorial – Advanced (11/2012)

14. Click Apply to return to the Report Setup window.

15. On Summary Reports, it is important to ensure that the Sort 1 field matches the first Display field listed. To ensure proper sorting, change the first sort field to Priority Desc.

Remove any additional sort fields so that only the following is displayed:

16. Access the Layout tab and verify that the report is specified as a Summary Report:

17. To save your changes and view them in the report, click the Apply button at the bottom of the Report Setup window.

18. The results might appear as follows: