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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
CMSGuy
Helper III
Helper III

LOOKUPVALUE error

PrevFLComments =
VAR Userx = 'Daily Certification Full'[Emp Full Name]
VAR PrevDate = DATEADD('Daily Certification Full'[DateEntered],-1,MONTH)
RETURN
COALESCE(LOOKUPVALUE('Daily Certification Full'[Field Leader Comment],'Employee Certifications'[Emp Full Name],Userx,'Daily Certification Full'[DateEntered],PrevDate),"NA")
 
That is the DAX.  Why would I be getting an error: "A table of multiple values was supplied where a single value was expected".  However I have this exact same formula getting the Field Leader Name and there are no errors for it.  Is this because it might be returning mulitple values?  If so, would there be a way to concatenate each into a RETURN value?
1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@CMSGuy,

 

It appears that 'Daily Certification Full'[Field Leader Comment] has multiple values resulting from the lookup. You could use FILTER to create a virtual table with the relevant rows, and then use CONCATENATEX to concatenate the values in the virtual table.





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
DataInsights
Super User
Super User

@CMSGuy,

 

It appears that 'Daily Certification Full'[Field Leader Comment] has multiple values resulting from the lookup. You could use FILTER to create a virtual table with the relevant rows, and then use CONCATENATEX to concatenate the values in the virtual table.





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

Proud to be a Super User!




Thank you and yes, I found that there is some "test" data being delivered and it has duplicate entries.  I filtered that and it is good.  Thanks for the reply

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.