Forum Discussion

peterpan's avatar
peterpan
Helper I
2 years ago
Solved

Linking Two Dimension Table having Primary Key

I have two dimension table, project table with user id and user name table. They are connected to fact table where current projects are listed. I want to know which project is assigned to user name. ...
  • danextian's avatar
    danextian
    2 years ago

    It appears that the primary and forein keys are all User ID so why not create just a single dimensions table for simplicity's sake? But if you really want them seprate and still want Username in Projects table, you can use

    User Name =
    LOOKUPVALUE ( User[User Name], User[User ID], Project[User ID] )
    

     

    or do  a merge in power query.