cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
win_toeknee Member
Member

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

Re: Trouble Removing Invisible Characters

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
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 50 members 1,188 guests
Please welcome our newest community members: