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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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 @Anonymous ,

 

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
Anonymous
Not applicable

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

PC2790
Community Champion
Community Champion

Hey @Anonymous ,

 

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.