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
diegoaranda
Frequent Visitor

Pull values from the many side of a relationship by filtering table

Hi there,

 

The data model looks like this:

 

diegoaranda_3-1653805023706.png


My goal is to pull values FROM the many side of the relationship, meaning that I'd like to bring the "number_value" values from "bi equipment_attribu..." table where [label] = "Minimum Ambient Temperature" into the "Asset Register" table.

The "bi equipment_attribute" table contains these columns of interest:

 

- equipment_id: to navigate across tables

- number_value: the values I'd like to bring to table Asset Register

- label: the column I'd like to use as filter

Please note that "bi equipment_attribute" table looks like this:

diegoaranda_2-1653804848228.png

 

My first attempt looks like this:

 

diegoaranda_1-1653804223647.png

 

After checking Tom's response I realised that "you can't use LOOKUPVALUE in combination with a virtual table". So, what could be a good way to do this?

 

Cheers 😉

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

Hi @diegoaranda ,

According to your description, I create a sample.

bi equipment_attribute table:

vkalyjmsft_0-1654151841763.png

bi equipment table:

vkalyjmsft_1-1654151867642.png

Asset Register table:

vkalyjmsft_2-1654151882011.png

As the relationship direction is single (1 to many), one side cannot directly reference data from many side. It should be indicated in the formula.

Here's my solution, create a calculated column.

Minimum Ambient Temperature =
CALCULATE (
    MAX ( 'bi equipment_attribute'[number_value] ),
    FILTER (
        'bi equipment_attribute',
        'bi equipment_attribute'[label] = "Minimum Ambient Temperature"
            && 'bi equipment_attribute'[equipment_id]
                = EARLIER ( 'Asset Register'[equipment_id] )
    )
)

Get the correct result.

vkalyjmsft_3-1654152342276.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @diegoaranda ,

According to your description, I create a sample.

bi equipment_attribute table:

vkalyjmsft_0-1654151841763.png

bi equipment table:

vkalyjmsft_1-1654151867642.png

Asset Register table:

vkalyjmsft_2-1654151882011.png

As the relationship direction is single (1 to many), one side cannot directly reference data from many side. It should be indicated in the formula.

Here's my solution, create a calculated column.

Minimum Ambient Temperature =
CALCULATE (
    MAX ( 'bi equipment_attribute'[number_value] ),
    FILTER (
        'bi equipment_attribute',
        'bi equipment_attribute'[label] = "Minimum Ambient Temperature"
            && 'bi equipment_attribute'[equipment_id]
                = EARLIER ( 'Asset Register'[equipment_id] )
    )
)

Get the correct result.

vkalyjmsft_3-1654152342276.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

Hi there,

 

This is exactly what I needed.

 

Thanks!

TomMartens
Super User
Super User

Hey @diegoaranda ,

 

From what I see you want to push a value into a table that's on the many side of a relationship.

For this task, I always use the Function RELATED() inside a calculated column on the many side of a relationship: RELATED( 'tableontheoneside'[columnIwant] ). Here you will find more information about the function RELATED - DAX Guide.

I only use LOOKUPVALUE when there is no relationship between tables. Here you will find more information about the function LOOKUPVALUE - DAX Guide
You also have to consider that you can't use LOOKUPVALUE in combination with a virtual table, indicated by the error message.

Hopefully, this provides what you are looking for and helps to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hi Tom,

 

I'm sorry if I didn't explain myself correctly. My goal is to pull values FROM the many side of the relationship, meaning that I'd like to bring the "number_value" values from "bi equipment_attribu..." table where [label] = "Minimum Ambient Temperature" into the "Asset Register" table. "bi quipment" table is just in the middle. All three tables are linked through "equipment_id". Assume that when filtering by [label] = "Minimum Ambient Temperature" it would create a 1:1 relationshipo with "Asset Register", I just don't know how to bring the values once the table is filtered.

 

I understand now that LOOKUPVALUE will not work with a virtual table. I tried the following but also didn't work. I think I have not understand how to bring values from the many side of the relationship.

 

diegoaranda_0-1653877660793.png

 

Thanks again!

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