Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I have a column of sharepoint data in PowerBI containing page titles. However, some rows have junk in it e.g. 90ArFg1d.
How do I create a new column without the junk (in bold) in it ?
For example:.
ColumnA
10 Tips for Web hosting
Who's Who
Complaints Procedures
90ArFg1d
Transport Department
15HTy6Gh
Commercial Department
I can only think of having an If statement which tests ColumnA for values of 8 characters long and starting with a number. However, I am struggling to write that as I am new to PowerBI.
Is there a better solution ?
Any advice would be appreciated.
Solved! Go to Solution.
If following your rules, in Power Query, try the following:
= Table.SelectRows(#"Filtered Rows", each not (Value.Is(Value.FromText(Text.Start([Column1], 2)), type number) and Text.Length([Column1]) = 8))
However, if possible, I would suggest trying to clean the data somehow before it gets to you like this. I imagine that there might be some cases that aren't junk, but will get caught in the above conditions.
If following your rules, in Power Query, try the following:
= Table.SelectRows(#"Filtered Rows", each not (Value.Is(Value.FromText(Text.Start([Column1], 2)), type number) and Text.Length([Column1]) = 8))
However, if possible, I would suggest trying to clean the data somehow before it gets to you like this. I imagine that there might be some cases that aren't junk, but will get caught in the above conditions.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 84 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |