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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all
I have one trouble working with Removing Duplicate with conditions in Power Query. Could you please help?
I have table with 3 columns as below:
| Article | Strategy | Supplier | ||
| 11 | Same | Main | ||
| 11 | Increase | Main | ||
| 12 | Same | Main | ||
| 12 | Increase | Main | ||
| 11 | Same | David | ||
| 11 | Increase | David |
I have requirement from my work as:
- If the Articles and Strategy are duplicate, then choose Supplier David (delete Supplier Main) --> example article 11
And the desire result is
| Article | Strategy | Supplier | ||
| 11 | Same | David | ||
| 11 | Increase | David | ||
| 12 | Same | Main | ||
| 12 | Increase | Main |
Could you please help me on that?
Thank you in advance!
Solved! Go to Solution.
You can try steps below after your Source step.
Grouped = Table.Group(Source, {"Article", "Strategy"}, {{"A", each let t = _ in if Table.RowCount (t) > 1 then Table.SelectRows(t, each ([Supplier] = "David")) else t , type table [#"Article "=number, Strategy=text, #" Supplier"=text]}}),
Expanded = Table.ExpandTableColumn(Grouped, "A", {"Supplier"}, {"Supplier"})
in
Expanded
You can try steps below after your Source step.
Grouped = Table.Group(Source, {"Article", "Strategy"}, {{"A", each let t = _ in if Table.RowCount (t) > 1 then Table.SelectRows(t, each ([Supplier] = "David")) else t , type table [#"Article "=number, Strategy=text, #" Supplier"=text]}}),
Expanded = Table.ExpandTableColumn(Grouped, "A", {"Supplier"}, {"Supplier"})
in
Expanded
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 20 | |
| 14 | |
| 11 | |
| 10 | |
| 9 |