Forum Discussion
qmhernandez
4 years agoNew Member
Adding a custum column based on an particular cell
Is there a way to add a dynamic custom column that returns the contents of a cell for the entire column? I need the conents of 'First Column' row 1 to become an entire row of duplicates without havin...
- 4 years ago
This should do the trick.
let Source = Table.FromRows( Json.Document( Binary.Decompress( Binary.FromText( "i45WCkotSE0sSU1RCEvMKU1VitWJVnLMyy/JSC1CEknML07NK4Ewi/MzUkvywOz81KK8gtIUKLs4I6+ktAjMKU0pSs0H64gFAA==", BinaryEncoding.Base64 ), Compression.Deflate ) ), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t] ), #"Added Custom" = Table.AddColumn(Source, "Custom", each Source{0}[Column1]) in #"Added Custom"
KNP
Super User
4 years agoThis should do the trick.
let
Source = Table.FromRows(
Json.Document(
Binary.Decompress(
Binary.FromText(
"i45WCkotSE0sSU1RCEvMKU1VitWJVnLMyy/JSC1CEknML07NK4Ewi/MzUkvywOz81KK8gtIUKLs4I6+ktAjMKU0pSs0H64gFAA==",
BinaryEncoding.Base64
),
Compression.Deflate
)
),
let
_t = ((type nullable text) meta [Serialized.Text = true])
in
type table [Column1 = _t]
),
#"Added Custom" = Table.AddColumn(Source, "Custom", each Source{0}[Column1])
in
#"Added Custom"