Can I filter per group?

Can I filter per group?

by Daniel Costa -
Number of replies: 11

Hi everybody,

I'd like to know if it's posible and how can I filter a course report by group.

Any toughts?

TIA

Daniel

Average of ratings: -
In reply to Daniel Costa

Re: Can I filter per group?

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Have you set the course settings to separate groups mode?

In reply to Tim Hunt

Re: Can I filter per group?

by Daniel Costa -

I tried different course settings but couldn't see any change on my report. Thank's anyway.

In reply to Tim Hunt

Re: Can I filter per group?

by Tim F -

So is this not possible?  

 

I am trying to create a report with the user activity of the student in a specific group...

In reply to Daniel Costa

Re: Can I filter per group?

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Daniel, is not posible to filter course reports by groups.

There is no such plugin

Why do you need this filter? I mean, a course report show a list of courses. Why you want to filter per groups inside this courses?

I suppose the groups has the same name between courses

Regards

In reply to Juan Leyva

Re: Can I filter per group?

by Rachel Fransen -

Well in the "Grades" section of a course, you can view various reports about each user. And if your course supports groups, you can ALSO filter those reports by group. 

I believe that is why the previous poster was asking if your plugin could also filter by groups. 

I would like to do the same as well with your reports:  find the group the user belongs to. Is this currently not possible?

In reply to Juan Leyva

Re: Can I filter per group?

by Daniel Costa -

Hi Juan,

Sorry for the delay, unstable dates... BTW happy new year!

For instance, I need a report to show wich users have downloaded their certificates and the teacher needs this report filtered by group.

Some advice?

TIA

In reply to Daniel Costa

Re: Can I filter per group?

by Alejandro Cemylto -

Hi Daniel,

Me too i am looking disperatly for a solution to this.

I need the teacher to only see his group members when he clicks on the report ..

Please let me know if you find any way arround.

thank you

In reply to Alejandro Cemylto

Re: Can I filter per group?

by Darren O'Neill -

Hi there,

I was wondering did anyone ever get a work around for this?

Thanks,

Darren 

In reply to Darren O'Neill

Re: Can I filter per group?

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

This isn't specifically a filter by group but can be once downloaded to Excel but I run this enrolment report that pulls group membership.  Hopefully you can pull out the group stuff and adjust it for one of your reports.

SELECT DISTINCT c.shortname, usr.firstname, usr.lastname, usr.city, groups.name

FROM mdl_course AS c

INNER JOIN mdl_context AS cx ON c.id = cx.instanceid

AND cx.contextlevel = '50'

AND c.category = '4'

INNER JOIN mdl_role_assignments AS ra ON cx.id = ra.contextid

INNER JOIN mdl_role AS r ON ra.roleid = r.id

INNER JOIN mdl_user AS usr ON ra.userid = usr.id

INNER JOIN mdl_groups AS groups ON c.id = groups.courseid

INNER JOIN mdl_groups_members AS members ON groups.id = members.groupid

WHERE members.userid = usr.id

AND r.name = "Student"

ORDER BY groups.name


In reply to Emma Richardson

Re: Can I filter per group?

by Darren O'Neill -

Hi Emma,

Thank you for taking the time to reply, it is very much appreciated. I will give the above a go.

Thanks again,

Darren