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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear All,
I have the following table:
| ProdName | CodeValue | SourceCode | Q.ty |
| Apple | NFOE | 74891 | 3 |
| Apple | DNSA | 74891 | 3 |
| Kiwi | FDAD | 74891 | 4 |
| Apple | NFOE | 55117 | 3 |
I want to remove duplicates based on the following conditions:
1) Equal Prodname
2) Different CodeValue
3) Equal SourceCode
So that my table would become as follows:
| ProdName | CodeValue | SourceCode | Q.ty |
| Apple | NFOE (or DNSA) | 74891 | 3 |
| Kiwi | FDAD | 74891 | 4 |
| Apple | NFOE | 55117 | 3 |
Is this operation possible?
Thank You for your help
Solved! Go to Solution.
In the query editor, hold Ctrl and select the ProdName and SourceCode columns, then under Remove Rows pull down choose Remove Duplicates.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
In the query editor, hold Ctrl and select the ProdName and SourceCode columns, then under Remove Rows pull down choose Remove Duplicates.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |