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
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())

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())

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

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