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

Join 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.

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.