Is there an ISNUMBER() or ISTEXT() equivalent for Power Query?

will picture will · Jun 22, 2016 · Viewed 30.6k times · Source

I have a column with mixed types of Number and Text and am trying to separate them into different columns using an if ... then ... else conditional. Is there an ISNUMBER() or ISTEXT equivalent for power query?

Answer

Vikas Gautam picture Vikas Gautam · Sep 28, 2016

Here is how to check type in Excel Powerquery

IsNumber =Value.Is(Value.FromText([ColumnOfMixedValues]), type number)

IsText =Value.Is(Value.FromText([ColumnOfMixedValues]), type text)

hope it helps!