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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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