Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
YodaJetski
Frequent Visitor

Transposing AD extract

Hello,

 

I'm new to PowerBi and new to the community so bare with me. 

 

For a report I want to have an overview off alle the people how have acces to a certain folder on a netwerk drive. I got two files one from the networkdrive with groups who have access to the folder and one extract from AD with users in that group.

Mapping.png

The problem however is that some groups contain over 1000 users and the all make a new column in Power BIPBI - AD SAM.pngSo each Sam is a member of the group and I'm unable to make a dashboard this way.

 

Due to privacy reasons I can't post the actual content but my current view is like this (simplified)

 

Current     
NameSam.1Sam.2Sam.3Sam.4Sam.5
Group AUser 1User 2User 3User 4User 5
Group BUser 1nullnullnullnull
Group CUser 1nullnullnullnull
Group DUser 2nullnullnullnull
Group EUser 2nullnullnullnull

 

When transposing the data it looks like this. The groups have become the headers and the members of the group are listen in the cells below. 

Transposed    
     
Group AGroup BGroup CGroup DGroup E
USER 1USER 1USER 1  
nullnullUSER 2USER 2USER 2

 

But what I (I think) want is:

 

Usernamegroupname
USER 1Group A
USER 1Group B
USER 1Group C
USER 2Group C
USER 3Group D
USER 4Group E

 

I hope this makes sense what I want to achieve. It probaly takes multiple steps but I just can't see how I can match the members of the group to the networkdrive. Any help or brainwaves appreciated. 

1 ACCEPTED SOLUTION
PC2790
Community Champion
Community Champion

Hey @YodaJetski ,

 

Have you tried unpivoting the columns in Power Query?

as in

Select the group column in your AD table --> Unpivot Other columns like shown below:

PC2790_0-1658322428152.png

It will give the data in the below structure which is still efficient to use:

 

PC2790_1-1658322491701.png

 

View solution in original post

2 REPLIES 2
YodaJetski
Frequent Visitor

No I didn't try is this way. And I think it might do the trick. Thank you.

PC2790
Community Champion
Community Champion

Hey @YodaJetski ,

 

Have you tried unpivoting the columns in Power Query?

as in

Select the group column in your AD table --> Unpivot Other columns like shown below:

PC2790_0-1658322428152.png

It will give the data in the below structure which is still efficient to use:

 

PC2790_1-1658322491701.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.