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
bh25
New Member

Dynamic Calculate Reference to Another Table

Hello, I'm having an issue trying to dynamically reference another table to pull a value. In table "Listings" I have 1000+ listings that each have a property type, of which there are approximately 10 possible types. In another table "Escrows" I have 1000+ escrows that also have a property type with the same options as listings. I can use calculate to sum the data that I need from the escrow table, but I'm unable to dynamically reference each row to get the correct data. Ideally I would use 

 

CALCULATE(SUM(Escrow[Deal_Amount__c]), Escrow[Filtered Property Type] = Reference to this row's property type in Listing

 

This is how the listing rows look:

bh25_1-1691523732758.png

 

I need to change the reference for each row. Any ideas on how/if that's possible?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @bh25 ,

Please have a try.

CALCULATE(SUM(Escrow[Deal_Amount__c]), Escrow[Filtered Property Type] = RELATED(Listings[Property Type]))

The RELATED function returns the related value from another table based on a relationship between the two tables.

 

Note that you will need to make sure that there is a relationship between the two tables based on the property type column for this to work.

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @bh25 ,

Please have a try.

CALCULATE(SUM(Escrow[Deal_Amount__c]), Escrow[Filtered Property Type] = RELATED(Listings[Property Type]))

The RELATED function returns the related value from another table based on a relationship between the two tables.

 

Note that you will need to make sure that there is a relationship between the two tables based on the property type column for this to work.

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

 

amitchandak
Super User
Super User

@bh25 , new column way

 

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

 

 

 

Measure way

 

CALCULATE(SUM(Escrow[Deal_Amount__c]), Escrow[Filtered Property Type] =values(Table1[Table[Type]))

 

Also, consider treatas

https://docs.microsoft.com/en-us/dax/treatas-function

https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.