While it could group based on other parameter ie taxonomy, It seems to neglect grouping by organic group. basically I add fields "Working groups: Groups The groups for a post." and under "Fields to Group On" select this field. Nothing shown. I wonder if this a bug or other thing messed up with my environment. Thanks

Comments

capellic’s picture

The good news is that you can!

Here's how I setup my view:

1. Added a filter for the content type I wanted to count within the group. For example, "blog"
2. Add a relationship to the OG: Organic groups: Group node (post)
3. Add the following fields:
a. Node: Title -- Use relationship
b. Node: ID -- Do not use relationship
4. Then add the SQL Aggregation field. "Fields to Group On" should be set to "[] Node: Title" and "Fields to Aggregate with the SQL function" should be set to "Node: Nid". "Field to Sort Resultet On" should be "[]Node: Title"

Done.