0

Separate Numbers and Text in One Column Using Power Query

https://towardsdatascience.com/separate-numbers-and-text-in-one-column-using-power-query/(towardsdatascience.com)
A method for separating numbers and text from a single column in Power Query involves handling data conversion errors. Initial attempts using functions like `Number.IsNaN()` and `Value.Is()` can be ineffective, often resulting in errors when encountering mixed data types. A more robust solution is to use a `try` expression with `Number.From()` to attempt the conversion without halting the query on failure. This process creates a record that can be expanded to isolate the successfully converted numeric values, allowing the original text values to be identified where the conversion failed. The technique also highlights the importance of pre-processing steps, such as removing blank spaces from potential numbers, to ensure accurate separation.
0 pointsby ogg21 hours ago

Comments (0)

No comments yet. Be the first to comment!

Want to join the discussion?