Analytic snapshot

An analytic snapshot is used to run a report on historical data. We can save tabular or summary report results to fields on a custom object, and then map those fields to the corresponding fields on a target object. We then schedule when to run the report to load the custom object's fields with the report's data.

For example, the library manager can set up an analytic snapshot that reports on the books that have been checked out every day at 5:00 p.m. and store the data in a custom object. The library manager can then spot the trends in book issuing and the readership.

Setting up an analytical snapshot

Before we set up an analytical snapshot, we require the following two things:

  • Source report: The source report is the custom report created using the report builder. It can have columns of more than one object.
  • Target object: The target object is the custom object that contains fields that are similar to columns in the report.

We need to make sure all the columns in the report map with the fields are in the target object. The fields should be created in the target object.

If you need help in setting up the report or the object, refer to the Chapter 5, Data Management. Once these two are in place, let's proceed to set up the analytical snapshot:

  1. Go to User Name | Setup | Administration Setup | Data Management | Analytic Snapshots.
  2. Click on New Analytic Snapshot and give it an appropriate name:
    Setting up an analytical snapshot
  3. As shown in the preceding screenshot, the data loaded in the object will be based on the sharing settings for the running user.
  4. Select the target object and the source report; now, click on Save and Edit Field Mappings. The mapping page allows us to map the fields from the report to the fields in the object.
  5. If the source report is a summary report, select the level of grouping, as shown in the following screenshot:
    Setting up an analytical snapshot
  6. Map the fields from the source report to the target object, as shown in the following screenshot:
    Setting up an analytical snapshot
  7. Click on Edit on the Schedule Analytical Snapshot related list, as shown in the following screenshot:
    Setting up an analytical snapshot
  8. The scheduler is shown in the preceding screenshot; it is similar to the one used in reports and dashboards and has similar options. Hence, it won't be repeated again.

    Tip

    We can save the analytic snapshot any time we want while creating it. If the snapshot isn't scheduled, it won't run. If we save it accidently while creating it, it can be scheduled from the snapshot page.

Now that we have a record of the historical data in the target object, we can run the report on it to analyze trends.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.247.16