Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi all,
Hoping this is an easy one for some of you. I have data that looks like this in the Power Query Editor that I'd like to "merge" into one row (except this is over about 250K rows):
Column 1 (Key) | Column 2 (Free text field) |
181 | This is an |
181 | example of the |
181 | data I am trying to merge |
Hoping you may know the easiest way to do this?
Thank you in advance.
Solved! Go to Solution.
Use group by in combination with Text.Combine. See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMrQwVNJRCsnILFYAosQ8pVgdmGBqRWJuQU6qQn6aQklGKpJESmJJooKnQmKuQklRZWZeukJJvkJualE6UE0sAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Column 1" = _t, #"Column 2" = _t]),
#"Grouped Rows" = Table.Group(Source, {"Column 1"}, {{"Result", each Text.Combine([Column 2]," ")}})
in
#"Grouped Rows"
Use group by in combination with Text.Combine. See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMrQwVNJRCsnILFYAosQ8pVgdmGBqRWJuQU6qQn6aQklGKpJESmJJooKnQmKuQklRZWZeukJJvkJualE6UE0sAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Column 1" = _t, #"Column 2" = _t]),
#"Grouped Rows" = Table.Group(Source, {"Column 1"}, {{"Result", each Text.Combine([Column 2]," ")}})
in
#"Grouped Rows"
Thanks Vijay
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
31 | |
29 | |
19 | |
15 | |
12 |
User | Count |
---|---|
20 | |
18 | |
13 | |
10 | |
10 |