cancel
Showing results for 
Search instead for 
Did you mean: 
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
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors