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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Krish89
Helper II
Helper II

Lookup values based on multiple conditions

Hello,

I have an excel file with two sheets called Data and MF.

DataDataMFMF

S.NONew :  =IF(OR(D2="#";D2="NULL");C2;D2)

CombinedValue: = B2&A2&E2 (concatenation of ID ,IDNew, S.NONew)

Rep: = IFERROR(IF(OR(G2="BLANK";G2="CN";G2="PERSON OR COMPANY'S NAME");VLOOKUP(B2;MF!A:B;2;FALSE);VLOOKUP(A2;MF!A:B;2;FALSE));"UNASSIGNED")

 

I want to implement the S.NoNew, CombinedValue and Rep columns in Power BI desktop instead of in Excel.

I imported the data into Power BI and i created S.NoNew and CombinedValue columns but I need support in creating the Rep column in Power BI.

 

Regards,

Krishna.

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @Krish89 ,

 

You can create the following calculated column in Data table:

 

 

Rep = var a =LOOKUPVALUE(MF[Rep],MF[ID],Data[ID]) return IF(ISBLANK(a),"UNASSIGNED" ,a)

 

 

Here is the screenshot of my sample data:

 

Capture2.PNG

 

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

 

Best Regards,

Dedmon Dai

Hi @v-deddai1-msft ,

 

Thanks for your help!!

But here in your calculated column the IF condition is missing(refer my post).

 

Regards,

Krishna.

Hi @Krish89 ,

 

I am sorry that I am not familiar with Excel. If you can explain more about the logic of Rep column , I will write the right formula for it.

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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