Report for the count of users for groups.

Kruthik M Shiva
Tera Contributor

Hi All,
I have a requirement to create a report on sys_user_grmember table and I filtered only 4 custom groups created by me now I need to get total count of members in 4 groups, if there are any duplicates in any group it should only count as 1.
e.g.: If person A is part of 1&2 groups. It should count as only one not 2. How to configure this Please do share any pointers on this.
Thanks in advance.
Kruthik Shivaprasad

6 REPLIES 6

AndersBGS
Tera Patron
Tera Patron

Hi @Kruthik M Shiva ,

 

I would suggest you to create a report based on the sys_user_grmember table with the condition: 

AndersBGS_0-1702889746514.png

Off course, hardware and software should be changed to your respective groups.

 

If you then create a "pivot table" report, then you will get below view:

AndersBGS_1-1702889805734.png

To get a count distinct, I do not see any perfect solutions. 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

 

 

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Hi @Kruthik M Shiva 

 

If my answer has helped with your question, please mark my answer as accepted solution.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Kruthik M Shiva 

 

Greetings!!

 

The best way to get the details is Pivot Table and perfectly suggested by @AndersBGS , please create the report type is Pivot and add fields as columns and Rows.

 

If person A is part of 1&2 groups. It should count as only one not 2. How to configure this Please do share any pointers on this.

Atul: I think it is not possible OOTB, as it required the check and standard reporting did not provide the same.

 

LearnNGrowAtul_1-1702891799715.pngLearnNGrowAtul_2-1702891817691.png

 

 

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Kruthik M Shiva 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************