Overview

There are many scenarios where we need to identify the top-performing or bottom-performing records from a dataset. For example, you may want to display the Top 5 employeesTop 10 productsBottom 5 destinations, or any other Top N / Bottom N analysis. 

In this blog, we will explain how to create Top 5, Top N, Bottom 5, and Bottom N type of reports in Open Source BI Helical Insight interactive reports designer module (HReport). This blog is relevant in case if you are using upwards of version 5.0 onwards

The approach is simple. We need to perform two steps: 

  1. Limit the number of records to the required value.
  2. Apply sorting in the appropriate direction.

By combining these two options, you can easily create Top N and Bottom N reports. 

Step 1: Open the HReport options

While creating or editing an HReport, click the (three-dot menu to open the available options. 

How to Create Top 5 / Bottom 5 Type of Reports in Helical Insight Interactive Report Designer (HReport)

Screenshot showing the three-dot menu in the HReport interface.

Step 2: Select Settings

From the list of available options, click Settings

How to Create Top 5 / Bottom 5 Type of Reports in Helical Insight Interactive Report Designer (HReport)

Screenshot showing the Settings option in the HReport menu.

Step 3: Set the required number of records

Once you click Settings, you will see the Sample option. 

By default, the value of Sample is set to 1000

This means that, by default, Helical Insight applies a limit of 1,000 records and displays up to a maximum of 1,000 records in the HReport. 

You can change this value according to your requirement. 

For example: 

  • For Top 5 / Bottom 5, set Sample to 5.
  • For Top 10 / Bottom 10, set Sample to 10.
  • For Top 15 / Bottom 15, set Sample to 15.
  • For Top N / Bottom N, set Sample to the required value of N.

How to Create Top 5 / Bottom 5 Type of Reports in Helical Insight Interactive Report Designer (HReport)

Screenshot showing the Sample setting and the required record limit.

Step 4: Apply sorting

After setting the required record limit, apply sorting on the field that should determine the Top N or Bottom N result. 

For example, if you want to identify the employees with the highest travel costs, you would apply sorting on the travel cost field. 

For information about how to apply sorting in Helical Insight 5.0 onwards, refer to: 

Sorting in Reports with Helical Insight 5.0

https://www.helicalinsight.com/sorting-in-reports-with-helical-insight-5-0/

How to Create Top 5 / Bottom 5 Type of Reports in Helical Insight Interactive Report Designer (HReport)

Screenshot showing sorting applied to the required field.

Creating a Top 5 / Top N Report

To create a Top 5 report: 

  1. Set the Sample value to 5.
  2. Apply descending sorting on the relevant field.

The records with the highest values will then be displayed within the selected record limit. 

Similarly, to create a Top N report: 

  1. Set the Sample value to the required value of N.
  2. Apply descending sorting on the relevant field.

For example, if Sample is set to 5 and the selected field is sorted in descending order, the first five records will represent the Top 5 records based on that field. 

How to Create Top 5 / Bottom 5 Type of Reports in Helical Insight Interactive Report Designer (HReport)

Screenshot showing a Top 5 / Top N report.

Creating a Bottom 5 / Bottom N Report

To create a Bottom 5 report: 

  1. Set the Sample value to 5.
  2. Apply ascending sorting on the relevant field.

The records with the lowest values will then be displayed within the selected record limit. 

Similarly, to create a Bottom N report: 

  1. Set the Sample value to the required value of N.
  2. Apply ascending sorting on the relevant field.

For example, if Sample is set to 5 and the selected field is sorted in ascending order, the first five records will represent the Bottom 5 records based on that field. 

How to Create Top 5 / Bottom 5 Type of Reports in Helical Insight Interactive Report Designer (HReport)

Screenshot showing a Bottom 5 / Bottom N report.

Top N and Bottom N – Quick Reference

Report Type Sample Value Sorting
Top 5 5 Descending
Top N N Descending
Bottom 5 5 Ascending
Bottom N N Ascending

Independent of Visualization

The approach described above is independent of the visualization used in the HReport. 

The combination of record limiting and sorting can be used to create Top N and Bottom N analysis across the applicable visualizations available in HReport. 

This means you can use the same approach regardless of which visualization you choose to display the data. 

Conclusion

Creating Top N and Bottom N reports in Helical Insight HReport is straightforward. 

By combining the Sample setting with sorting, you can limit the report to the required number of records and display either the highest-performing or lowest-performing records. 

For Top 5 / Top N reports, use the required Sample value together with descending sorting

For Bottom 5 / Bottom N reports, use the required Sample value together with ascending sorting

Using these two simple settings, you can easily create Top N and Bottom N analysis in Helical Insight HReport. 

In case of any other questions, please reach out on support@helicalinsight.com or raise ask your questions on forum.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