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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Ceha
Frequent Visitor

Value checking - Multiple reasons in same cell (for errors/duplicates)

Hello,

I need help with Power Query.

I have 2 excel files.

First with a list of skills and Second with list of users.

These users come with a specific skills which I need to compare according to the First file. If the skill is not on the list from First file, then return an error. Also I need to watch out for duplicates.

My current validation is working fine but its not "all in one" but rather one at a time. If a duplicate is found, then flag it as a duplicate, if wrong skill is found, flag it as a wrong skill. Problem was when the record was duplicated and with wrong skill, it FIRST validated it as a duplicate and didnt validate for error skill.

For now I modified the query so it check both for duplicate and error skill, but I want it to come in better looking table format. Please check tables below for better understanding. I had a problem how to phrase it in google so I am came here 🙂

 

Table1 is the initial table that is coming to me.

EmailNameCountryskillworking fromcomment
user1@emailAdamEnglandjava10.10.2023 
user2@emailPeterGermanyc#15.09.2023 
user3@emailTomFranceerrorskill20.10.2023 
user1@emailAdamEnglandjava10.10.2023 
user4@emailAnnaUSAmanager01.11.2023 
user5@emailJackieBelgiumHR15.12.2023 
user3@emailTomFranceerrorskill20.10.2023 

 

 

Table2 is the table is what I currently have.

EmailNameCountryskillworking fromcommentRejection reason
user1@emailAdamEnglandjava10.10.2023 Duplicate
user1@emailAdamEnglandjava10.10.2023 Duplicate
user3@emailTomFranceerrorskill20.10.2023 Duplicate
user3@emailTomFranceerrorskill220.10.2023 Duplicate
user3@emailTomFranceerrorskill20.10.2023 Unknown skill
user3@emailTomFranceerrorskill220.10.2023 Unknown skill

 

Table3 is the table that I would like to get.

EmailNameCountryskillworking fromcommentRejection reason
user1@emailAdamEnglandjava10.10.2023 Duplicate
user1@emailAdamEnglandjava10.10.2023 Duplicate
user3@emailTomFranceerrorskill20.10.2023 Duplicate, Unknown skill
user3@emailTomFranceerrorskill220.10.2023 Duplicate, Unknown skill

 

or maybe this (depending what will be easier)

EmailNameCountryskillworking fromcommentRejection reason
user1@emailAdamEnglandjava10.10.2023 Duplicate
user3@emailTomFranceerrorskill20.10.2023 Duplicate, Unknown skill
user3@emailTomFranceerrorskill220.10.2023 Duplicate, Unknown skill

 

Can anyone can give some tips how to achieve this? 

1 ACCEPTED SOLUTION
slorin
Super User
Super User

Hi

Group and use Text.Combine

Table.Group(
Table2,
{"Email", "Name", "Country", "skill", "working from", "comment"},
{{"Rejection reason", each Text.Combine(List.Distinct([Rejection reason]),", "), type text}}
)

 Stéphane

View solution in original post

2 REPLIES 2
slorin
Super User
Super User

Hi

Group and use Text.Combine

Table.Group(
Table2,
{"Email", "Name", "Country", "skill", "working from", "comment"},
{{"Rejection reason", each Text.Combine(List.Distinct([Rejection reason]),", "), type text}}
)

 Stéphane

Ceha
Frequent Visitor

Thank you Stéphane!

Worked like a charm. I knew it will be some sort of "easy" solution. 

Thanks!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.