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 August 31st. Request your voucher.

Reply
ahooee
Frequent Visitor

How to remove a duplicate row having a blank cell?

Hi

 

I am trying to remove rows only if "Tcode" is a duplicate and "Transaction text" is blank. May I know how to do that?

 

Untitled.jpg

 

Screenshot 2023-05-24 072025.jpg

 

Thanks

 

Reza

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls see my video
https://1drv.ms/v/s!AiUZ0Ws7G26RiDN2lGwr_jOnp-KB?e=bQykqZ

Sample PBIX file attached
https://1drv.ms/u/s!AiUZ0Ws7G26RiDJ5iB9RA3lgQcnR?e=wcEbBQ

= Table.TransformColumns(
#"Grouped Rows",{"Count",(x)=> if Table.RowCount(x)> 1 then  Table.SelectRows(x,
(y)=> y[Data] <>"") else x})

View solution in original post

2 REPLIES 2
ahooee
Frequent Visitor

Great, many thanks Ahmedx 🙂

Ahmedx
Super User
Super User

pls see my video
https://1drv.ms/v/s!AiUZ0Ws7G26RiDN2lGwr_jOnp-KB?e=bQykqZ

Sample PBIX file attached
https://1drv.ms/u/s!AiUZ0Ws7G26RiDJ5iB9RA3lgQcnR?e=wcEbBQ

= Table.TransformColumns(
#"Grouped Rows",{"Count",(x)=> if Table.RowCount(x)> 1 then  Table.SelectRows(x,
(y)=> y[Data] <>"") else x})

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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