Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
gluizqueiroz
Resolver I
Resolver I

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 ACCEPTED SOLUTIONS
HotChilli
Super User
Super User

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

View solution in original post

Hey @HotChilli.

 

Man, that's so simple and I didn't know.

 

Thanks!

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

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

Hey @HotChilli.

 

Man, that's so simple and I didn't know.

 

Thanks!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.