Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
The column is populated with data that contains quite a few Unicode characters. The rows of interest to me are the ones where the characters are only in the range of a-z (upper or lower case) or 0-9. To me, the replace functionality was not enough as there are too many characters to replace.
I did find a potential solution using regular expressions & R in the post: http://radacad.com/power-bi-and-regular-expressions, however, I was hoping for an alternative that did not use R.
Pointers / Suggestions appreciated.
Regards,
Rajesh
Solved! Go to Solution.
Here is one way of doing it. The below code filters rows to only those where Text is equal to just the alphanumeric characters from Text.
This assumes the last step of the query is PreviousStep and the column of interest is named Text.
= Table.SelectRows( PreviousStep, each [Text] = Text.Select([Text],{"a".."z","A".."Z","0".."9"} ) )
Regards,
Owen
Here is one way of doing it. The below code filters rows to only those where Text is equal to just the alphanumeric characters from Text.
This assumes the last step of the query is PreviousStep and the column of interest is named Text.
= Table.SelectRows( PreviousStep, each [Text] = Text.Select([Text],{"a".."z","A".."Z","0".."9"} ) )
Regards,
Owen
Thank you!
Posted to unsolved new post
Could you provide more information regarding your requirement? Do you want identify if the column contains any invalid character, such as !@#?
Added more detail to original question.
User | Count |
---|---|
124 | |
106 | |
99 | |
63 | |
59 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |