Forum Discussion
timbourdois
5 years agoFrequent Visitor
Conditional duplicate check
Hi all... I'm trying to use a conditional column (or power query) to check for duplicate values in one column and validate they belong to the same product (match) in a second column). I'm close,...
- 5 years ago
Hi, timbourdois
Based on your desciption, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a custom column in Power Query with the following codes.
let name=[Name],pathname=[Full Path Name], tab=Table.SelectRows(#"Changed Type",each [Name]=name and[Full Path Name]=pathname) in Table.RowCount(tab)Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
5 years agoCommunity Champion
timbourdois See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586.
You need to be using EARLIER to filter the table for each row to those rows that include the same NAME and then compare the values between rows, again, using EARLIER.