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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
X3svfdB1HOjKYc0
Regular Visitor

LOOKUPVALUE - "A table of multiple values was supplied where a single value was expected"

I have a lookup that has multiple values and gives the standard error message. Instead of getting an error, is it possible to get a comma delimeted list of the multiple values in a single field?

 

Instead of a workaround, it would be really cool to have a function LOOKUPVALUES for this.

4 REPLIES 4
v-stephen-msft
Community Support
Community Support

Hi @X3svfdB1HOjKYc0 ,

 

Did you want to split columns in power query? You can split a column through different methods and get single value you want.

Or try to use List.Contains function in power query to match value.

Reference: Solved: HELP: Matching a value in one column to a value fr... - Microsoft Power BI Community

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Vijay_A_Verma
Super User
Super User

You can use CONACATENATEX combined with FILTER like below

=CONCATENATEX(FILTER(Table1,Table1[Name]=Table2[Name]),Table1[Item],", ")

Here, I am applying filter on Table1, Name column with Table2, Name field. Then I am concatenating resultant Table1, item column with comma separator.

Awesomely brilliant. I always look for these clever one liners, there is so much unecessarily complicated DAX out there.

I was taught in the 80s that good code should be aiming for Haiku, not an epic poem 🙂 and it should always make you smile. This made me smile.

Thank you 🙏

wdx223_Daniel
Super User
Super User

you can try CONCATENATEX+CALCULATETABLE

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors