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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Scarthart
Helper I
Helper I

Relation of two tables with Find V

Good morning, I hope you can help me please, what I want to do is relate the table "Active formulations in erpmax REVISION" with the table "ItemsPedxCli (11)" and obtain column F for that I did it in an excel with the formula replicate SEARCH V in excel how can I replicate this formula in Power BI.

 

table "Active formulations in erpmax REVISION"

Captura de pantalla (105).png

table "ItemsPedxCli

Captura de pantalla (104).png

The result when using the vlookup formula in this table is this

Captura de pantalla (107).png

What I have in Power BI

Captura de pantalla (108).pngCaptura de pantalla (109).png

3 REPLIES 3
MFelix
Super User
Super User

Hi @Scarthart ,

 

For this I believe you have two options:

 

Option 1) make a relationship between the two tables (I assume that one of this tables don't have duplicated values) and then add the following column to the Formulaciones ativas:

 

Column Name = RELATED('Consolidad per referencia'[Solicitado])

 

Option 2) use a LOOKUPVALUE formula:

Column Name = LOOKUPVALUE('Consolidad per referencia'[Solicitado], 'Consolidad per referencia'[Codigo], 'Formulaciones ativas'[Codigo])

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix Neither of the two options works for me.

Captura de pantalla (112).png

Hi @Scarthart ,

 

In the table fo the Consolidad is there more than one value per código? The error that is returning is that you have more than one value per each line.

 

If there is more than one value how do you select the value you need to return?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors