We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello
I'm trying to lookup value (list prise) in one input table:
and merge it with the following table
to get the following resul table (list price is the same ragardless the date)
However, Lookupvalue formula returns an error "A table with multiple values was returned when a single value was expected".
Any idea what causes the error and how to solve it?
Thank you!
Solved! Go to Solution.
@Anonymous
Check your 1st table for duplicate values in product column. you try the following as well:
ListPrice =
MAXX(
FILTER(
table-1,
table-1[product]=EARLIER(table-2[product])
),
table-1[List Price]
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @Anonymous ,
What formula did you use?
Here is an example for a measure:
#lookupLP =
LOOKUPVALUE(InputTable[LP], InputTable[Product], MAX(FollowingTable[Product]))If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Stand with Ukraine!
Here is an official way you can support Ukraine financially:
Come Back Alive foundation: https://savelife.in.ua/en/
Thank you!
@Anonymous
Check your 1st table for duplicate values in product column. you try the following as well:
ListPrice =
MAXX(
FILTER(
table-1,
table-1[product]=EARLIER(table-2[product])
),
table-1[List Price]
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hey @Anonymous ,
did you create it as a calculated column?
Try the following calculated column:
List Price = LOOKUPVALUE( 'Product'[List price], 'Product'[Product], Retail[Product] )
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 54 | |
| 39 | |
| 32 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 37 | |
| 36 | |
| 22 |