Groups in Query Report

I saw this Example: How to add a Total row in Query Report of ERPNext · GitHub

  1. Is there any way to add groups in query reports.

example:

SMS Package
SMS Package | SMS Package | 1000sms | 0.35
SMS Package | SMS Package | 5000sms | 0.25
SMS Package | SMS Package | 10000sms | 0.20
SMS Package | SMS Package | 25000sms | 0.15
ERPNext Setup
ERPNext Setup | ERPNext Setup | General | 19000.00
ERPNext Setup | ERPNext Setup | General | 35000.00
… | …Total… | … | 54000.95