In Open source BI Helical Insight versin 6.1.0.826, the Crosstab component has been introduced in the Canned Report module to display summarized data in a matrix/pivot format. This component allows report designers to organize query results into row and column groups, apply aggregate functions on measures, and generate comparative and analytical views, making it easier to analyze data across multiple dimensions within report.

Steps to create a cross tab visualization in Canned Reporting :

  1. Create a data source connection

    Refer the following documentation for this step https://www.helicalinsight.com/data-sources-page-overview-in-canned-reporting/

  2. Once the datasource connection is created, select the connection and write the SQL query. Click on Save and Run to execute the query

    The first 10 records of the result set will be displayed in the Data Preview section, this is helpful to understand whether the data being fetched from the SQL is correct or not.

    Usage of Crosstab Component in canned Reporting

  3. In the CANVAS tab, you will find the Cross Tab component under the Elements list

    Usage of Crosstab Component in canned Reporting

  4. Drag the Cross Tab component onto the canvas, then right-click on it and select the ‘Repeat‘ option as neccesary.

    Mostly ‘By Report‘ will be used.

    Usage of Crosstab Component in canned Reporting

  5. Click on the Cross Tab component.

    On the right side, you will see the Cross Tab configuration options/Properties

    Usage of Crosstab Component in canned Reporting

    1. Query

      • Purpose: Specifies the data source for the cross.
      • How it works: While making the datasource connection, we have written query. We can write multiple queries also there. You can select a query (like Query1) which will be used for the table.
    2. Select Fields

      Please select the columns from the query that you want to display in the crosstab.

    3. Usage of Crosstab Component in canned Reporting

    4. Select Columns

      Select the fields to be used as crosstab columns

    5. Select Rows

      Select the fields to be used as crosstab rows

    6. Select Measures

      Specifies the numeric fields and aggregation functions (such as sum or count) used to calculate values in the crosstab cells.

    7. Measure Aggregate Functions

      Defines how measure values are aggregated across records, such as sum, average, count, minimum, or maximum.

      Select the Aggregate to be used for the selected measure/measures.

      Usage of Crosstab Component in canned Reporting

      We have selected the following fields to generate the crosstab :

      Usage of Crosstab Component in canned Reporting

      • Column Break Offset

        Defines the space (in pixels) between column groups when the crosstab continues into multiple columns.

      • Position :

        Specifies the object position when the report section is affected by stretch.

        • FixRelativeToTop: Crosstab stays fixed relative to the top of the report.
        • FixRelativeToBottom: Crosstab stays fixed relative to the bottom.
        • Float: Crosstab moves freely and can be placed anywhere.
        • Usage of Crosstab Component in canned Reporting

    8. Stretch

      • ContainerBottom

        The crosstab expands downward until it touches the bottom of its container (such as a frame or band).

        Useful when you want the text to fill all available vertical space inside its container.

      • ContainerHeight

        The crosstab always matches the full height of its container.

        The height stays the same even if the text content is small or large.

      • ElementGroupBottom

        When the crosstab is inside a group, it stretches until the bottom of the entire group.

        Useful when grouped elements need to align at the bottom.

      • ElementGroupHeight

        The crosstab stretches to match the total height of its group.

        Helps keep all grouped elements the same height and maintain a consistent layout.

        This is usually the most commonly used option.

      • NoStretch

        This is the default behavior.

        The crosstab does not stretch, even if the content is larger than the available space.

      • Usage of Crosstab Component in canned Reporting

    9. Print When Expression

      This property is used to display a specific crosstab only when a given condition is true.

      If the condition evaluates to false, the crosstab will not be printed in the report.

      Example

      (($F{meet_cancellation_status}.equals(“Yes”)))

      In this example, the crosstab cell will be printed only when the meet_cancellation_status field value is “Yes”.
      If the value is anything else, the cell will be hidden.

    10. Print Repeated Values – Controls whether repeated values are printed or left blank.
    11. Remove Line When Blank – Removes the crosstab row if there is no data for that row.
    12. Print in First Whole Section – Prints the crosstab only at the start of a section (useful in multi-section reports).
    13. Print When Record Overflows – Controls printing when the crosstab spans multiple pages or sections.
    14. Stretch with Overflow – Lets the crosstab grow if the content is larger than its allocated area.
    15. Blank When Null – If a field is NULL, it shows as blank instead of printing NULL.
    16. Borders – Configure various properties of the border, like border style, width and color.
    17. Usage of Crosstab Component in canned Reporting

    18. Padding – We can provide the padding values, thus the data within the cells will appear leaving that much space (padding) on side.
    19. Usage of Crosstab Component in canned Reporting

  6. Select required fields from dataset to crosstab and ajust the cross tab position by giving proper width and height
  7. Usage of Crosstab Component in canned Reporting

    Preview the report (preview option is present at the top blue band).

    Usage of Crosstab Component in canned Reporting

  8. We can rename cross tab static field names and apply field level properties.
  9. Save the report and open in new window
  10. Usage of Crosstab Component in canned Reporting

  11. Once a crosstab is created, we may want to specify the individual cell level properties like thousand separator, alignment, bold, font size etc.

    For doing that, you can click on that individual cell only and then apply the respective properties. We can rename table header field names and apply field level properties. Click here to read more.

Adding Multiple crosstabs in the report :

  • Each Crosstab component requires a dedicated query. A single query can be bound to only one crosstab, therefore, a separate SQL query must be created for every additional crosstab used in the report.
  • Usage of Crosstab Component in canned Reporting

  • Just as we create Crosstab 1, we should create Crosstab 2 in the same way and align it properly on the canvas.
  • Usage of Crosstab Component in canned Reporting

Important crosstab properties that should be applied to avoid overlap issues:

  • We should apply Position > Float for Crosstab 2
  • Usage of Crosstab Component in canned Reporting

We can see 2nd crosstab is present at page no 6.

Usage of Crosstab Component in canned Reporting

Note : When working with multiple crosstabs, apply the Position Float property starting from the second crosstab onwards.
If any text fields are placed between crosstabs, the Position Float property should also be applied to those text fields.

If crosstab issues still persist, enable the Repeat by Summary option to ensure proper rendering.

Usage of Crosstab Component in canned Reporting

Crosstab with Parameters :

  • There is no separate or additional process required to add parameters for an individual crosstab or for multiple crosstabs.
  • Parameters are created once and can be mapped to multiple queries, allowing the selected parameter values to be applied to their respective crosstab.

Refer to the documentation below for detailed steps on adding and configuring parameters.
https://www.helicalinsight.com/input-parameters-filter-types-canned-report/

Reach out on support@helicalinsight.com

Leave a Reply

