Forum Discussion
split columns with null result
That's very different from splitting the column.
One solution: (Paste code into Advanced Editor)
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjTQByIjAyNjJR2l/LxUIAlkxupEK0H4SUAKzDU01AciqMKS8nyQQhOYQiAfodBIH4hgCjOKUsFmmsKVgkQgimMB", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [date = _t, transaction = _t, value = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"date", type date}, {"transaction", type text}, {"value", Int64.Type}}),
#"Add Shifted Transactions" = Table.FromColumns(
{#"Changed Type"[date]}
& {#"Changed Type"[transaction]}
& {List.Skip(#"Changed Type"[transaction])}
& {#"Changed Type"[value]},
type table[date=date, transaction.1=text, transaction.2=text, value=number]),
#"Filtered Rows" = Table.SelectRows(#"Add Shifted Transactions", each ([date] <> null))
in
#"Filtered Rows"
Data
Results
is the solution work for this case :
- ronrsnfld1 year agoSuper User
You need to figure out what you want and express it clearly. You also need to provide data examples that encompass the variability you might have, and what you really expect for results. In a previous post, you wrote: " would like to move the second line of transact column, up to line who contain the date. like that , i will get 2 value for the same date." How do you expect ot get 2 value for the same date in this new example? What do you really want for results?
- yokaso1 year agoRegular Visitor
what i am looking is: to put all values from Transact column who are under same previous date on the same line .
i dont know how to updalod an excel file to give you a realistic example .
- ronrsnfld1 year agoSuper User
But in your new example, you now have multiple Values for the same Date! In your original post, you only had a single Value for each Date. I'm afraid without examples of your expected output from you pictured input, I will not be able to assist you any further.
You keep changing the specifications with each post and I have no idea what you expect for output.