Forum Discussion

aashton's avatar
aashton
Helper V
3 years ago
Solved

Comparing Values from 2 Different Tables

Hello, I have an Applications table, and a Contracts table joined on Candidate ID (many to many).  The Applications table has a Source column, which I then created a new  column Source Calculated to...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi aashton 

    Related() function return single value from another table, it is better to use the function between the tables with relationship one-to-many, and use the related() function to the tables with table(many), you can refer to the following link.

    Power BI RELATED | How to Use RELATED Function? (Examples) (wallstreetmojo.com)

    The relationship between your tables is many to many, it contain to many values, so the related() fucniton cannot renturn the related single value, you need to simply your table relationship, you can creat a bridge table between two tables, you can refer to the following link.

    Joining Many to Many with a Bridge in Power BI | Seer Interactive

     

    Best Regards!

    Yolo Zhu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.