Merging Reports
Overview
Analytics allows the creation of custom reports built around defined datasets (Explores).
![](../../__attachments/3120366031/msedge_mPJvLWN8ry.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
These Explores have been predefined by AppsAnywhere to present relevant data about AppsAnywhere installation and usage.
A lot of the time you will be able to pull the relevant information from a single Explore, but there will be occasions when you need to pull data from two or more Explores in order to add relevance to a particular report. To do this we can use the Merge Reports function within Analytics.
Why Merge Reports?
The report below is an example of where data from two Explores have been merged to provide a single set of results.
![](../../__attachments/3120366031/msedge_Y2TCBkeF00.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
This report consists of data from the two Explores
App/Desktop Metered Run TImes
Fields Used:
App/Desktop Name
Total Run Time
Launches
Fields Used:
App/Desktop Name
Number of Launches
The App/Desktop Metered Run TImes contains calculated totals for how long a particular application has been running but doesn’t have information of the number of application launches, however, this is contained in the Launches Explore.
As you can see, both of these Explores do share some fields, so in our example, we will merge using the App/Desktop Name value that exists in both.
How to Merge Reports
The first step is to choose one of the two Explores you intend to use and create the basic report as you would normally. Below we will start with the Launches Explore.
![](../../__attachments/3120366031/image-20210930-110032.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
Here the App/Desktop Name has been selected
Then the Number of Launches was selected
(Optional)To make the report more manageable, it has been limited to the top 10 results
For the visualisation, we have chosen to display as a Table
![](../../__attachments/3120366031/msedge_F0oufCB0Mx.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
Now instead of saving this report as a Look or to a Dashboard, we can choose the Merge Reports function from the Settings icon to bring in a second Explore.
![](../../__attachments/3120366031/image-20210930-110209.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
You are now prompted to choose the second Explore you wish to use. In our example, we will proceed with the App/Desktop Metered Run Times Explore
![](../../__attachments/3120366031/image-20210930-110238.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
On the next screen, we choose the fields we want to report on.
Here the App/Desktop Name has been selected
Then the Total Run Time was selected
(Optional)To make the report more manageable, it has been limited to the top 10 results
![](../../__attachments/3120366031/msedge_rYKGbsFCcO.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
When you select time-based results, such as Total Run TIme they will be displayed as seconds. Whilst this is accurate, it is not ‘human readable’ so we can perform a Calculation to format this value as shown in the example below.
![](../../__attachments/3120366031/msedge_a93Ewi3CDk.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
Now that the two reports have been created, select the Save button at the top right on the menu bar to merge the reports.
![](../../__attachments/3120366031/image-20210930-110340.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
The next screen should now display the overview of the merged results.
![](../../__attachments/3120366031/image-20210930-110408.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
On the left, the two Explores are listed. If you click the link you can go back and edit these.
The Merge Rules displays the fields that you report with merge on. In our case this is the App/Desktop Name field that exists in both Explores.
Hit Run to see your merged report.
If you wish to add a third or fourth Explore, then simply click the Add Query button on the left of the screen to repeat the above process.
![](../../__attachments/3120366031/image-20210930-110427.png?inst-v=94a28de5-07b6-4c9a-bd45-302486da2a3e)
The report is now displaying the top 10 applications based on runtime and launches, pulling the data from the multiple Explores that you have selected.
Now simply save your report to a Dashboard in the normal manner.
Further information can be found directly on the Looker website