Is there a way to create a group by in a table views.

Here is how I would like that the group by looks like

enter image description here


2 Answers 2


Here is a module that does exactly the same as you want.

From Module page.

Create a new view (eg: a list of node). Set format Table Rowspan for this view. Add some field to this view. Group field that has same value. Check option "Merge rows in group".

Click on settings and group by your results by Principal, Guest, Email Member, Non Email Member. This module will render your table in exactly the same format you want.

  • I never hear about this module, I will test it, thanks ;-) Commented Dec 11, 2015 at 23:40

You can use Views Merge Rows to achieve this.

The Views Merge Rows module provides a way to combine rows with the same content in the specified fields.

I use this module in a project and it works fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.