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