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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors