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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Pulling information into one table with rows that match from another table

Hi All,

 

I'm working on a project where I have two tables that have a common field [Bucket Service]

 

Table 1: webform

 

Bucket ServiceWhat service does this relate to?
BenefitsBenefits
Bins, waste and recyclingBins and waste
Bins, waste and recyclingBins, waste and recycling
BusinessGarage for rent
BusinessRent commercial properties
Children and family servicesChildren and family services
Children and family servicesSocial care (Children or Adults)
Children and family servicesSpeech and language
Council and electionsCovid 19
Council TaxCouncil Tax, Business Rates, Benefits

 

Table 2: tbl_wordcloud

 

Bucket Servicewebform What service does this relate to
Adult social care#ERROR
Benefits#ERROR
Bins, waste and recycling#ERROR
Births, deaths and marriages#ERROR
Business#ERROR

 

Ive used the following DAX formula that comes up as error in the tbl_wordcloud.

 

 

webform What service does this relate to =
LOOKUPVALUE (
    webform_feedback[What service does this relate to?],
    webform_feedback[Bucket Service], tbl_wordcloud[Bucket service]
)

 

 

 

 

But what I am aiming for is something that will concantenate all of the values of [What service does this relate to] into one cell for each service

 

Bucket ServiceWhat service does this relate to?
BenefitsBenefits
Bins, waste and recyclingBins and waste, Bins, waste and recycling
BusinessGarage for rent,  Rent commercial properties
Children and family servicesChildren and family services, Social care (Children or Adults), Speech and language

 

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

You are having 1(tbl_wordcloud) to many(webform) relationship because of which lookup is not working.

You can create a measure like below instead:-

Measure 2 = CONCATENATEX ( VALUES ( webform[What service does this relate to?] ),[What service does this relate to?], "," )

Output:-

Samarth_18_0-1645194604578.png

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

3 REPLIES 3
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

You are having 1(tbl_wordcloud) to many(webform) relationship because of which lookup is not working.

You can create a measure like below instead:-

Measure 2 = CONCATENATEX ( VALUES ( webform[What service does this relate to?] ),[What service does this relate to?], "," )

Output:-

Samarth_18_0-1645194604578.png

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Hi Samath,

 

Thanks you for youre response. 

 

I tried your solution, however, its given me all the values from the webform table across all of the rows. Is it possible to only have those related to the BucketService to show in the Testing column. 

abdalahmed_0-1645198924756.png

 

 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

This issue is caused by the lack of relationship between your two tables. Here is an example:

 

No relationship or inactive relationship:

Icey_0-1645516164369.png

 

Result:

Icey_1-1645516242561.png

 

 

Please create relationships between the two tables and you will get what you want:

Icey_2-1645516329078.png

Icey_3-1645516371468.png

 

You can create a measure like what @Samarth_18 mentioned, or like below:

webform What service does this relate to =
CONCATENATEX (
    RELATEDTABLE ( webform ),
    [What service does this relate to?],
    ", "
)

 

This expression can also used as a column.

Icey_4-1645516472745.png

 

For more details, please check the attached .pbix file.

 

 

Best Regards,

Icey

 

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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