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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

IF with LOOKUPVALUE

Hi everyone,

 

Need some help, Im trying to use IF with LOOKUPVALUE, but i always get #ERROR

 

Client name = IF(Base[Setor de atividade]="RC";LOOKUPVALUE('Base dados mestres'[Nome 1];'Base dados mestres'[Parceiro de negócios];Base[Conta Crédito S4]);LOOKUPVALUE('Base FDK43'[Nome 1];'Base FDK43'[Cliente];Base[Conta de crédito]))

 

marocha_0-1621627880838.png

 

Do you guys know why? Any ideas how i can use that?

Tks!!

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

Your formula looks okay but check the data types of the columns you are lookup and the source they both need to be in the same data type

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Anonymous 

Your formula looks okay but check the data types of the columns you are lookup and the source they both need to be in the same data type

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

That was it, so simple haha tks!!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.