Forum Discussion
Mooihoek
5 years agoHelper II
Spilt Column and create New Row
I'm trying to spilt the U from this column and then have that value as a new Column called Test which then have that value and on the same row as the other values, e.g in green. . Any ideas on how t...
- 5 years ago
thats it I now have the data load the way I need, your awesome! v-yalanwu-msft
v-yalanwu-msft
5 years agoCommunity Support
Hi, Mooihoek ;
Hi, according to your description, there is another method you can try:
1.add custom column in power query
2.replace value (""->"null")
3.fill up
4.remove empty rows
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WUtJRUorViVYyNDSxNDUE8ozM9Q1M9I0MjAzB4qFgBbEA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Case Number" = _t, #"Date Submitted" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Case Number", type text}, {"Date Submitted", type date}}),
Custom1 = Table.AddColumn(#"Changed Type", "Custom", each Text.Select([Case Number],{"A".."z"})),
#"Replaced Value" = Table.ReplaceValue(Custom1,"",null,Replacer.ReplaceValue,{"Custom"}),
#"Filled Up" = Table.FillUp(#"Replaced Value",{"Custom"}),
#"Filtered Rows" = Table.SelectRows(#"Filled Up", each [Date Submitted] <> null and [Date Submitted] <> "")
in
#"Filtered Rows"
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Mooihoek
5 years agoHelper II
thanks I also need to move the date time value as well and create a new Column called Time, is he code the same?