Building a Report (Part 2 of 3)
← Part 1 | Part 2 of 3 | Part 3 →
This Join Type causes the report to display all records from the main table that is being joined to (the “left” table), along with any matching records from the joining table (the “right” table). Records from the joining table are matched on the common column; where no match exists, the main table’s record is still included and the joining table’s columns are left empty.
• Inner Join Type
The Inner Join Type causes the report to display only values that are common to both the main table (the “left” table) and the joining table (the “right” table). The common column that is used for the join determines the values that must match on both tables.
• Union (advanced function)
Based on the common column between the two tables that are being joined, the Union statement will cause the report to show only records that have unique values from either table (i.e. records from each table that happen to have the same value will not both be displayed - only one of those records will be used on the report).
• Union All (advanced function)
The Union All statement will pull in all of the records from the two joining tables based on their common column, including records that have duplicate values for this common column.
Once you have joined your datasets, you will have access to the Simple and Smart columns that you created on the aggregate dataset.
4. The previous steps are used for building your master report, which is shown on the right-hand side of the Business Intelligence tool. This report consists of the columns that you have chosen from your dataset tables. This main report is a large conglomerate of this data; now, in order to make this data more easily digestible, and to be able to share it in Site Planner, the next step is to create a View for your report.
Views:
As indicated by its name, a View is another “lens” which you can view your data through. Each view that you create has its own set of modifiers and conditions that you can apply to your data. For each view, you will also pick and choose the View Columns that you need, from your main list of report columns.
The individual nature of the views makes it easy for you to generate multiple “reports” from one main master report, and to manipulate the data in varying ways in each view. It is a report’s views, also, that are available to the Site Planner’s Report module; using this module, these views are able to be published to your Dashboard pages, for easy access and use.
As discussed in previous sections, the list of views for your report is denoted by the blue eye icon, and each individual view is denoted by the white eye icon.

To add a new view, right-click on Views, and choose “Add View”. Choose a name for your view - this will be displayed on the front end of this view on any Dashboard pages that you publish this view on. Once you have chosen a name, “Save & Close”.

When you open up the view you have created, there will be an empty view columns list. You can right-click on this list and add a Simple column or create a new Smart column for the view. Either type of column that you choose to include in the view will pull from the columns that you chose for your main master report.

Previewing Reports:
To preview your reports, you will generate the master report within the Business Intelligence tool. You can do this by clicking the gray arrow icon that is to the right of the report’s name. You can also click the “Regenerate Report” text that is in the top-right of the report display window.
(Note: You may need to regenerate the master report periodically while you are building, to refresh your master report’s results.)


To preview your views, you can click on the white eye icon that is to the right of the view’s name. This will open the view in a new tab, where you can see it live. While you are working on your report, you can refresh the tab that is previewing the view to update it.

5. There are a few more ways we can customize the results of our reports and views, which we will briefly discuss here. These modifiers give you even more flexibility in how you manipulate the report data to fit your needs.
Modifiers:
As mentioned in previous sections, each dataset and each view that is added to your report is given its own list of modifiers that can place specific parameters on the data of your report. These modifiers can be set on your master report and/or on each individual view, for different report results. These modifiers include the following:

Conditions
Conditions are modifiers that are helpful to restrict the type of information that your report returns. You can choose to add Conditions, Smart Conditions, and Logical Operators.
You may choose to limit your report to show only results that meet specific criteria. One way to achieve this is to add a simple condition by right-clicking Conditions and choosing “Add Condition”. A window will appear that will allow you to choose the model (table) that you want to reference, select the column from that table that you want to place the condition on, and choose the type of condition that you want to place on the column.

In the example shown here, this condition will be placed on the “Lastname” column from the Person table. This condition will limit the results of the report to show only those records whose last name is equal to “Smith”.
You may also choose to add a Smart Condition to your report, by right-clicking Conditions and choosing “Add Smart Condition”. Smart Conditions, much like the Smart Columns that were discussed in earlier sections, allow you to choose multiple columns from the tables of your report and perform more complex functions on them.

By right-clicking on Conditions, you are also given the option to “Add Logical Operator”. Selecting this option gives you the choice of adding an “AND” statement or an “OR” statement to act between your other conditional statements.
Example: c_462 >= '2019-07-01' AND c_470 = 'true'
Group By
The Group By statement will group all of the entries of a report by a specified column. This is helpful when, for example, your report generates multiple entries of the same person, just because that person’s record might have multiple values for specific columns. (These values cannot be listed in a single entry on their own, and so the report generates an entry for each value.) By grouping these entries by a specific column, all of the entries will be condensed into a single line.
Note that it is important to use aggregate functions when you are using a Group By statement, as compressing these entries into a single line will cause the report to randomly choose a single value for the columns that previously had multiple values. The required aggregate functions are discussed in the next section.
In this example, we have chosen to Group By the “Person Id” column:

Having
Having is a specific method of filtering that is only useful when you use it with the Group By clause.
Order By
You can choose to order by a specific column, or by multiple columns, by using an Order By statement. Double-click on Order By and choose your desired column from the list to order your report. By selecting this column, the report will default to sorting in ascending order, but you can clearly define the sort direction by using the “ASC” statement for ascending, and the “DESC” statement for descending. Declare this statement directly after the column that you select.
If you would like to sort by multiple columns, separate your statements by commas. The report will be sorted by the first column first, etc.
.png)
.png)