Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Multiple copies of the same table

Hi all,   Simple question from a simple user. We have a table in our database that I'll call Users, which has the User Id and their name:   We then use this table across multiple entries el...
  • Jimmy801's avatar
    5 years ago

    Hello Anonymous 

     

    no, it's not possible to create 2 relationships between two tables. Or you normalize you TA-table and then create the relationship or you can create a new column in your TA-table with the function LOOKUPVALUE

     

    SoldByName = LOOKUPVALUE(User[Name],User[ID],TA[Sold by])

     


    Another solution is to connect them 2 or 3 times (one times active and the other inactive)

    and then create a measure for each name like

    CanceledBYName = if (Calculate(COUNTROWS(User),USERELATIONSHIP(User[ID],TA[Canceled by]))>1, blank(),calculate(values(User[Name]),USERELATIONSHIP(User[ID],TA[Canceled by])))

    now use the custom measures in your visual

     

    If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
    Kudoes are nice too

    Have fun

    Jimmy