You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the original question is from 2024-07-25: <https://www.reddit.com/r/PowerBI/comments/1eay2qp/make_changescorrections_to_previously_made_column/>
4
+
5
+
You can get the pbix and this query here: <https://github.com/ninmonkey/ninMonkQuery-examples/tree/main/forumQuestions>
14
6
7
+
They are named:
8
+
"2024-07 - Split By Sofa Name.pbix"
9
+
"pq/2024-07 - Split By Sofa Name.pq"
10
+
*/
11
+
Json = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("TY7LDoJADEV/pWGNK/0BwegKJRkTF4RFlQITZ6jOYyHh4y0mEDc3vcnpaasqObMLPShuEXbgCQM52IDTXR9ggoKHEVNQODTSbr0OBC/dWRoCNXDRRpLxKQQbPSNXle+TOq2SUjuE7WL0s38SSpvVVpBl94Ejo5WWs2mWOTP4eILEO5KTCz4QmX/5L04O71BybOVfZdHMRIZ6pBQO0QexRFqX6i8=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Full Name" = _t]),
12
+
Source = Table.TransformColumnTypes( Json ,{{"Full Name", type text}}),
15
13
/*
16
14
about: custom splitting by delimiter "|"
17
15
@@ -34,17 +32,28 @@ let
34
32
Size = crumb{0}?,
35
33
#"Fabric Option" = crumb{1}?,
36
34
#"Leg Option" =
37
-
if shouldSwap then crumb{3}?
38
-
else crumb{3}?,
35
+
if shouldSwap
36
+
then crumb{3}?
37
+
else crumb{2}?,
39
38
40
39
#"Mattress Foam Option" =
41
-
if shouldSwap then crumb{2}?
40
+
if shouldSwap
41
+
then crumb{2}?
42
42
else crumb{3}?
43
43
]
44
44
][return],
45
-
a = Table.SplitColumn ,
46
-
b = Splitter.Sofa( #"Changed Type"{0}[Full Name] ),
47
-
fin = #"Split Column by Delimiter"
48
-
// #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Full Name.1", type text}, {"Full Name.2", type text}, {"Full Name.3", type text}, {"Full Name.4", type text}})
45
+
46
+
SplitByPipe = Table.AddColumn( Source, "SplitCols", each Splitter.Sofa( [Full Name] ), type record ),
0 commit comments