Creating a report with filters, summarization, and calculations
The following example demonstrates how to retrieve the number of jobs that exist in job folders.
Domain | Report name | Features used |
---|---|---|
Job Activity | Number of jobs in job folders |
|
You add a filter so that deleted jobs are not counted. You add the Concatenate summarization function to concatenate the Parent Folder Path and Job Folder Name columns to get the full path of a job. You use the Count summarization function to count the number of jobs.
To create a report with filters, summarization, and calculations
- Launch Query Studio from the BMC Decision Support for Server Automation portal.
- Select a package (for example, BladeLogic) from the list of available packages.
- Click the Run Report link.
- Click the Preview with No Data link.
- Click the Insert Data link.
- Open the Job Activity folder and drag the following query items to the right pane:
- Job/Parent Folder Path
- Job/Job Folder Name
- Job/Job Name
- Open the Job Activity Filters folder and drag the Job is not deleted filter to the right pane.
- Select the Parent Folder Path and Job Folder Name column names and click Calculate on the toolbar.
- From the Operation list, select Concatenation.
- In the Separator between report items field, specify / as the separator.
- Click Insert.
The calculated results appear in a new column, Parent Folder Path/Job Folder Name. By default, the expression used in the calculation is used as the heading name. - Right-click the Job Name column and select Summarize.
- Click the Advanced link.
- From the Summary for cells list, select Count.
- From the Summary for footers list, select None, and click OK.
- Select the Parent Folder Path column and click Delete on the toolbar.
- Select the Job Folder Name column and click Delete on the toolbar.
- Double-click the Job Name column and specify Job Count as the new name of the column.
- Click the Run Report link.
- Click the Run with All Data link.
- Save the report.
The following figure shows a sample report, which is created by using the preceding steps:
Related topics
Query-Studio
Creating-reports-with-Query-Studio
Domain-specific-report-examples
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*