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

Removing repeated values in a table

i have a data like below image . other column has different value  i need to make the repeating year for same customer blank. is it possible 

 

sambhu_0-1608551871758.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , you can create a column like

if([Rank]=1, [column1], blank())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
ryan_mayu
Super User
Super User

@Anonymous 

maybe you can try to create an index column in pq

1.png

Then use DAX to create a column

Column = if(COUNTAX(FILTER('Table','Table'[Index]<=EARLIER('Table'[Index])&&'Table'[customer]=EARLIER('Table'[customer])&&'Table'[year]=EARLIER('Table'[year])),'Table'[Index])>1,blank(),'Table'[year])

1.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , you can create a column like

if([Rank]=1, [column1], blank())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@Anonymous , You can create a column Rank on Date and filter for 1

 

rank = ranx(filter(Table, [year]=earlier([Year])),[Date],,asc,dense)

// If needed add customer

 

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns

https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  thank you for the support. Is ranking and filtering will be removing the rows , i need the year value as 2017 for the first row and then blank for the remaining repetition based on the customer.

 

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.

Top Solution Authors