Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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.

The problem however is that some groups contain over 1000 users and the all make a new column in Power BISo 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. 

  • 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:

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

     

     

2 Replies

  • PC2790's avatar
    PC2790
    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:

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

     

     

  • Anonymous's avatar
    Anonymous
    Not applicable

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