Forum Discussion

djj2's avatar
djj2
Frequent Visitor
8 years ago
Solved

Active Directory Report Help

Hello All   I am complete noob to PowerBi but i need to generate some dashboards urgently from our AD for a project i am working on.    I have created a table that has an abreviation for each cit...
  • v-ljerr-msft's avatar
    v-ljerr-msft
    8 years ago

    Hi djj2,

     

    In your scenario, the key is to extract the city code from the DistinguishedName column to a new column, and create a relationship between the two table with city code column, then you can easily show the expected result on the report. 

     

    1. Use the Split Column by Delimiter option to split the DistinguishedName column in Query Editor.

    2. Remove other columns, only keep the column(DistinguishedName.3) which contains the city code.

     

    3. Add a new custom column to remove "OU=" from the code value.

    =Text.RemoveRange([DistinguishedName.3],0,3)

    4. Remove "DistinguishedName.3" column.

     

    5. Click "Close&Apply".

     

    6. Create a relationship between the two table with city code column.

    Then you should be able to easily show the expected result on the report.

     

    Here is the sample pbix file for your reference. :smileyhappy:

     

    Regards