Skip to content

Reports

Reports are a tool for generating and viewing data summaries and insights within the application. They allow users to create custom reports based on various data sources and criteria.

To access the Reports module, you can use the global navigation or the settings panel. First, go to the settings page by clicking on the profile icon in the top right corner and selecting “Settings”.

Settings Option

Then, in the settings panel, you will find the “Reports” option in the sidebar.

Reports Settings Option

Using the filter button, a side panel will open with a search input to find the report you are looking for, if any.

Reports Filter Input

To create a new Report, click on the “Add Report” button located at the top right corner of the page.

The next screen will display a form where you can enter the details of the new report, such as name, description, and filter criteria. The switch button for “Continuous update” allows the report to automatically refresh its data at regular intervals, ensuring that the displayed information is always up to date without requiring manual refreshes. Each of the fields for filter criteria can be configured to refine the data that will be included in the report.

Report Basic Information

First, it is possible to create a variable that will be used in the report.

Report Filters

For example, you can create a variable for the date range or specific user segments. Start by clicking on the “Add Variable” button. Next, fill in the variable name, label, and type.

Add Variable Button

The types available for variable creation are:

  • Date and Time
  • Boolean
  • String
  • Number
  • Date

After filling in the form, click on the “Continue” button to proceed. The variable will now be listed in the variables section. It is also possible to edit or delete a variable by clicking on the respective icons next to each variable in the list.

Variables List

When a variable is edited, a modal will appear with the variable details. You can modify the name, label, and type of the variable.

Edit Variable Modal

Next, the report can be configured by adding the necessary sections to be included in the report. To add a section, click on the “Add Section” button.

You can choose from different types of sections, as shown below:

  • Table: This section will display the data in a tabular format.
  • Pie Chart: This section will display a pie chart to visualize the data distribution from a specific field.
  • Bar Chart: This section will display a bar chart to visualize data trends over time or across categories.
  • Counter: This section will display a single value, such as a total count or sum over a field.

