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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
BobKoenen
Helper IV
Helper IV

Check if data in 2 columns is the same (comparing email and nr for persons)

HI All, 

 

I have a Data set with persons and 2 telephone numbers and emailadresses. I want to have an extra column which should tel me if there is a difference between those two columns for that specific ROW

 

Example

 

Nametel nr 1Tel nr 2the Same?
Joe+444444+444444Yes
Jane+333333+333334No
BIll+111111+111112No

 

I want to apply the same logic to 2 email columns. Can you help me how to achieve this. I can do it in Power query or in DAX. 

 

Thanx

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

 

@BobKoenen 

Create a custom colum in power query:

if [tel nr 1] = [Tel nr 2] then "Yes" else "No"

 

Same for the email columns.

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

 

@BobKoenen 

Create a custom colum in power query:

if [tel nr 1] = [Tel nr 2] then "Yes" else "No"

 

Same for the email columns.

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

kirbynguyen
Helper II
Helper II

@BobKoenen Try this as a column:

 

Same = IF('Table'[tel nr 1] = 'Table'[tel nr 2], "Yes", "No")

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.