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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

HASONEVALUE Measure to remove duplicates

Hey guys, I need a bit of help. I am trying to get something like this using IF clause and hasonevalue and I am stuck 🙂 Can someone please help me or give a suggestion about using something else

GjorgjiKocev_0-1648134767047.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

First create an index column in Power Query Editor, then create a calculated column like below:

Column3 = 
var _min = CALCULATE(MIN('Table'[index]),FILTER('Table','Table'[Column2]=EARLIER('Table'[Column2])))
return
IF('Table'[index]=_min,'Table'[Column2],BLANK())

vjaywmsft_0-1648890965141.png

 

Best Regards,

Jay

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

First create an index column in Power Query Editor, then create a calculated column like below:

Column3 = 
var _min = CALCULATE(MIN('Table'[index]),FILTER('Table','Table'[Column2]=EARLIER('Table'[Column2])))
return
IF('Table'[index]=_min,'Table'[Column2],BLANK())

vjaywmsft_0-1648890965141.png

 

Best Regards,

Jay

 

truptis
Community Champion
Community Champion

Hi @Anonymous -> Please brief us more about your requirement. What you are trying to achieve.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors