In this blog, we are going to see how to use groups in Helical Canned Report as well as usage of Group_Count function.

A group is a set of field values in the result set. You can create different groups and then repeat components for each group.

You can create a group for a field by right clicking on the field and clicking on Create Group.

As soon as a group is created, a calculation named <group_name>_count is added in the Calculations/Parameters section visible on the right side. This calculation can be used on the report directly like any other calculation.

If at least one group is created, the “Repeat Options” on right click also contain “Repeat by Group” option. When a particular component is set to “Repeat by Group”, then the value is calculated and repeated for each value in the result set of the group.

If you want to use a field as a group, then in the query, there must be an order by clause for that field name.

Group Header: If a component is placed above the row of data fields and Repeat by Group is selected, it will act as Group Header.

Group Footer: If a component is placed below the row of data fields and Repeat by Group is selected, it will act as Group Footer.

EXAMPLE OF GROUP USAGE:

Let us say, we want to view the client wise details of travel cost and also for every client how many count of travels happened as a calculation before the next set of data starts for the next client. In this case, we are displaying ID, Source, Destination, Date and Cost. Hence, in our query section, we have taken all the necessary fields.

By default, the grouping happens based on the SQL response which we are getting. So in case if the value on which you want to do grouping appears at multiple difference places it will show multiple group and accordingly multiple group count etc. Hence in those cases you may want to handle that in SQL by applying an order by clause for the field on which grouping has been done. Thus the unique field values will appear together and hence for every unique value only once the grouping will happen. For example if you are grouping by destination and if a normal SQL results into destination which is Delhi at multiple places it will show multipel groups. Hence when ordering is applied all the Delhi values will appear together, this group_count group_sum etc values will appear correctly.

There might be cases in which you may want to appear it at multiple places also. So in those cases you can make the changes in SQL at the datasources page of canned report accordingly.

The query written is below

select   
	"HIUSER"."travel_details"."travel_id" as "ID",
 	"HIUSER"."meeting_details"."client_name" as "Name",
 	"HIUSER"."travel_details"."destination" as "Destination",
 	"HIUSER"."travel_details"."source" as "Source",
 	"HIUSER"."travel_details"."travel_cost" as "Cost",
 	"HIUSER"."travel_details"."travel_date" as "Date",
 	"HIUSER"."travel_details"."travel_medium" as "travel_medium"
 	
from
	"HIUSER"."travel_details" 
	inner join "HIUSER"."employee_details" on ("HIUSER"."employee_details"."employee_id" = "HIUSER"."travel_details"."travelled_by") 
	inner join "HIUSER"."meeting_details" on ("HIUSER"."employee_details"."employee_id" = "HIUSER"."meeting_details"."meeting_by") 
	
	order by "travel_medium","Name"

Consider the following picture:

Now, we have dragged the respective fields on the canvas so that we can see these fields. We have also given heading to the fields by adding text components and aligning it with “repeat by – page”.

Since we want to see the details for each client wise, we will drag the client_name i.e. $F{Name} field on the canvas. We will right click on this and select Create Group.

We want to view the number of records for each client also. As soon as we create the group, count of this group is added to the calculations section of datasource panel. In this specific case the function which got added its name is “group_Name_COUNT”. We can directly drag this calculation on the canvas and place it below the fields already added.

Right click on this above dragged field and select Repeat by Group –name. In this case we will select “Repeat – By Group – Group_Name”

The output will be as shown below. This is for one client. The same type of output will be repeated for the other clients as well.

Similarly, you can also add other custom calculations like sum, average, max, min etc. and add them to the canvas and repeat by a group. You can refer to this blog to know how to add calculations.

Group Properties can be set by clicking on the canvas and going to the properties pane. For this, click on the canvas. At the bottom right, you will see Group Properties option.

The following options are available:

  1. Select Group – Select the group that you are setting the property for.
  2. Minimum height to start new page – Minimum height after which the data should appear on a new page.
  3. Minimum records to start from top – Define the number of records to be rendered on the current column, so as to avoid starting the group on a new column
  4. Reprint header on each page – checkbox, if selected, on every page, the header of the group will be visible.
  5. Keep together – select to keep all the records of a group together
  6. Start new column – select to start a new group in new column
  7. Start new page – select to start a new group on a new page
  8. Reset page number – select to reset the page number after each group
  9. Prevent orphan footer – select to prevent only group footer to be printed on the next page if it does not fit in the current page.

For further assistance, kindly contact us on support@helicalinsight.com or post your queries at Helical Forum

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