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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bust0sos
New Member

Yes/No column for rows with the same Name

Good morning everyone,

I`m having some issues trying to find the correct formula in Power BI.

 

I have a large database and I want to analyse the group of people who don't speak Spanish.  

 

For that i need to create a new column in my dashboard so that if in one row “Lucas P.” speaks “Spanish”,  it would appear in the column (“Speaks Spanish”) as “Yes” for every “Lucas P.” row, as you can see in the example below.

 

Example

Name / Language / Speaks Spanish/

Lucas P. / Spanish/ Yes

Lucas P. / French/ Yes

Lucas P. / English/ Yes

Peter M. / Russian/ No

Peter M. / English/ No

Peter M. / French/ No

 

Would you guys please help me out?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@bust0sos , Try a new DAX column

 

var _cnt = countx(filter(Table, [Name] = earlier([Name]) && [Language] = "Spanish"),[Name])
return
if(isblank(_cnt), "No", "Yes")

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@bust0sos , Try a new DAX column

 

var _cnt = countx(filter(Table, [Name] = earlier([Name]) && [Language] = "Spanish"),[Name])
return
if(isblank(_cnt), "No", "Yes")

Thank you very much @amitchandak!!! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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