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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Trouble Removing Invisible Characters

Greetings! 

 

I am having trouble removing invisible characters. I have tried using the clean/trim function + the REPLACE function but the characters are still there. When I check the length of a row, it is either blank OR 0. This is throwing off my model bc the 0 will not be recognized when I count the number of blank rows. 

 

Any ideas on how I can remove this? Below is a screenshot and link to sample data. 

 

https://github.com/anthonynguyen3/Power-BI/blob/master/SDWCSR%20-%20Sample%20Data.pbix

 

tracknumblanks.png

1 REPLY 1
ElenaN
Resolver V
Resolver V

Hello,

 

Can you maybe use this logic for the len column:

 

LENGTH - WCSR = IF(WCSR[TrackingNumber] = BLANK(), 0, LEN( WCSR[TrackingNumber] ))

Meaning, you can use the comparison of the TrackingNumber column values to Blank() to identify which fields are not completed.

 

If you just want to count the no of blank rows you could try the countblank function.

 

Regards,

ElenaN

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.