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

View all the Fabric Data Days sessions on demand. View schedule

Reply
iKettle
Frequent Visitor

Lookup to return multiple values

Hey Guys, I have two tables, Table One which has the list of countries and the other Table 2 has the countriesid amongst other fields. But within Table 2 the countriesid field, there are multiple ids, so for that field I could have 1, 2, 5 or 5, 2 of what countries have been selected. I am trying to get the country names into a new column using LOOKUP but it only returns the first country match and not the others. What formula would I use to return the list of countries within the new column separated by comma? or what would be the best approach in this scenario?

 

I'm pretty new at BI, so step by step instructions will be great 🙂 

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@iKettle Use CONCATENATEX(FILTER(...), ..., ", ")



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hey Guys, any assistance will be appreciated. What I am trying to get is the lookup values of the countriesid column where there is more than one id (see table below). The values from from another table called MasterCountryHRControlsFocals[Id] when lookup is used to return MasterCountryHRControlsFocals[Title]. The issue I have is that I only get the first of  value MasterCountryHRControlsFocals[Title], so its not retuning the other values in the MasterCountryHRControlsFocals[Title]. As you can see below, the 3rd last row has multiple ids 253, 250, 215. But is only return the first country title and not the other two. How can I fix this?

 

iKettle_0-1667679019178.png

 

Hi,

Share data in a format that can be pasted in an MS Excel file and clealry show the expected result.  Also, do you want a measure or a calculated column?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I have tried this

 

Countries = CONCATENATEX(Filter(MasterCountryHRControlsFocals, MasterCountryHRControlsFocals[Id] = 'Audit Tracker List (2)'[CountriesId]), MasterCountryHRControlsFocals[Title], [Title], ",")
 
But it still only gives me one value. In the lookup, I have extracted the value in the field 'Audit Tracker List (2)'[CountriesId], so it has 234, 250, 190 etc....But using the above formula I only get the first country name and not the rest.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors