Forum Discussion

csummers's avatar
csummers
Regular Visitor
4 years ago

Matching values then performing lookup

I have a dashboard that contains employee information (name, e-mail, etc.) that is pulled from our HR system. I have been asked to add the users' sAMAccountName from Active Directory to the dashboard since it is not contained in the HR system.

I have a separate CSV file that has e-mail address in one column and the sAMAccountName in another.

Tried looking up posts here for something similar but not able to get it to work. Assuming I should be doing some sort of join of the data then what is equivalent to a VLOOKUP in Excel?

 

Thanks in advance for the help.

6 Replies

  • Syk's avatar
    Syk
    Resident Rockstar

    Sounds like you need to be creating a relationship from your CSV to the HR data. Use the e-mail to relate the 2 tables, should be one to many although it could be one to one depending what your HR data looks like.

    • csummers's avatar
      csummers
      Regular Visitor

      Thank you; I will give that at try and provide an update!

    • csummers's avatar
      csummers
      Regular Visitor

      It was a late night and once I looked at my problem from a different angle I decided to go a different route since it was a quick fix and considering I only update the data once a month not worth (yet) trying to get it to work in PowerBI.

      I just copied the 2 columns containing the e-mail and networkID into a new tab of the HR spreadsheet then used vLookup to add the Network ID. Once I refreshed my dashboard I just added the column to visual on my dashboard and it gave me what I needed.

  • rsbin's avatar
    rsbin
    Community Champion

    csummers,

    After importing your two separate tables, create a relationship joining emailaddress from the CSV file with your HR data.

    Then in your table visual or other visual, the sAMAAccontName will be available to display.

    If you wanted, you can use the LOOKUPVALUE function to populate your HR data with the sAMA value.

    Hope this gets you going in the right direction.

    • csummers's avatar
      csummers
      Regular Visitor

      Thank you; I will give that at try and provide an update!

    • csummers's avatar
      csummers
      Regular Visitor

      It was a late night and once I looked at my problem from a different angle I decided to go a different route since it was a quick fix and considering I only update the data once a month not worth (yet) trying to get it to work in PowerBI.

      I just copied the 2 columns containing the e-mail and networkID into a new tab of the HR spreadsheet then used vLookup to add the Network ID. Once I refreshed my dashboard I just added the column to visual on my dashboard and it gave me what I needed.