I have a column of text values (named "Page") in Power Query, Each row is a combination of text/number separated by "-", like below:
Page
movie-batmanseries-240000-movie-100000xx-500
345000zz-1.5-1000-starwars5-500000-game
Now I want to create a list of values for each row (separator "-") and then extract the first occurrence of a whole number (not decimal) into a new column
Here is what I wrote as the column formula:
List.First(List.Select(Text.Split([Page],"-"), each Number.IsNaN(_) = false))
But I'm receiving "Error" Value with this detail:
"We cannot convert the value "345000zz" to type Number."
Is there any workaround for this?