Helical Insight’s self-service capabilities is one to reckon with. It allows you to simply drag and drop columns, add filters, apply aggregate functions if required, and create reports and dashboards on the fly. For advanced users, the self-service component has ability to add javascript, HTML, HTML5, CSS, CSS3 and AJAX. These customizations allow you to create dynamic reports and dashboards. You can also add new charts inside the self-service component, add new kind of aggregate functions and customize it using our APIs.
Helical Insight’s self-service capabilities is one to reckon with. It allows you to simply drag and drop columns, add filters, apply aggregate functions if required, and create reports and dashboards on the fly. For advanced users, the self-service component has ability to add javascript, HTML, HTML5, CSS, CSS3 and AJAX. These customizations allow you to create dynamic reports and dashboards. You can also add new charts inside the self-service component, add new kind of aggregate functions and customize it using our APIs.
Helical Insight, via simple browser based interface of Canned Reporting module, also allows to create pixel perfect printer friendly document kind of reports also like Invoice, P&L Statement, Balance sheet etc.
Helical Insight, via simple browser based interface of Canned Reporting module, also allows to create pixel perfect printer friendly document kind of reports also like Invoice, P&L Statement, Balance sheet etc.
If you have a product, built on any platform like Dot Net or Java or PHP or Ruby, you can easily embed Helical Insight within it using iFrames or webservices, for quick value add through instant visualization of data.
If you have a product, built on any platform like Dot Net or Java or PHP or Ruby, you can easily embed Helical Insight within it using iFrames or webservices, for quick value add through instant visualization of data.
Being a 100% browser-based BI tool, you can connect with your database and analyse across any location and device. There is no need to download or install heavy memory-consuming developer tools – All you need is a Browser application! We are battle-tested on most of the commonly used browsers.
Being a 100% browser-based BI tool, you can connect with your database and analyse across any location and device. There is no need to download or install heavy memory-consuming developer tools – All you need is a Browser application! We are battle-tested on most of the commonly used browsers.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
A first-of-its-kind Open-Source BI framework, Helical Insight is completely API-driven. This allows you to add functionalities, including but not limited to adding a new exporting type, new datasource type, core functionality expansion, new charting in adhoc etc., at any place whenever you wish, using your own in-house developers.
A first-of-its-kind Open-Source BI framework, Helical Insight is completely API-driven. This allows you to add functionalities, including but not limited to adding a new exporting type, new datasource type, core functionality expansion, new charting in adhoc etc., at any place whenever you wish, using your own in-house developers.
It handles huge volumes of data effectively. Caching, Pagination, Load-Balancing and In-Memory not only provides you with amazing experience, but also and does not burden the database server more than required. Further effective use of computing power gives best performance and complex calculations even on the big data even with smaller machines for your personal use. Filtering, Sorting, Cube Analysis, Inter Panel Communication on the dashboards all at lightning speed. Thereby, making best open-source Business Intelligence solution in the market.
It handles huge volumes of data effectively. Caching, Pagination, Load-Balancing and In-Memory not only provides you with amazing experience, but also and does not burden the database server more than required. Further effective use of computing power gives best performance and complex calculations even on the big data even with smaller machines for your personal use. Filtering, Sorting, Cube Analysis, Inter Panel Communication on the dashboards all at lightning speed. Thereby, making best open-source Business Intelligence solution in the market.
With advance NLP algorithm, business users simply ask questions like, “show me sales of last quarter”, “average monthly sales of my products”. Let the application give the power to users without knowledge of query language or underlying data architecture
With advance NLP algorithm, business users simply ask questions like, “show me sales of last quarter”, “average monthly sales of my products”. Let the application give the power to users without knowledge of query language or underlying data architecture
Our application is compatible with almost all databases, be it RDBMS, or columnar database, or even flat files like spreadsheets or csv files. You can even connect to your own custom database via JDBC connection. Further, our database connection can be switched dynamically based on logged in users or its organization or other parameters. So, all your clients can use the same reports and dashboards without worrying about any data security breech.
Our application is compatible with almost all databases, be it RDBMS, or columnar database, or even flat files like spreadsheets or csv files. You can even connect to your own custom database via JDBC connection. Further, our database connection can be switched dynamically based on logged in users or its organization or other parameters. So, all your clients can use the same reports and dashboards without worrying about any data security breech.
Our application can be installed on an in-house server where you have full control of your data and its security. Or on cloud where it is accessible to larger audience without overheads and maintenance of the servers. One solution that works for all.
Our application can be installed on an in-house server where you have full control of your data and its security. Or on cloud where it is accessible to larger audience without overheads and maintenance of the servers. One solution that works for all.
Different companies have different business processes that the existing BI tools do not encompass. Helical Insight permits you to design your own workflows and specify what functional module of BI gets triggered
Different companies have different business processes that the existing BI tools do not encompass. Helical Insight permits you to design your own workflows and specify what functional module of BI gets triggered