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
byr10112
Microsoft Employee
Microsoft Employee

Flag to see if a column value exists in a filtered table

I'm trying to create a flag column in one of my tables to see if the employee speaks French or not. I have two tables. One is the list of employees and the other one is the languages these employees speak and their proficiency levels. Two tables are linked to each other via employee number. Below is a basic structure of the tables:

Employee Table:

Employee Name
John Adam
David Ricardo
James Smith

Michael Scott

 

Language Table:

Employee NameLanguageProficiency Level
John AdamFrenchExpert
John AdamEnglishExpert
John AdamSpanishIntermediate
John AdamHinduIntroductory
Michael ScottEnglishExpert
Michael ScottFrenchNone
David RicardoFrenchExperienced
David RicardoPortugueseExpert

 

I want the first table to have a column called French Flag. Here is what I hope it looks like:

Employee NameFrench Flag
John Adam1
David Ricardo1
James Smith0

Michael Scott

0

 

Below is what I tried, but I'm getting a Number of arguments in invalid. Function CONTAINSROW must have a value for each column in the table expression" error, and I'm not sure what it means:

 

French Speaking =

var _a = FILTER('Language Table', AND(
'Language Table'[Language] = "French",
(
'Language Table'[Proficiency Level] = "Expert" ||
'Language Table'[Proficiency Level] = "Experienced" ||
'Language Table'[Proficiency Level] = "Intermediate")
))
Return
IF(Employee Table[Employee Name] IN _a,1,0)
 
How can I make this work?
1 ACCEPTED SOLUTION
selpaqm
Helper V
Helper V

@byr10112 you may use as below.

 

French Flag = IF('Language'[Language]="French" &&
                ('Language'[Proficiency Level]="Expert" || 
                 'Language'[Proficiency Level]= "Experienced" || 
                 'Language'[Proficiency Level]="Intermediate"),1,0)

 

Employee.pbix 

View solution in original post

1 REPLY 1
selpaqm
Helper V
Helper V

@byr10112 you may use as below.

 

French Flag = IF('Language'[Language]="French" &&
                ('Language'[Proficiency Level]="Expert" || 
                 'Language'[Proficiency Level]= "Experienced" || 
                 'Language'[Proficiency Level]="Intermediate"),1,0)

 

Employee.pbix 

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