Reporting
In the BlockSync portal, the Reports tab for each block model contains any reports that have been generated for different versions of the block model. Reports are based on templates that determine what columns are reported on and their relationships to one another. In each template you can also:
- Set multiple cut-off values based on one of the model's numeric columns
- Choose a column to use for density or set a fixed value
- Set how null values and negative values are handled
- Change how columns are displayed in the report
When a template is first saved, a first report is run based on the latest version of the block model. Reports on earlier versions can be generated on demand.
Templates can be set up so reports are run automatically when a new version of the block model has been added to Evo. You can also:
- Compare reports on two versions of the block model
- Create charts using the information in reports
Here we have the Reports tab (A) for a block model showing a series of report templates (B), along with information on when each report was last run (C) and whether it is up-to-date:
Click on a report to view the latest version of it or click the Create report button to start creating a new template.
This topic describes how to set up templates and generate reports. It is divided into:
- Setting up a block model for reporting
- Creating a report template
- Viewing the first report
- Editing templates
- Copying and exporting report information
- Exporting and sharing reports
Separate topics cover Comparing report versions and Creating charts.
Setting up a block model for reporting
If no reports are available for a block model, you will need to create a new one.
Before you can do this, you need to:
- Set the units used for the numeric columns that will be used in reports
- Set the units used for the block size
Setting units for numeric columns
To set up the numeric columns for generating reports, click on the block model’s Columns tab. If a numeric column does not have its unit set, that will be indicated in the Unit column as shown here:
Set the unit for the numeric columns you wish to use in creating a report template, then click Save. You will be prompted to enter a comment for the new version of the block model as setting column units creates a new version.
Setting the block size unit
What units a block model uses is usually set when it is imported or published to BlockSync. However, for some older models, it may be necessary to set the units. If this is the case, click the block model’s Configuration tab. The Block size unit setting is underneath the block model information:
Creating a report template
Before you can generate a report on a block model version, you need to create a template for that report. Start in the Reports tab by clicking Create Report. In the window that appears, start defining the report template, section by section.
- Give the template a unique name and description. Consider that over time the block model may have a large number of report templates and the name and description make it easier to distinguish between similar reports in the Reports tab.
- Add category columns and numeric columns. The columns used can be edited once the report template has been saved, so you can make changes if on viewing the first report you wish to organise the information in a different way. Adding and organising columns is discussed in more detail below.
- Choose the cut-off and density columns, if required. If you are using a cut-off column, specify the cut-off values by entering them in the box and pressing the Enter key.
- Change how null values and negative values are handled, if required. By default, both null and negative values are marked as invalid. How null and negative values are handled is discussed in more detail below.
- Deciding whether you want new reports to be run automatically when the block model is updated. This is useful for block models that are regularly updated as the report will be available soon after the updated is published. If later the report is no longer being used, it is a good idea to disable this setting, especially if the report is for a large block model.
Clicking Create and run saves the template and generates the report for the latest version of the block model.
Choosing columns
You can include multiple category and numeric columns in the report.
- Category columns are nested and you can use category and numeric columns. There is a limit of 5 columns for the category columns.
- Numeric columns are not nested. You can use as many numeric columns as you wish, but do consider that running large reports can take some time, especially for large block models, and can be difficult to navigate.
When using numeric columns as category columns, choose columns where the values represent a discrete set of codes, such as domain IDs, mineralisation zones or rock type codes. Avoid choosing columns of continuous data as each unique value will create its own row in the report.
To add a column to the template, click one of the Add column buttons. Choose from the columns available (A) and edit its name (B) if you wish to use a different name in the report. Finally, click the Add button (C) to add the column to the report.
The process is the same for adding numeric columns.
For each column, there is a delete button (D) and a handle (E) for changing the column’s position in the report.
Changing null and negative value handling
By default, BlockSync marks both null and negative values as invalid when generating reports. This “Mark as invalid” policy makes null and invalid numeric values explicit in affected grade or metal-content results, while volume and mass continue to be calculated from all contributing blocks.
Alternatives to the default Mark as invalid policy are:
- For null values, the alternative is to use zero.
- For negative values, the alternatives are to use the negative value or use zero.
Viewing the first report
When you click Create and run for a new report template, the template will be saved. The report will be generated for the latest version of the block model and displayed.
In this report, there are some invalid results related to the As_Final column that results in invalid entries in the report:
Clicking the button displays more information:
The different versions of the block model are shown in the dropdown list:
If you choose another version, you will be prompted to generate a report for that version. If a report already exists, it will be displayed right away.
Resize columns by dragging their left or right margin.
Move numeric columns by clicking on a header and dragging it. Category columns cannot be moved as their order is a hierarchical relationship.
Right-click on a column header to view options for:
- Autosizing the column according to its contents
- Autosizing all columns
- Choosing which columns are displayed in the report
- Restoring any hidden columns and resetting column sizing to that used when the report was first generated
Editing templates
You can edit existing report templates and save the changes against the existing report or create a new report template based on an existing template.
In both cases, start by editing an existing template. Do this either by clicking on the Edit Report button in the Reports tab or by opening the report and then clicking Edit Report:
Once you have made changes to the report template, choose whether to save the changes against the existing template or create a new one.
The report template will be saved and a report will be generated for the latest block model version. If you choose to save the template as a new template, it will be added to the Reports tab with (New) appended to the original report template’s name.
Copying and exporting report information
You can copy the information from the report for use in other applications. To do this, first select the rows and columns you wish to copy, then right-click on them.
- The Copy option copies the selected data to your computer’s clipboard and you can then paste it into another application.
- The Copy with Headers option copies the selected data and its headers.
- If the data selected is part of a grouped column, Copy with Group Headers includes both the headers the grouped headers for the selected rows.
- The Export option exports all data in the report in the selected format. There are two options, in *.csv format and in Excel *.xlsx format.
You can also create charts from the selected data, which is described in the Creating charts topic.
Exporting and sharing reports
There are three options for exporting and sharing reports:
- The copy button (
) copies the data in the report to your clipboard in *.csv format. - The download button (
) saves a copy of the report in *.xlsx format to your browser’s download location. - The copy link button (
) copies a link to your clipboard you can share with other members of your team.