The configuration options for each section will vary depending on the type of section selected. This guide will demonstrate how to configure each type of section.

  1. Create a new section.

    Add Section Button
  2. Select “Counter” as the view type.

  3. Fill in the section name and size (from 1 to 12).

    Counter Section Header
  4. Use the gear icon to open the configuration modal in the top right corner of the section.

    Counter Section Configuration
  5. In the configuration modal, select the data source for the counter. This will be the entity from which the data will be fetched.

    • Optionally, you can apply filters to the data by clicking on the ”+ Rule” button and selecting the desired criteria.
    • Optionally, you can use variables created earlier in the rules for the counter display.
    Counter Section Configuration Query
  6. Next, configure the Report fields for the section.

    • Add a row by clicking on add field button and select the field from the field dropdown.
    • Then choose the operation to apply from the operation dropdown.
    • The available operations include Direct, Group, Count, SUM, AVG, MIN, and MAX.
    • For Counter sections, aggregation operations such as Count, SUM, AVG, MIN, or MAX are commonly used to display a single summarized value.
    • Direct returns the field without aggregation.
    • The rows can be reordered by dragging them.
    • The icon for the section can also be selected in this step.
    • The color for the section display can also be selected in this step.
    Counter Section Configuration Fields Counter Section Configuration Fields Second Image
  7. Click on the close icon in the top right corner to save the configuration.

  8. Remember to save the report by clicking on the “Save” button located at the bottom right of the page.

  1. Create a new section.

    Add Section Button
  2. Select “Pie Chart” as the view type.

  3. Fill in the section name and size (from 1 to 12).

    Pie Chart Section Header
  4. Use the gear icon to open the configuration modal in the top right corner of the section.

    Pie Chart Section Configuration
  5. In the configuration modal, select the data source for the pie chart. This will be the entity from which the data will be fetched.

    • Optionally, you can apply filters to the data by clicking on the ”+ Rule” button and selecting the desired criteria.
    • Optionally, you can use variables created earlier in the rules for the pie chart display.
    Pie Chart Section Configuration Query
  6. Next, configure the Report fields for the section.

    • Add one or more rows by clicking add field button in the Report fields area.
    • For each row, select a field and then choose the operation to apply.
    • The available operations include Direct, Group, Count, SUM, AVG, MIN, and MAX.
    • In most pie chart use cases, one field is configured with Group to define the slices, and another field is configured with an aggregation such as Count or SUM to define the slice size.
    • Direct returns the field without aggregation.
    • The rows can be reordered by dragging them.
    • The icon for the section can also be selected in this step.
    • The color for the section display can also be selected in this step.
    Pie Chart Section Configuration Fields Pie Chart Section Configuration Fields Second Image
  7. Click on the close icon in the top right corner to save the configuration.

  8. Remember to save the report by clicking on the “Save” button located at the bottom right of the page.

  1. Create a new section.

    Add Section Button
  2. Select “Bar Chart” as the view type.

  3. Fill in the section name and size (from 1 to 12).

    Bar Chart Section Header
  4. Use the gear icon to open the configuration modal in the top right corner of the section.

    Bar Chart Section Configuration
  5. In the configuration modal, select the data source for the bar chart. This will be the entity from which the data will be fetched.

    • Optionally, you can apply filters to the data by clicking on the ”+ Rule” button and selecting the desired criteria.
    • Optionally, you can use variables created earlier in the rules for the bar chart display.
    Bar Chart Section Configuration Query
  6. Next, configure the Report fields for the section.

    • Add one or more rows by clicking add field button in the Report fields area.
    • For each row, select a field and then choose the operation to apply.
    • The available operations include Direct, Group, Count, SUM, AVG, MIN, and MAX.
    • In most bar chart use cases, one field is configured with Group to define the bar categories, and another field is configured with an aggregation such as Count, SUM, or AVG to define the bar height.
    • Direct returns the field without aggregation.
    • The rows can be reordered by dragging them.
    • The icon for the section can also be selected in this step.
    • The color for the section display can also be selected in this step.
    Bar Chart Section Configuration Fields Bar Chart Section Configuration Fields 2
  7. Click on the close icon in the top right corner to save the configuration.

  8. Remember to save the report by clicking on the “Save” button located at the bottom right of the page.

  1. Create a new section.

    Add Section Button
  2. Select “Table” as the view type.

  3. Fill in the section name and size (from 1 to 12).

    Table Section Header
  4. Use the gear icon to open the configuration modal in the top right corner of the section.

    Table Section Configuration
  5. In the configuration modal, select the data source for the table. This will be the entity from which the data will be fetched.

    • Optionally, you can apply filters to the data by clicking on the ”+ Rule” button and selecting the desired criteria.
    • Optionally, you can use variables created earlier in the rules for the table display.
    Table Section Configuration Query
  6. Next, configure the Report fields for the section.

    • Each row represents one column or returned value in the query.
    • Select the field from the field dropdown.
    • Then choose the operation to apply from the operation dropdown.
    • The available operations include Direct, Group, Count, SUM, AVG, MIN, and MAX.
    • Direct returns the original field value without aggregation.
    • Group can be used when the table should display grouped results.
    • Aggregation operations can be used to display summarized values in the table.
    • The rows can be reordered by dragging them. In table sections, this order determines the order of the columns shown in the table.
    • The icon for the section can also be selected in this step.
    • The color for the section display can also be selected in this step.
    Table Section Configuration Fields Table Section Configuration Fields 2
    • The columns shown by the table component can also be configured by adding or removing rows in this step.
    Table Section Configuration Columns
  7. Click on the close icon in the top right corner to save the configuration.

  8. Remember to save the report by clicking on the “Save” button located at the bottom right of the page.

How to use the Report Custom Query Builder?

Section titled “How to use the Report Custom Query Builder?”

This builder allows you to create complex queries to filter, group, and aggregate data for your reports. To access it, use the configuration button (gear icon) in the top right corner of each section.

In the Custom Query section of the configuration, you can define:

  • The main data source
  • Optional joins with related entities
  • Filter rules and grouped conditions
  • The report fields that will be returned by the query

Select a main data source for the query. It must be an entity available in the application.

  • Using multiple data sources is supported through the Include entity option, which allows you to join related entities to the main data source.
  • The Include entity option creates a basic join structure from the available dropdowns. Please fill them according to your needs:
    • Type of join: Inner, Left, Right
    • First entity: main entity selected for the query
    • First field: field from the main entity to be used in the join
    • Second entity: related entity to be joined by the query
    • Second field: field from the related entity to be used in the join

Example of a join between two entities:

Include Entity in Custom Query

Add rules to filter the data by clicking on the + Rule button and selecting the desired criteria.

  • You can use variables created earlier in the rules for the section display.
  • Grouping of rules is supported through the + Group button, which allows you to create nested conditions using AND / OR.

Example of a rule using a variable:

Add Rule in Custom Query

Example of a group of rules:

Add Group in Custom Query
  • Add rules to filter the data by clicking on the ”+ Rule” button and selecting the desired criteria.
    • You can use variables created before in the rules for the section display.
    • Example of a rule using a variable: Add Rule in Custom Query
    • Grouping of rules is supported by using the ”+ Group” button, which allows you to create nested conditions for the query using AND/OR operators.
    • Example of a group of rules: Add Group in Custom Query

There are some available operators for the rules, as seen in the following image: - The default operator is “equals”, but you can change it by clicking on the operator dropdown.

Operators in Custom Query

The Report fields area defines the columns or values returned by the query.

Each row in this section represents one returned field and includes:

  • A drag handle to reorder the field
  • A field dropdown to select the field
  • An operation dropdown to define how the selected field will be returned
  • A remove button to delete the row

Use the Add field button to add more returned fields.

The available operations are:

  • Direct: returns the selected field without aggregation
  • Group: groups the result set by the selected field
  • Count: counts matching rows or values
  • SUM: sums the selected numeric field
  • AVG: returns the average of the selected numeric field
  • MIN: returns the minimum value of the selected field
  • MAX: returns the maximum value of the selected field

The builder also includes validation and helper behaviors to make query configuration easier.

  • If a field is added with the Group operation and there is no matching Direct field for it, the system will automatically try to add a Direct field for that grouped field.
  • If the query contains Direct fields together with aggregation operations such as AVG, Count, SUM, MIN, or MAX, the system will show the following warning:

Warning: You have direct fields with aggregations. Consider grouping the direct fields or removing the aggregations.

This warning helps prevent inconsistent query results when aggregated values are mixed with non-grouped direct fields.

The report fields list supports drag and drop.

You can drag rows to change the order of the returned fields in the query result. This is especially useful for table sections, where the order of the rows in Report fields determines the order of the columns displayed in the table.

  • Use Direct when you want to return the raw value of a field.
  • Use Group on a category or status field to group results by that field.
  • Use Count together with Group to count records per category.
  • Use SUM together with Group to total an amount field by category.
  • Use AVG, MIN, or MAX when you want summarized numeric results.
  • If you group by a field and do not add the same field as Direct, the system may automatically add the Direct field for you.
  • If you keep Direct fields together with aggregation operations, the system will display a warning suggesting that you group the direct fields or remove the aggregations.

To view a report, go to the Reports module and click on the “View” button next to the desired report.

  • Using the filter input at the top can help you find the report you are looking for.

    Reports Settings Option

This will open the report in a new page, where you can see the data visualizations and summaries based on the configured sections.

View Report
  • By using the filter variables created earlier, you can refine the data displayed in the report.

    Report View Filters

To assign a report to a role, go to the Roles module in the settings panel. Select the desired role from the top dropdown menu, the role to which you want to assign the report.

Roles Settings Option

Next, set the “Home Report” field with the desired report to be assigned to the role.

Assign Report to Role

Click on the “Update” button located at the bottom right of the page to save the changes. The role will now have the selected report assigned as the home report, which will be displayed on the dashboard when a user with that role logs in.

  • Use the filter input at the top of the Reports module to quickly find the report you are looking for.
  • Remember to save the report after making changes by clicking on the “Save” button located at the bottom right of the page.
  • When using the “Include entity” option in the Custom Query Builder, ensure that the join fields are correctly selected to avoid incorrect data retrieval.
  • In the Report fields section, each row has its own field selector and operation selector. Be sure both are configured correctly.
  • Use Direct when you want the raw field value without grouping or aggregation.
  • Use Group when you want to group the result set by a field.
  • Use aggregation operations such as Count, SUM, AVG, MIN, or MAX when you want summarized values.
  • If you add a field with the Group operation, the system may automatically add the same field as Direct when needed.
  • If you see the warning Warning: You have direct fields with aggregations. Consider grouping the direct fields or removing the aggregations., review your report fields configuration carefully.
  • When using aggregation operations, make sure any non-aggregated fields are grouped appropriately.
  • You can drag and drop report field rows to reorder the query output. In table sections, this also changes the display order of the columns.
  • Be careful when combining grouped and non-grouped fields, as the results may differ from what you expect.
  • The default operator for rules is equals, but you can change it by clicking on the operator dropdown.
  • When creating variables for report filters, use descriptive names to easily identify their purpose. Numeric label values are also supported.
  • Experiment with different section types and configurations to find the best way to visualize your data. Each section type (Table, Pie Chart, Bar Chart, Counter) has its own strengths and use cases.

My report is not showing sections within it, what can I do?

Section titled “My report is not showing sections within it, what can I do?”
  • Ensure that you have added sections to the report and configured them correctly.
  • Ensure that the data source entities selected for each section have data available.
  • Change your filter criteria to be less restrictive, or remove them temporarily to verify that data is being fetched.
  • If you are using the Custom Query Builder, double-check your query logic, joins, rules, selected report fields, and field operations to ensure they are correctly configured.
  • If a warning appears about direct fields with aggregations, review the report fields and make sure direct fields are grouped correctly or that unnecessary aggregations are removed.
  • If you are using aggregation functions, verify that the selected fields and Group operations match the kind of result expected by the section.