Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi. The column with yellow highlights is the column that I want to remove duplicates. However, if I directly remove the duplicates, it removes the rows randomly. How can I select which one between the two rows that I want to remove the duplicates?
I want to remove the rows which starts with 'WELL..'. Note that I have all alphabets (PA, PB, PC, PD, PL and etc...)
Solved! Go to Solution.
@Anonymous , for that you need to have some kind of flag
https://exceleratorbi.com.au/remove-duplicates-keep-last-record-power-query/
https://www.excelguru.ca/blog/2019/12/09/remove-dynamic-number-of-top-rows/
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated column.
Column =
IF(
COUNTX(FILTER(ALL('Table'),[column1]=EARLIER([column1])),[column1])>1,
IF(
LEFT([column2],4)="WELL",1,0),
0)2. Create calculated table.
Table 2 =
SUMMARIZE('Table','Table'[column1],
"column2",CALCULATE(MAX('Table'[column2]),FILTER('Table','Table'[Column]=0)))3. Result:
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , for that you need to have some kind of flag
https://exceleratorbi.com.au/remove-duplicates-keep-last-record-power-query/
https://www.excelguru.ca/blog/2019/12/09/remove-dynamic-number-of-top-rows/
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 62 | |
| 31 | |
| 26 | |
| 25 |