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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.