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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Thiagops
Helper II
Helper II

LOOKUPVALUE (A table of multiple values ​​was provided, a single value was expected.)

Hi, When trying to use the LOOKUPVALUE formula in POWER BI, the following error was returned: A table of several values ​​was provided, and a single value was expected.

 

Faturamento = LOOKUPVALUE(NF_SAIDA[NS_DATA_EMISSAO],

NF_SAIDA[PV_CODIGO],

PEDIDO_VENDA[PV_CODIGO])

 

NF_SAIDA[NS_DATA_EMISSAO]: Column containing the date the order was invoiced

NF_SAIDA[PV_CODIGO]: Column containing the SKU of the product (Table only for orders that have already been invoiced)

PEDIDO_VENDA[PV_CODIGO]): Column containing the SKU of the product (General typing table: budget or order)

 

 

decc7c85-fc16-4506-8113-df60f46939b8.png

1 ACCEPTED SOLUTION
Thiagops
Helper II
Helper II

Hi,

Thanks for the tip. I went to look and it really had duplicate values. I fixed it and it worked.

Thank you very much.

View solution in original post

2 REPLIES 2
Thiagops
Helper II
Helper II

Hi,

Thanks for the tip. I went to look and it really had duplicate values. I fixed it and it worked.

Thank you very much.

tamerj1
Super User
Super User

Hi @Thiagops 
Is the [PV_CODIGO] unique in the NF_SAIDA table? Any relationship between the two tables?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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