Forum Discussion
Identify Duplicates based on multiple conditions/columns
- 5 years ago
Hi, v_mark
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a custom column with the following m codes.
let device=[Device], status=[Status], state=[State], sn=[SN], tab = Table.SelectRows(#"Renamed Columns",each [Device]=device and [Status]=status and [State]=state and ( Text.EndsWith([SN],sn) or Text.EndsWith(sn,[SN])) ), re = Table.RowCount(tab) in if re>=2 then "duplicate" else nullResult:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Is it alwaysthe last 8 chars, or is it random lengths, random positions? Also, we cannot work with images. Images are great for expected outcome, but not for supplying data.
How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.