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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Daz4
Helper I
Helper I

Cross table reference problem

I have two tables joined with a one to many ID. 

I need to find the related value for when column X = y.

 

Would anyone be able to assist with the column creation formula for this?

 

=RELATED(Y) wont work as it is a one to many join. 

 

Thanking you in advance!

 

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Hi @Daz4 ,

 

Try using the LOOKUPVALUE function.

If the problem persists,could you share the sample data and the result you expected?

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-... 

 

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

Daz4
Helper I
Helper I

So I managed to work out a solution but now have a new problem. 

 

I can get the values i need by the following:

 

query = Calculate(MAXX(FILTER(TABLENAME,COLUMNZ="a"),COLUMNY))

 

However, the new problem is i need to do this for each value in ColumnZ, and since I hve already filtered that table I cant filter it a second time. 

 

Anyone know how to get around this another way?

amitchandak
Super User
Super User

@Daz4 , related will work on many sides. On one side you can use relatedtable or filter within sumx/minx etc

 

refer: https://www.youtube.com/watch?v=Wu1mWxR23jU

https://www.youtube.com/watch?v=czNHt7UXIe8

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

Hi There Amit, Since my query requires filtered response, I dont think that will work unless I do not understand enough. I basically need to return the value in column y when column z = a. Join is on column x. Its not an aggregated result its a single value such as date or boolean. 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.