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
Anonymous
Not applicable

2 condition vlookup

 

 

Good afternoon,

 

I want to take talbe 2 ROS date on table 1.

it should match module and group. any ideas?

 

thanks for any help in advance.

<Table1>

<Table2>

vlookup.PNG

2 REPLIES 2
Anonymous
Not applicable

 

 

Good afternoon,

 

I want to take talbe 2 ROS date on table 1.

it should match module and group. any ideas?

 

thanks for any help in advance.

<Table1>

<Table2>

vlookup.PNG

Anonymous
Not applicable

Hi @Anonymous ,

Your table1 snapshot seems broken, can you please fix it? 
In addition, you can also try to use below calculated column formulas based on calculate function or lookupvalue function.

Related ROS =
LOOKUPVALUE (
    Table2[ROS],
    Table2[Module Deck], Table1[Module Deck],
    Table2[Group], Table1[Group]
)

Related ROS2 =
CALCULATE (
    MAX ( Table2[ROS] ),
    FILTER (
        ALLSELECTED ( Table2 ),
        Table2[Module Deck] = EARLIER ( Table1[Module Deck] )
            && Table2[Group] = EARLIER ( Table1[Group] )
    )
)

Regards,
Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.