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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
AFra
Helper III
Helper III

Lookupvalue with two conditions

Hi All, 

 

I wave two tables such as : 

TABLE 1 : 

ID PROJECT

Status

project1A
project2B
project3C

 

TABLE2 : 

ID PROJECTSteps#Houses
project1A20
project2A22
project3A40
project1B65
project2B60
project3B35
project1C100
project2C110
project3C120

 

I would like to add a new column in table 1 that reports #houses based on the ID PROJECT and the Status. Expected results : 

Table 1

ID PROJECTStatus#Houses
project1A20
project2B60
project3C120

 

Should I do this with a multiple condition lookupvalue? Or there's an easier solution? 

Thanks in advance for your help!  

2 REPLIES 2
az38
Community Champion
Community Champion

@AFra 

you can create relationships between table by Status - Step field, then add Houses column to visual and set aggregation (in visulization Pane) as Maximum or Last

 

But, if a few projects can have the same status, create an Surrogate key in both of tables, like

SurrogateKey = CONCATENATE(Table1[Project], Table1[Status])

and

SurrogateKey = CONCATENATE(Table2[Project], Table2[Step])​

and create relationships by this field

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Ok, simple and effective 🙂 

Thanks a lot! 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.