Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

calculated column that retrieves a value from another table based on related columns multiple tables

Hi,

 

I am facing a problem and spent couple of hours and still stuck on this. If you can help that would be great. I have 4 tables from which I need to calculate a field.

 

1) Main table (where I want this calculated column)

2) DRG - connected to main table by stay number

3) ELOS - connected with DRG with DRG number

4) Facility- connect with DRG with facility identifier

 

All relationships are many to many.  ELOS is identifiy with two things DRG and peer group which is in Facility table. 

 

I want to create a calculate column in Main table to get ELOS value from ELOS table for each row. 

 

 

2 REPLIES 2
lbendlin
Super User
Super User

ok, what have you tried and where are you stuck?  Have you considered using RELATED or RELATEDTABLE  (after fixing your table relationships to bring your data model into star/snowflake shape)?

Anonymous
Not applicable

It is solved. I had many to many relationship thats why related was not working. I changed the relationship of those two table and it worked. Thanks for replying.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors