Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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, but I'm getting false positives.
Solved! Go to Solution.
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.
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.
Hi @v-alq-msft
Thanks for the reply... I'm testing this now (I was away on holiday). Preliminarily, it would appear I'm getting a logical state (True/False) vs. a numerical status, but that actually works well for my need. I'll keep you updated on my results (the query is processing and the table is huge!)...
I'm also going to explore (earlier) as well, but it would seem this will suit my need for the time being... more to follow
@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/3395....
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.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 122 | |
| 108 | |
| 44 | |
| 32 | |
| 26 |