cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dom17 Frequent Visitor
Frequent Visitor

Power Query - Counting Members of AD Groups

Hello,

 

i like to know how many members an AD Group has. Therfore i connected via Power Query our AD and read the "group" Table. In the Field group.members are the user informations stored but i dont know how i get transform them to a head count instead of a list field. Can anyone help?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Power Query - Counting Members of AD Groups

@Dom17 ,

 

After you pull the group members, then you can use this power query function on the next step. Reference about power query:

https://www.howtoexcel.org/power-query/the-complete-guide-to-power-query/

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Power Query - Counting Members of AD Groups

@Dom17 ,

 

You can use power query function List.Count() in your senario. 

List.Count(list as list) as number  

Please refer to power query reference:

https://docs.microsoft.com/en-us/powerquery-m/list-count

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Dom17 Frequent Visitor
Frequent Visitor

Re: Power Query - Counting Members of AD Groups

Thanks, but how can i use it? Do i need to transfor the Query in any ways?

Community Support Team
Community Support Team

Re: Power Query - Counting Members of AD Groups

@Dom17 ,

 

After you pull the group members, then you can use this power query function on the next step. Reference about power query:

https://www.howtoexcel.org/power-query/the-complete-guide-to-power-query/

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 464 members 4,406 guests
Please welcome our newest community members: