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
Anonymous
Not applicable

Lookupvalue: <searchvalue> is a value in the current row

Hi everyone! I'm new at PBI.

 

Can anyone help me use the function LOOKUPVALUE?

 

Here's the deal:

 

I'm creating a calculated column in a table named "tbl_ocioso" which is related (many to one) to the table "DM_PRINTERDEVICE" by the id of the printer device ([SK_PRINTERDEVICE]).

 

The calculated column has to bring me the value of the column "Alvo min" of the register related to the printer device related to the current row. The images bellow give a better idea of what I'm trying to do:

Dax syntax error codeDax syntax error code

 

I tried the following dax code:

AlvoMinimo = LOOKUPVALUE(DM_PRINTERDEVICE[Alvo min];DM_PRINTERDEVICE[SK_PRINTERDEVICE];tblOcioso[SK_PRINTERDEVICE])
However, I got the following error message:
"A circular dependence was detected: tblOcioso[ImpressoesCopiasTotal], tblOcioso[AlvoMinimo], tblOcioso[ImpressoesCopiasTotal]"
 
Is that the right way to get the result? What am I doing wrong?
 
Thanks!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Guys, I got the desired result with another DAX function: RELATED:

 

AlvoMinimo = RELATED(DM_PRINTERDEVICE[Alvo min])

Worked out fine!

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Guys, I got the desired result with another DAX function: RELATED:

 

AlvoMinimo = RELATED(DM_PRINTERDEVICE[Alvo min])

Worked out fine!

 

Anonymous
Not applicable

Here is the image missing, which shows the relationship between the tables (the key field is called [SK_PRINTERDEVICE]): relationships-value-lookup-doubt.PNG

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.