Hi,
I've been playing around with Active Directory as a data source on PowerBI for a while, trying to make reports.
One report I'm interested in is "Users in the Administrators Group"
My Administrators group has a number of users in it, as well as a Group - Domain Admins.
Domain Admins itself has a group in it too - Security administrators.
I'm trying to navigate the tree somehow either in M or DAX so that I can get a list of "In the Administrators Group, all the users are x, y, and z" where x is in Administrators, y is in Domain Admins, and z is in Security Administrators.
I've been thinking about seeing if I can get a list of "this group is a member of this group" (which I can do using top.memberOf) but I can't seem to work out how to navigate from Security Admins to Administrators, so I can see that Security Admins is a member of Domain admins and Administrators.
If I could do that, from there I could just say that since user z is in Security Administrators, it's also in Domain Administrators and Administrators.
I'm specifically trying to find a generic solution here, rather than hard coding my tree into the programme.
Am I barking up the wrong tree? How do I do this sort of recursive query in M/DAX?