Forum Discussion
Cleaning Data, Fill Down
- Anonymous4 years ago
Hi HamidBee ,
Please try the following formula to directly tranform the column instead of adding a new custom column:
#"Transformed Column"= Table.ReplaceValue(Table.TransformColumns(#"Changed Type",{"Column1",each Text.Remove(_,{"0".."9"})}) ,"//",null,Replacer.ReplaceValue,{"Column1"} ),Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
How I would do it
1) make an extra helping column, depicting the rows with dates:
Add conditional column (Helpcolumn) > if column1 contains "/" Then null Else OK2) add an extra column with the correct contents
Add Conditional column (Cleaned): if Helpcolumn equals OK Then Column1 Else HelpcolumnWith the last statement you just grabbed the normal information from your first initial column (Aberdeen etc) and gave null (blank values) when it's a date.
Now, if you select the output column (Cleaned) and then hit Fill > Down, it should do exactly what you requested.
to
Cheers
This is a good method and I think there may be a few ways to do it like this. I was however trying to find a way to do it without creating any columns although I'm not sure that it's possible.