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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
chem094
Frequent Visitor

Lookup & Match from separate table

Hi All, I need to check a lookup table to choose the category. Column A has list of values (some duplicate names) and text search on the column A values gave multiple categories.. i have values in listed the categories in column C but multiple matching due to text search done in column A. Now, i need to have column D with final category for the column names using a hierarcy order table..can we do this in M query TableSample.PNG  

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @chem094 

 

Based on the information above, what you want to achieve is to return the highest parent category in the parent-child hierarchy.
Please use the solution I provided in the other thread you posted.

Refer:
https://community.powerbi.com/t5/Power-Query/Group-by-duplicate-column-to-lookup-Hierarchy-Table-for...

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

View solution in original post

3 REPLIES 3
v-angzheng-msft
Community Support
Community Support

Hi, @chem094 

 

Based on the information above, what you want to achieve is to return the highest parent category in the parent-child hierarchy.
Please use the solution I provided in the other thread you posted.

Refer:
https://community.powerbi.com/t5/Power-Query/Group-by-duplicate-column-to-lookup-Hierarchy-Table-for...

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

AlexisOlson
Super User
Super User

How are you grouping the products in column A? How do we know "Laptop Co Pub limited" and "Laptop Dell Corp" are different groups but "Laptop Co Pub limited" and "Laptop Univ" are in the same group?

TableSample1.PNG

chem094_0-1644648304995.png

 

if you see in above table, i have one institution with 3 valid keywords, using keywords i mapped to all the categories. but in final category should be "Ëducation" using hierarcy table. So, education should be filled in all the 3 lines in final category column this duplicates can be removed at end stage based on institution name and finalcategory. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors