4

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

1

2 Answers 2

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.

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

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 that you have read and understand our privacy policy and code of conduct.

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