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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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