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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kp_wood13
Helper I
Helper I

Calculated Column Based on Relationships in Three Tables

I am attempting to populate a column in table 'DB List'[child] when the SELECTEDVALUE matches 'ServicesToHosts'[child]. However I also then need to use the relationship between 'ServicesToHosts'[parent] and 'ServicesList'[name] in order to return 'ServicesList'[u_mc_rating] values to the original table 'DB List'. I can't strictly use relationships because it causes a circular reference in the visuals. I've tried nested IF statements and various CALCULATE statements but had no luck to date, the visual continues to show all results (like below). Any suggestions?

 

kp_wood13_0-1744648802514.png

 

1 ACCEPTED SOLUTION
v-pnaroju-msft
Community Support
Community Support

Thank you, @lbendlin, for your response.

 

Hi @kp_wood13,

 

We appreciate your inquiry through the Microsoft Fabric Community Forum.

 

Based on my understanding, to achieve the goal of pulling ServicesList[u_mc_rating] into DB List, kindly follow the workaround process of using a two-step DAX approach with LOOKUPVALUE to simulate relationships without causing circular dependencies:

  1. In the DB List, retrieve the parent from ServicesToHosts:

    ParentFromHosts =

    LOOKUPVALUE(

        'ServicesToHosts'[parent],

        'ServicesToHosts'[child], 'DB List'[child]

    )

     

  2. Use the parent to fetch  u_mc_rating from ServicesList:

    u_mc_rating =

    LOOKUPVALUE(

        'ServicesList'[u_mc_rating],

        'ServicesList'[name], 'DB List'[ParentFromHosts]

    )

If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members who are facing similar queries.

Thank you.

View solution in original post

2 REPLIES 2
v-pnaroju-msft
Community Support
Community Support

Thank you, @lbendlin, for your response.

 

Hi @kp_wood13,

 

We appreciate your inquiry through the Microsoft Fabric Community Forum.

 

Based on my understanding, to achieve the goal of pulling ServicesList[u_mc_rating] into DB List, kindly follow the workaround process of using a two-step DAX approach with LOOKUPVALUE to simulate relationships without causing circular dependencies:

  1. In the DB List, retrieve the parent from ServicesToHosts:

    ParentFromHosts =

    LOOKUPVALUE(

        'ServicesToHosts'[parent],

        'ServicesToHosts'[child], 'DB List'[child]

    )

     

  2. Use the parent to fetch  u_mc_rating from ServicesList:

    u_mc_rating =

    LOOKUPVALUE(

        'ServicesList'[u_mc_rating],

        'ServicesList'[name], 'DB List'[ParentFromHosts]

    )

If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members who are facing similar queries.

Thank you.

lbendlin
Super User
Super User

SELECTEDVALUE has no meaning for calculated columns.

 

Consider using TREATAS if your relationships are not helpful for that query.

 

 

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