Forum Discussion

gluizqueiroz's avatar
gluizqueiroz
Icon for Resolver I rankResolver I
7 years ago
Solved

How to filter distinct values using M or DAX looking just 1 column?

I have the following table:

CodeProductPrice
1Banana12
1Apple53
2Watermelon63
3Grape68
4Bread34
4Rice53
5Beans25

 

I need to filter just the distinct and 1 from that repets, like the following table:

CodeProductPrice
1Banana12
2Watermelon63
3Grape68
4Bread34
5Beans25

 

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.

2 Replies

  • HotChilli's avatar
    HotChilli
    Icon for Community Champion rankCommunity Champion

    In Power Query editor, right-click the column, choose 'remove duplicates'