- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

# Matching data

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-11-2019 06:30 AM

Hi,

I am not sure if it is possbile in Power BI, however is there a way I can match the following:

Colunm A has : W345678-New

Colunm B has : 45635 | W345678

As the value 'W345678' exists in both colunms, I want to remove the rows from my report. All the vlaues I want to match are in the same format as above Colunm A values have -New after each value and Colunm B has a value then |.

Many thanks

Solved! Go to Solution.

Accepted Solutions

## Re: Matching data

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Sunday

Hi @craig811

You may try below measure:

Column = IF(ISERROR(FIND(LEFT([ColumnA],FIND("-",[ColumnA])-1),[ColumnB])),0,1)

Regards,

Cherie

If this post

**helps**, then please consider

**to help the other members find it more quickly.**

*Accept it as the solution*All Replies

## Re: Matching data

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-11-2019 08:10 AM

Column = IF(FIND(LEFT([ColumnA],FIND("-",[ColumnA])-1),[ColumnB]),1,0)

**Did I answer your question? Mark my post as a solution!**

Proud to be a Datanaut!

## Re: Matching data

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Thursday

Thank you,

However I get the following error:'The search Text provided to function 'FIND' could not be found in the given text' any idea how to fix it?

## Re: Matching data

[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Thursday - last edited Thursday

Make sure that the first 2 column references are the same. Also does all your data in column A have a "-" before the "new"?

Try putting a default value in if you don't find the hyphen.

Column = IF(FIND(LEFT([ColumnA],FIND("-",[ColumnA],1,"999999")-1),[ColumnB]),1,0)

## Re: Matching data

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Thursday

Thank you for the reply,

Yes, I do have some data in ColumnA that does not have - and some rows are blank.

## Re: Matching data

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Thursday

Hi @craig811

Could you show some data with screenshot?

Regards,

Cherie

If this post

**helps**, then please consider

**to help the other members find it more quickly.**

*Accept it as the solution*## Re: Matching data

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Friday

Thank you,

Please see screenshot attached.

## Re: Matching data

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Sunday

Hi @craig811

You may try below measure:

Column = IF(ISERROR(FIND(LEFT([ColumnA],FIND("-",[ColumnA])-1),[ColumnB])),0,1)

Regards,

Cherie

If this post

**helps**, then please consider

**to help the other members find it more quickly.**

*Accept it as the solution*## Re: Matching data

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

yesterday

Great thanks Cherie,

This might be a silly question, however how do I get the formula to look for the value in columnA and if it exists in column B then enter value 1?

For example:

ColumnA ColumnB

W111234-NEW TEST

71554 | W111234-NEW

So from the above the value in column A exists in column B ,but might be on a different row in column B. I would still like it to show a value of 1 in the new column.

Hope that makes sense.

## Re: Matching data

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

14 hours ago

Thank you for solution,

However, how do I get the if statament to look in all the rows of columnB ([Line Description) to find a matching value with colunmA: