Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
I have the following table:
| Code | Product | Price |
| 1 | Banana | 12 |
| 1 | Apple | 53 |
| 2 | Watermelon | 63 |
| 3 | Grape | 68 |
| 4 | Bread | 34 |
| 4 | Rice | 53 |
| 5 | Beans | 25 |
I need to filter just the distinct and 1 from that repets, like the following table:
| Code | Product | Price |
| 1 | Banana | 12 |
| 2 | Watermelon | 63 |
| 3 | Grape | 68 |
| 4 | Bread | 34 |
| 5 | Beans | 25 |
Apple and Rice was gone in the last table, in other words, filtered the distinct "Codes".
I tried DISTINCT on DAX but it works for all columns, I need to focus the DISTINCT in just 1 column.
Solved! Go to Solution.
In Power Query editor, right-click the column, choose 'remove duplicates'
In Power Query editor, right-click the column, choose 'remove duplicates'
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 48 | |
| 35 | |
| 31 | |
| 27 |