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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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