Sample Data
This table lists products with some duplicates.
| Cell | Value |
|---|---|
| A1 | Product |
| A2 | Apple |
| A3 | Banana |
| A4 | Apple |
| A5 | Orange |
| A6 | Banana |
| A7 | Grape |
This table lists products with some duplicates.
| Cell | Value |
|---|---|
| A1 | Product |
| A2 | Apple |
| A3 | Banana |
| A4 | Apple |
| A5 | Orange |
| A6 | Banana |
| A7 | Grape |
DISTINCT('Products'[Product])A 1 Product 2 Apple 3 Banana 4 Apple 5 Orange 6 Banana 7 Grape
B 1 Unique Products 2 Apple 3 Banana 4 Orange 5 Grape
Sales in Power Query?Table.Distinct.Table.Distinct(Sales) removes duplicate rows from the Sales table.Customers with columns CustomerID and City, what will be the result of Table.Distinct(Customers, {"CustomerID"})?CustomerID, ignoring other columns.Table.Distinct(Sales, "ProductID") to remove duplicates by ProductID but get an error. What is the likely problem?Orders with columns OrderID, CustomerID, and OrderDate. You want to keep only the first order per customer by date, removing duplicates of CustomerID but keeping the earliest OrderDate. Which approach is best in Power Query?Table.Distinct(Orders, {"CustomerID"}) keeps the first row per customer, which is earliest due to sorting.Pass the test and this pattern moves unknown