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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Table Relationships and related function

Hi

This is my first time so please be gentle 😊

I haven’t been using Power BI long so sorry if I am being Naïve.

I have a problem where I am trying to get data out of table 3 (see diagram below) and into a new column in table 6.

I have tried Related but that the relationships are not correct.

I have also tried the following but as I need to look at two variables, but again need to bring the second from Table1 to Table3 it isn’t working:

Column =

            VAR SAccount = Table6[Value6]

return

    CALCULATE(

                SELECTEDVALUE(Table3[Value]),

                all(Table6),

                Table3[Value] = SAccount

    )

 

Any ideas on how I can get the data I need… oh one other thing if I change the relationships, other tables fail.

 

Any help will be much appreciated

 

 

 

Table RealtionshipsTable Realtionships

4 REPLIES 4
Greg_Deckler
Super User
Super User

Sample data helps tremendously. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

That being said, I believe you want LOOKUPVALUE. Tough to say thought without sample data.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thank you for coming back to me. I have tried lookupvalue but it doesnt work.

 

I will confirm if I can share data , if so will post

Made-up data is fine as well. Just the simplest data that will demonstrate your problem and what you expect as output.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

cool will sort something out

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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